Interface ReferenceableGrid

    • Method Detail

      • getCoordinateReferenceSystem

        @UML(identifier="CoordinateReferenceSystem",
             obligation=MANDATORY,
             specification=ISO_19123)
        CoordinateReferenceSystem getCoordinateReferenceSystem()
        This inherited association from GridPositioning specifies the coordinate system into which this object transforms coordinates. ISO 19123 specifies this association directly on this class.
        Specified by:
        getCoordinateReferenceSystem in interface GridPositioning
        Returns:
        the coordinate reference system.
      • transformCoordinates

        @UML(identifier="coordTransform",
             obligation=MANDATORY,
             specification=ISO_19123)
        DirectPosition transformCoordinates​(GridCoordinates g)
        Transforms the specified GridCoordinates to a location in an external CRS. This method may transform the GridCoordinates directly, or may transform the associated sample point.
        Parameters:
        g - The coordinate to transform.
        Returns:
        the transformed coordinate.
      • inverseTransformCoordinates

        @UML(identifier="invCoordTransform",
             obligation=MANDATORY,
             specification=ISO_19123)
        GridCoordinates inverseTransformCoordinates​(DirectPosition p)
        Transforms from a direct position to the grid coordinates of the nearest grid point.
        Parameters:
        p - The coordinate to transform.
        Returns:
        the transformed coordinate.
        TODO:
        Question (Wim): GridCoordinates are always integers, how to get the not rounded results?
        Martin: The legacy OGC specification defined a "gridToCRS" math transform for that. We may consider to import this element in the proposed set of interfaces.