Class Geographic2Dto3D
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.referencing.AbstractIdentifiedObject
org.apache.sis.referencing.operation.DefaultOperationMethod
org.apache.sis.internal.referencing.provider.AbstractProvider
org.apache.sis.internal.referencing.provider.GeodeticOperation
org.apache.sis.internal.referencing.provider.GeographicRedimension
org.apache.sis.internal.referencing.provider.Geographic2Dto3D
- All Implemented Interfaces:
Serializable
,Formattable
,MathTransformProvider
,Deprecable
,LenientComparable
,org.opengis.referencing.IdentifiedObject
,org.opengis.referencing.operation.OperationMethod
The provider for "Geographic 2D to 3D conversion".
The default operation sets the ellipsoidal height to zero.
This operation is a SIS extension; the EPSG dataset defines only the 3D to 2D case.
Consequently, WKT formatting will not represent "2D to 3D" transform. Instead, WKT will
format the inverse ("INVERSE_MT"
) of 3D to 2D transform.
- Since:
- 0.7
- Version:
- 1.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opengis.parameter.ParameterDescriptor
<Double> The ellipsoidal height to set.static final org.opengis.parameter.ParameterDescriptorGroup
The group of all parameters expected by this coordinate operation.private static final long
Serial number for inter-operability with different versions.Fields inherited from class org.apache.sis.internal.referencing.provider.GeodeticOperation
redimensioned
Fields inherited from class org.apache.sis.internal.referencing.provider.AbstractProvider
sourceCSType, sourceOnEllipsoid, targetCSType, targetOnEllipsoid
Fields inherited from class org.apache.sis.referencing.AbstractIdentifiedObject
DEPRECATED_KEY, LOCALE_KEY
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Fields inherited from interface org.opengis.referencing.operation.OperationMethod
FORMULA_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a provider with default parameters.Geographic2Dto3D
(GeodeticOperation[] redimensioned) Constructs a provider that can be resized. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.operation.MathTransform
createMathTransform
(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) Returns the transform.inverse()
Returns the inverse of this operation.(package private) Class
<Geographic3Dto2D> Returns the tree-dimensional variant of this class.Methods inherited from class org.apache.sis.internal.referencing.provider.GeodeticOperation
redimension
Methods inherited from class org.apache.sis.internal.referencing.provider.AbstractProvider
addIdentifierAndLegacy, addNameAndLegacy, builder, createLatitude, createLongitude, createMandatoryLatitude, createScale, createShift, createZeroConstant, getOperationType, recoverableException, resolveAmbiguity
Methods inherited from class org.apache.sis.referencing.operation.DefaultOperationMethod
castOrCopy, computeHashCode, equals, formatTo, getFormula, getInterface, getParameters, getSourceDimensions, getTargetDimensions, redimension
Methods inherited from class org.apache.sis.referencing.AbstractIdentifiedObject
castOrCopy, equals, formatTo, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForName
Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKT
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
HEIGHT
The ellipsoidal height to set.Parameter names SIS: height -
PARAMETERS
public static final org.opengis.parameter.ParameterDescriptorGroup PARAMETERSThe group of all parameters expected by this coordinate operation.
-
-
Constructor Details
-
Geographic2Dto3D
public Geographic2Dto3D()Constructs a provider with default parameters. -
Geographic2Dto3D
Geographic2Dto3D(GeodeticOperation[] redimensioned) Constructs a provider that can be resized.
-
-
Method Details
-
variant3D
Class<Geographic3Dto2D> variant3D()Returns the tree-dimensional variant of this class. Used for having a unique instance of this provider. This hack is not needed on the JDK9 branch.- Overrides:
variant3D
in classGeodeticOperation
-
inverse
Returns the inverse of this operation.- Overrides:
inverse
in classGeodeticOperation
- Returns:
this
for mostGeodeticOperation
instances.- See Also:
-
createMathTransform
public org.opengis.referencing.operation.MathTransform createMathTransform(org.opengis.referencing.operation.MathTransformFactory factory, org.opengis.parameter.ParameterValueGroup values) throws org.opengis.util.FactoryException Returns the transform.- Specified by:
createMathTransform
in interfaceMathTransformProvider
- Overrides:
createMathTransform
in classGeographicRedimension
- Parameters:
factory
- the factory for creating affine transforms.values
- the parameter values.- Returns:
- the math transform for the given parameter values.
- Throws:
org.opengis.util.FactoryException
- if an error occurred while creating the transform.
-