Interface GeoCoding

All Known Subinterfaces:
BasicPixelGeoCoding
All Known Implementing Classes:
AbstractGeoCoding, CombinedFXYGeoCoding, ComponentGeoCoding, CrsGeoCoding, FXYGeoCoding, GcpGeoCoding, MapGeoCoding, Orthorectifier, Orthorectifier2, TiePointGeoCoding

public interface GeoCoding
The GeoCoding interface provides geo-spatial latitude and longitude information for a given X/Y position of any (two-dimensional) raster.

Note: New geo-coding implementations shall implement the abstract class AbstractGeoCoding, instead of implementing this interface.

All GeoCoding implementations should override the equals() and hashCode() methods.

Version:
$Revision$ $Date$
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if geocoding can be cloned.
    boolean
    Checks whether or not this geo-coding can determine the geodetic position from a pixel position.
    boolean
    Checks whether or not this geo-coding can determine the pixel position from a geodetic position.
    Creates a shallow clone of this geocoding.
    void
    Releases all of the resources used by this object instance and all of its owned children.
    Deprecated.
    use the datum of the associated map CRS.
    org.opengis.referencing.crs.CoordinateReferenceSystem
     
    getGeoPos(PixelPos pixelPos, GeoPos geoPos)
    Returns the latitude and longitude value for a given pixel co-ordinate.
    org.opengis.referencing.crs.CoordinateReferenceSystem
     
    org.opengis.referencing.operation.MathTransform
     
    org.opengis.referencing.crs.CoordinateReferenceSystem
     
    getPixelPos(GeoPos geoPos, PixelPos pixelPos)
    Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.
    boolean
    Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.
  • Method Details

    • isCrossingMeridianAt180

      boolean isCrossingMeridianAt180()
      Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.
      Returns:
      true, if so
    • canGetPixelPos

      boolean canGetPixelPos()
      Checks whether or not this geo-coding can determine the pixel position from a geodetic position.
      Returns:
      true, if so
    • canGetGeoPos

      boolean canGetGeoPos()
      Checks whether or not this geo-coding can determine the geodetic position from a pixel position.
      Returns:
      true, if so
    • getPixelPos

      PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos)
      Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.
      Parameters:
      geoPos - the geographical position as lat/lon in the coordinate system determined by getGeoCRS()
      pixelPos - an instance of Point to be used as return value. If this parameter is null, the method creates a new instance which it then returns.
      Returns:
      the pixel co-ordinates as x/y
    • getGeoPos

      GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos)
      Returns the latitude and longitude value for a given pixel co-ordinate.
      Parameters:
      pixelPos - the pixel's co-ordinates given as x,y
      geoPos - an instance of GeoPos to be used as return value. If this parameter is null, the method creates a new instance which it then returns.
      Returns:
      the geographical position as lat/lon in the coordinate system determined by getGeoCRS()
    • getDatum

      @Deprecated Datum getDatum()
      Deprecated.
      use the datum of the associated map CRS.
      Gets the datum, the reference point or surface against which GeoPos measurements are made.
      Returns:
      the datum
    • dispose

      void dispose()
      Releases all of the resources used by this object instance and all of its owned children. Its primary use is to allow the garbage collector to perform a vanilla job.

      This method should be called only if it is for sure that this object instance will never be used again. The results of referencing an instance of this class after a call to dispose() are undefined.

    • getImageCRS

      org.opengis.referencing.crs.CoordinateReferenceSystem getImageCRS()
      Returns:
      The image coordinate reference system (CRS). It is usually derived from the base CRS by including a linear or non-linear transformation from base (geodetic) coordinates to image coordinates.
    • getMapCRS

      org.opengis.referencing.crs.CoordinateReferenceSystem getMapCRS()
      Returns:
      The map coordinate reference system (CRS). It may be either a geographical CRS (nominal case is "WGS-84") or a derived projected CRS, e.g. "UTM 32 - North".
    • getGeoCRS

      org.opengis.referencing.crs.CoordinateReferenceSystem getGeoCRS()
      Returns:
      The geographical coordinate reference system (CRS). It may be either "WGS-84" (nominal case) or any other geographical CRS.
    • getImageToMapTransform

      org.opengis.referencing.operation.MathTransform getImageToMapTransform()
      Returns:
      The math transformation used to convert image coordinates to map coordinates.
    • clone

      GeoCoding clone()
      Creates a shallow clone of this geocoding. Geolocation raster data is shared.
      Returns:
      the cloned geocoding
    • canClone

      boolean canClone()
      Check if geocoding can be cloned.
      Returns:
      if so or not