Class DefiningConversion
- All Implemented Interfaces:
Serializable,IdentifiedObject,Conversion,CoordinateOperation,Operation,SingleOperation
A conversion used for the definition of a derived CRS
(including projections). This conversion has no source and target CRS, and no math transform. Those elements are
created by the derived CRS itself.
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Matthias Basler
- See Also:
-
Field Summary
Fields inherited from class DefaultOperation
methodFields inherited from class AbstractCoordinateOperation
domainOfValidity, EMPTY_ACCURACY_ARRAY, sourceCRS, targetCRS, transformFields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATORFields inherited from class Formattable
SINGLE_LINEFields inherited from interface CoordinateOperation
COORDINATE_OPERATION_ACCURACY_KEY, DOMAIN_OF_VALIDITY_KEY, OPERATION_VERSION_KEY, SCOPE_KEYFields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY -
Constructor Summary
ConstructorsConstructorDescriptionDefiningConversion(String name, ParameterValueGroup parameters) Convenience constructor for creating a defining conversion with a default operation method.DefiningConversion(Map<String, ?> properties, OperationMethod method, ParameterValueGroup parameters) Constructs a conversion from a set of parameters.DefiningConversion(Map<String, ?> properties, OperationMethod method, MathTransform transform) Constructs a conversion from a math transform. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringFormat this operation as a pseudo-WKT format.Returns the parameter values.Methods inherited from class DefaultConversion
createMethods inherited from class DefaultOperation
create, equals, getMethod, hashCodeMethods inherited from class AbstractCoordinateOperation
getAccuracy, getAccuracy, getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getOperationVersion, getScope, getSourceCRS, getTargetCRS, getTypeMethods inherited from class AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatchesMethods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTMethods inherited from interface Conversion
getOperationVersion, getSourceCRS, getTargetCRSMethods inherited from interface CoordinateOperation
getCoordinateOperationAccuracy, getDomainOfValidity, getMathTransform, getScopeMethods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Constructor Details
-
DefiningConversion
Convenience constructor for creating a defining conversion with a default operation method. The operation method is assumed two-dimensional.- Parameters:
name- The conversion name.parameters- The parameter values.- Since:
- 2.2
-
DefiningConversion
public DefiningConversion(Map<String, ?> properties, OperationMethod method, ParameterValueGroup parameters) Constructs a conversion from a set of parameters. The properties given in argument follow the same rules than for theAbstractCoordinateOperationconstructor.- Parameters:
properties- Set of properties. Should contains at least"name".method- The operation method.parameters- The parameter values.
-
DefiningConversion
public DefiningConversion(Map<String, ?> properties, OperationMethod method, MathTransform transform) Constructs a conversion from a math transform. The properties given in argument follow the same rules than for theAbstractCoordinateOperationconstructor.- Parameters:
properties- Set of properties. Should contains at least"name".method- The operation method.transform- Transform from positions in the source CRS to positions in the target CRS.- Since:
- 2.5
-
-
Method Details
-
getParameterValues
Returns the parameter values.- Specified by:
getParameterValuesin interfaceOperation- Overrides:
getParameterValuesin classDefaultOperation- Returns:
- The parameter values.
- See Also:
-
formatWKT
Format this operation as a pseudo-WKT format. No WKT format were defined for coordinate operation at the time this method was written. This method may change in any future version until a standard format is found.- Overrides:
formatWKTin classDefaultOperation- Parameters:
formatter- The formatter to use.- Returns:
- The WKT element name.
- See Also:
-