Class PixelForward

java.lang.Object
org.esa.snap.core.dataio.geocoding.forward.PixelForward
All Implemented Interfaces:
ForwardCoding

public class PixelForward extends Object implements ForwardCoding
  • Field Details

  • Constructor Details

    • PixelForward

      public PixelForward()
  • Method Details

    • getGeoPos

      public GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos)
      Description copied from interface: ForwardCoding
      Returns the latitude and longitude value for a given pixel co-ordinate.
      Specified by:
      getGeoPos in interface ForwardCoding
      Parameters:
      pixelPos - the pixel's coordinates 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 the underlying CRS
    • initialize

      public void initialize(GeoRaster geoRaster, boolean containsAntiMeridian, PixelPos[] poleLocations)
      Description copied from interface: ForwardCoding
      Initializes the ForwardCoding. Passes in the geo_raster and allows initializing.
      Specified by:
      initialize in interface ForwardCoding
      Parameters:
      geoRaster - the geoRaster
      containsAntiMeridian - whether the data crosses the anti-meridian or not
      poleLocations - locations of the poles - o3 a leght zero array if no poles are contained in the data
    • getKey

      public String getKey()
      Description copied from interface: ForwardCoding
      A ForwardCoding shall be instanced only by ComponentFactory using a String key. Such an instance must be able to return the key, in order to persist the ForwardCoding and recreate such an instance via ComponentFactory if the Product shall be opened again.
      Specified by:
      getKey in interface ForwardCoding
      Returns:
      the key String used while instantiating via ComponentFactory
    • dispose

      public void dispose()
      Description copied from interface: ForwardCoding
      Free all resources allocated
      Specified by:
      dispose in interface ForwardCoding
    • clone

      public ForwardCoding clone()
      Description copied from interface: ForwardCoding
      Create a shallow copy of the ForwardCoding, rasterdata is shared;
      Specified by:
      clone in interface ForwardCoding
      Overrides:
      clone in class Object
      Returns:
      the clone