Class Geographic2Dto3D

All Implemented Interfaces:
Serializable, Formattable, MathTransformProvider, Deprecable, LenientComparable, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.operation.OperationMethod

public final class Geographic2Dto3D extends GeographicRedimension
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial number for inter-operability with different versions.
      See Also:
    • HEIGHT

      public static final org.opengis.parameter.ParameterDescriptor<Double> HEIGHT
      The ellipsoidal height to set.
      Parameter names
      SIS: height
    • PARAMETERS

      public static final org.opengis.parameter.ParameterDescriptorGroup PARAMETERS
      The 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 class GeodeticOperation
    • inverse

      public AbstractProvider inverse()
      Returns the inverse of this operation.
      Overrides:
      inverse in class GeodeticOperation
      Returns:
      this for most GeodeticOperation 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 interface MathTransformProvider
      Overrides:
      createMathTransform in class GeographicRedimension
      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.