Class Geographic3Dto2D.WKT

java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.internal.referencing.provider.Geographic3Dto2D.WKT
All Implemented Interfaces:
Parameterized
Enclosing class:
Geographic3Dto2D

public static final class Geographic3Dto2D.WKT extends FormattableObject implements Parameterized
A temporary placeholder used for formatting a PARAM_MT["Geographic 3D to 2D conversion"] element in Well-Known Text format. This placeholder is needed because there is no MathTransform implementation for the Geographic 3D to 2D conversion, since we use affine transform instead.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    true if this placeholder is for the inverse transform instead of the direct one.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WKT(boolean inverse)
    Creates a new object to be formatted.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    formatTo(Formatter formatter)
    Formats a Well Known Text version 1 (WKT 1) element for a transform using this group of parameters.
    org.opengis.parameter.ParameterDescriptorGroup
    Returns the parameters descriptor.
    org.opengis.parameter.ParameterValueGroup
    Returns the parameter values.

    Methods inherited from class org.apache.sis.io.wkt.FormattableObject

    print, toString, toString, toWKT

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • inverse

      private final boolean inverse
      true if this placeholder is for the inverse transform instead of the direct one.
  • Constructor Details

    • WKT

      public WKT(boolean inverse)
      Creates a new object to be formatted.
      Parameters:
      inverse - false for the "Geographic3D to 2D" operation, or true for its inverse.
  • Method Details

    • getParameterDescriptors

      public org.opengis.parameter.ParameterDescriptorGroup getParameterDescriptors()
      Returns the parameters descriptor.
      Specified by:
      getParameterDescriptors in interface Parameterized
      Returns:
      the parameter descriptors for this object, or null.
    • getParameterValues

      public org.opengis.parameter.ParameterValueGroup getParameterValues()
      Returns the parameter values.
      Specified by:
      getParameterValues in interface Parameterized
      Returns:
      the parameter values for this object, or null if unknown.
    • formatTo

      protected String formatTo(Formatter formatter)
      Formats a Well Known Text version 1 (WKT 1) element for a transform using this group of parameters.
      Compatibility note: Param_MT is defined in the WKT 1 specification only. If the formatter convention is set to WKT 2, then this method silently uses the WKT 1 convention without raising an error.
      Specified by:
      formatTo in class FormattableObject
      Parameters:
      formatter - the formatter where to format the inner content of this WKT element.
      Returns:
      "Param_MT" or "Inverse_MT".
      See Also: