Class PixelForward
- java.lang.Object
-
- org.esa.snap.core.dataio.geocoding.forward.PixelForward
-
- All Implemented Interfaces:
ForwardCoding
public class PixelForward extends Object implements ForwardCoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPixelForward.Plugin
-
Constructor Summary
Constructors Constructor Description PixelForward()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardCodingclone()Create a shallow copy of the ForwardCoding, rasterdata is shared;voiddispose()Free all resources allocatedGeoPosgetGeoPos(PixelPos pixelPos, GeoPos geoPos)Returns the latitude and longitude value for a given pixel co-ordinate.StringgetKey()A ForwardCoding shall be instanced only byComponentFactoryusing aStringkey.voidinitialize(GeoRaster geoRaster, boolean containsAntiMeridian, PixelPos[] poleLocations)Initializes the ForwardCoding.
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getGeoPos
public GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos)
Description copied from interface:ForwardCodingReturns the latitude and longitude value for a given pixel co-ordinate.- Specified by:
getGeoPosin interfaceForwardCoding- Parameters:
pixelPos- the pixel's coordinates given as x,ygeoPos- an instance ofGeoPosto be used as return value. If this parameter isnull, 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:ForwardCodingInitializes the ForwardCoding. Passes in the geo_raster and allows initializing.- Specified by:
initializein interfaceForwardCoding- Parameters:
geoRaster- the geoRastercontainsAntiMeridian- whether the data crosses the anti-meridian or notpoleLocations- 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:ForwardCodingA ForwardCoding shall be instanced only byComponentFactoryusing aStringkey. Such an instance must be able to return the key, in order to persist the ForwardCoding and recreate such an instance viaComponentFactoryif theProductshall be opened again.- Specified by:
getKeyin interfaceForwardCoding- Returns:
- the key String used while instantiating via
ComponentFactory
-
dispose
public void dispose()
Description copied from interface:ForwardCodingFree all resources allocated- Specified by:
disposein interfaceForwardCoding
-
clone
public ForwardCoding clone()
Description copied from interface:ForwardCodingCreate a shallow copy of the ForwardCoding, rasterdata is shared;- Specified by:
clonein interfaceForwardCoding- Overrides:
clonein classObject- Returns:
- the clone
-
-