Class GeoCodingLazyProxy

java.lang.Object
org.esa.snap.core.dataop.barithm.GeoCodingLazyProxy
All Implemented Interfaces:
GeoCoding

public class GeoCodingLazyProxy extends Object implements GeoCoding
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.
    Gets the datum, the reference point or surface against which GeoPos measurements are made.
    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.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeoCodingLazyProxy

      public GeoCodingLazyProxy(Product product)
  • Method Details

    • isCrossingMeridianAt180

      public boolean isCrossingMeridianAt180()
      Description copied from interface: GeoCoding
      Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.
      Specified by:
      isCrossingMeridianAt180 in interface GeoCoding
      Returns:
      true, if so
    • canGetPixelPos

      public boolean canGetPixelPos()
      Description copied from interface: GeoCoding
      Checks whether or not this geo-coding can determine the pixel position from a geodetic position.
      Specified by:
      canGetPixelPos in interface GeoCoding
      Returns:
      true, if so
    • canGetGeoPos

      public boolean canGetGeoPos()
      Description copied from interface: GeoCoding
      Checks whether or not this geo-coding can determine the geodetic position from a pixel position.
      Specified by:
      canGetGeoPos in interface GeoCoding
      Returns:
      true, if so
    • getPixelPos

      public PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos)
      Description copied from interface: GeoCoding
      Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.
      Specified by:
      getPixelPos in interface GeoCoding
      Parameters:
      geoPos - the geographical position as lat/lon in the coordinate system determined by GeoCoding.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

      public GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos)
      Description copied from interface: GeoCoding
      Returns the latitude and longitude value for a given pixel co-ordinate.
      Specified by:
      getGeoPos in interface GeoCoding
      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 GeoCoding.getGeoCRS()
    • getDatum

      public Datum getDatum()
      Description copied from interface: GeoCoding
      Gets the datum, the reference point or surface against which GeoPos measurements are made.
      Specified by:
      getDatum in interface GeoCoding
      Returns:
      the datum
    • dispose

      public void dispose()
      Description copied from interface: GeoCoding
      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.

      Specified by:
      dispose in interface GeoCoding
    • getImageCRS

      public org.opengis.referencing.crs.CoordinateReferenceSystem getImageCRS()
      Specified by:
      getImageCRS in interface GeoCoding
      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

      public org.opengis.referencing.crs.CoordinateReferenceSystem getMapCRS()
      Specified by:
      getMapCRS in interface GeoCoding
      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

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

      public org.opengis.referencing.operation.MathTransform getImageToMapTransform()
      Specified by:
      getImageToMapTransform in interface GeoCoding
      Returns:
      The math transformation used to convert image coordinates to map coordinates.
    • clone

      public GeoCoding clone()
      Description copied from interface: GeoCoding
      Creates a shallow clone of this geocoding. Geolocation raster data is shared.
      Specified by:
      clone in interface GeoCoding
      Overrides:
      clone in class Object
      Returns:
      the cloned geocoding
    • canClone

      public boolean canClone()
      Description copied from interface: GeoCoding
      Check if geocoding can be cloned.
      Specified by:
      canClone in interface GeoCoding
      Returns:
      if so or not