Class OperationMethodWrapper
java.lang.Object
org.locationtech.proj4j.geoapi.Wrapper
org.locationtech.proj4j.geoapi.OperationMethodWrapper
- All Implemented Interfaces:
Serializable, org.opengis.metadata.Identifier, org.opengis.parameter.GeneralParameterDescriptor, org.opengis.parameter.GeneralParameterValue, org.opengis.parameter.ParameterDescriptorGroup, org.opengis.parameter.ParameterValueGroup, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.operation.OperationMethod, org.opengis.referencing.ReferenceIdentifier
final class OperationMethodWrapper
extends Wrapper
implements org.opengis.referencing.operation.OperationMethod, org.opengis.parameter.ParameterDescriptorGroup, org.opengis.parameter.ParameterValueGroup, Serializable
Wraps a PROJ4J implementation behind the equivalent GeoAPI interface.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ProjectionThe wrapped PROJ4 implementation.Fields inherited from class Wrapper
BIDIMENSIONAL, TRIDIMENSIONALFields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEYFields inherited from interface org.opengis.referencing.operation.OperationMethod
FORMULA_KEYFields inherited from interface org.opengis.referencing.ReferenceIdentifier
CODESPACE_KEY, VERSION_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates a new wrapper for the given PROJ4J implementation. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.parameter.ParameterValueGroupUnsupported operation.org.opengis.parameter.ParameterValueGroupclone()Returns a copy of this group of parameters.org.opengis.parameter.ParameterValueGroupCreates a new instance of this group of parameters.org.opengis.parameter.GeneralParameterDescriptordescriptor(String name) Returns the parameter descriptor of the given name.List<org.opengis.parameter.GeneralParameterDescriptor> Returns the descriptions of all parameters having a non-default value.final StringgetCode()Returns the operation method name.org.opengis.parameter.ParameterDescriptorGroupReturns the descriptors of parameters of the projection.org.opengis.referencing.operation.FormulaFormula(s) or procedure used by this operation method.Set<org.opengis.referencing.ReferenceIdentifier> Returns the EPSG code of this method, if known.intReturns the maximum number of times that this parameter group is required.intReturns the minimum number of times that this parameter group is required.org.opengis.parameter.ParameterDescriptorGroupReturns the descriptors of parameters of the projection.Deprecated.This property has been removed in latest revision of ISO 19111.Deprecated.This property has been removed in latest revision of ISO 19111.List<org.opengis.parameter.ParameterValueGroup> Unsupported operation.(package private) final ObjectReturns the PROJ4J backing implementation.org.opengis.parameter.ParameterValue<?> Returns the parameter value of the given name.List<org.opengis.parameter.GeneralParameterValue> values()Returns the values of all parameters having a non-default value.(package private) static OperationMethodWrapperwrap(Projection impl) Wraps the given implementation.(package private) static OperationMethodWrapperWraps the target CRS of the given transform.Methods inherited from class Wrapper
equals, getAlias, getAuthority, getCodeSpace, getDomainOfValidity, getName, getRemarks, getScope, getVersion, hashCode, toString, toWKTMethods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getName, getRemarks, toWKT
-
Field Details
-
impl
The wrapped PROJ4 implementation.
-
-
Constructor Details
-
OperationMethodWrapper
Creates a new wrapper for the given PROJ4J implementation.
-
-
Method Details
-
wrap
Wraps the given implementation.- Parameters:
impl- the implementation to wrap, ornull- Returns:
- the wrapper, or
nullif the given implementation was null
-
wrapTarget
Wraps the target CRS of the given transform.- Parameters:
impl- the implementation to wrap, ornull- Returns:
- the wrapper, or
nullif none
-
implementation
Returns the PROJ4J backing implementation..- Specified by:
implementationin classWrapper- Returns:
- the PROJ4J backing implementation
-
getCode
Returns the operation method name.. In the PROJ4J implementations, theProjection.toString()method seems to be the method name. However, this is not formalized in the Javadoc. -
getIdentifiers
Returns the EPSG code of this method, if known..- Specified by:
getIdentifiersin interfaceorg.opengis.referencing.IdentifiedObject- Overrides:
getIdentifiersin classWrapper- Returns:
- the EPSG code of this method, if known
-
getFormula
public org.opengis.referencing.operation.Formula getFormula()Formula(s) or procedure used by this operation method. This information is not provided.- Specified by:
getFormulain interfaceorg.opengis.referencing.operation.OperationMethod
-
getSourceDimensions
Deprecated.This property has been removed in latest revision of ISO 19111.- Specified by:
getSourceDimensionsin interfaceorg.opengis.referencing.operation.OperationMethod
-
getTargetDimensions
Deprecated.This property has been removed in latest revision of ISO 19111.- Specified by:
getTargetDimensionsin interfaceorg.opengis.referencing.operation.OperationMethod
-
getMinimumOccurs
public int getMinimumOccurs()Returns the minimum number of times that this parameter group is required..- Specified by:
getMinimumOccursin interfaceorg.opengis.parameter.GeneralParameterDescriptor- Returns:
- the minimum number of times that this parameter group is required
-
getMaximumOccurs
public int getMaximumOccurs()Returns the maximum number of times that this parameter group is required..- Specified by:
getMaximumOccursin interfaceorg.opengis.parameter.GeneralParameterDescriptor- Returns:
- the maximum number of times that this parameter group is required
-
getParameters
public org.opengis.parameter.ParameterDescriptorGroup getParameters()Returns the descriptors of parameters of the projection.. This method is defined inOperationMethod.- Specified by:
getParametersin interfaceorg.opengis.referencing.operation.OperationMethod- Returns:
- the descriptors of parameters of the projection
-
getDescriptor
public org.opengis.parameter.ParameterDescriptorGroup getDescriptor()Returns the descriptors of parameters of the projection.. This method is defined inParameterValueGroup.- Specified by:
getDescriptorin interfaceorg.opengis.parameter.GeneralParameterValue- Specified by:
getDescriptorin interfaceorg.opengis.parameter.ParameterValueGroup- Returns:
- the descriptors of parameters of the projection
-
descriptors
Returns the descriptions of all parameters having a non-default value.. The check for non-default values is a heuristic rule for identifying which parameters are used by the PROJ4JProjectioninstance.- Specified by:
descriptorsin interfaceorg.opengis.parameter.ParameterDescriptorGroup- Returns:
- the descriptions of all parameters having a non-default value
-
values
Returns the values of all parameters having a non-default value.. The check for non-default values is a heuristic rule for identifying which parameters are used by the PROJ4JProjectioninstance.- Specified by:
valuesin interfaceorg.opengis.parameter.ParameterValueGroup- Returns:
- the values of all parameters having a non-default value
-
descriptor
public org.opengis.parameter.GeneralParameterDescriptor descriptor(String name) throws org.opengis.parameter.ParameterNotFoundException Returns the parameter descriptor of the given name.- Specified by:
descriptorin interfaceorg.opengis.parameter.ParameterDescriptorGroup- Parameters:
name- name of the desired parameter- Returns:
- parameter descriptor for the given name
- Throws:
org.opengis.parameter.ParameterNotFoundException- if the given name is unknown
-
parameter
public org.opengis.parameter.ParameterValue<?> parameter(String name) throws org.opengis.parameter.ParameterNotFoundException Returns the parameter value of the given name.- Specified by:
parameterin interfaceorg.opengis.parameter.ParameterValueGroup- Parameters:
name- name of the desired parameter- Returns:
- parameter value for the given name
- Throws:
org.opengis.parameter.ParameterNotFoundException- if the given name is unknown
-
groups
-
addGroup
public org.opengis.parameter.ParameterValueGroup addGroup(String name) throws org.opengis.parameter.ParameterNotFoundException, IllegalStateException Unsupported operation.- Specified by:
addGroupin interfaceorg.opengis.parameter.ParameterValueGroup- Throws:
org.opengis.parameter.ParameterNotFoundExceptionIllegalStateException
-
createValue
public org.opengis.parameter.ParameterValueGroup createValue()Creates a new instance of this group of parameters. All accessible parameters are set to their default value.- Specified by:
createValuein interfaceorg.opengis.parameter.GeneralParameterDescriptor- Specified by:
createValuein interfaceorg.opengis.parameter.ParameterDescriptorGroup
-
clone
public org.opengis.parameter.ParameterValueGroup clone()Returns a copy of this group of parameters..
-