Class Geographic2Dto3D

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

public final class Geographic2Dto3D extends AbstractProvider
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
Author:
Martin Desruisseaux (Geomatys)
See Also:
  • Field Details

    • 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.
  • Method Details

    • inverse

      public AbstractProvider inverse()
      Returns the inverse of this operation.
      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
      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.
    • redimension

      @Deprecated public final org.opengis.referencing.operation.OperationMethod redimension(int sourceDimensions, int targetDimensions)
      Deprecated.
      ISO 19111:2019 removed source/target dimensions attributes.
      Returns the elements of the given array at an index computed from the given dimensions.
      Overrides:
      redimension in class DefaultOperationMethod
      Parameters:
      sourceDimensions - the desired number of input dimensions.
      targetDimensions - the desired number of output dimensions.
      Returns:
      the redimensioned operation method, or null if none.