Package org.esa.snap.core.datamodel
Class FXYGeoCoding
- java.lang.Object
-
- org.esa.snap.core.datamodel.AbstractGeoCoding
-
- org.esa.snap.core.datamodel.FXYGeoCoding
-
- All Implemented Interfaces:
GeoCoding
public class FXYGeoCoding extends AbstractGeoCoding
A geo-coding based on equations. The geo-coordinates (lat, lon) and the pixel coordinates (x,y) are computed by the givenfunctions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanClone()Check if geocoding can be cloned.booleancanGetGeoPos()Checks whether or not this geo-coding can determine the geodetic position from a pixel position.booleancanGetPixelPos()Checks whether or not this geo-coding can determine the pixel position from a geodetic position.GeoCodingclone()Creates a shallow clone of this geocoding.FXYGeoCodingcreateCloneWithNewOffsetAndSize(float pixelOffsetX, float pixelOffsetY, float pixelSizeX, float pixelSizeY)voiddispose()Releases all of the resources used by this object instance and all of its owned children.DatumgetDatum()Gets the datum, the reference point or surface against whichGeoPosmeasurements are made.GeoPosgetGeoPos(PixelPos pixelPos, GeoPos geoPos)Returns the latitude and longitude value for a given pixel co-ordinate.FXYSumgetLatFunction()FXYSumgetLonFunction()floatgetPixelOffsetX()floatgetPixelOffsetY()PixelPosgetPixelPos(GeoPos geoPos, PixelPos pixelPos)Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.floatgetPixelSizeX()floatgetPixelSizeY()FXYSumgetPixelXFunction()FXYSumgetPixelYFunction()booleanisCrossingMeridianAt180()Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.booleantransferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef)-
Methods inherited from class org.esa.snap.core.datamodel.AbstractGeoCoding
createImageCRS, getGeoCRS, getImageCRS, getImageToMapTransform, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
-
-
-
-
Method Detail
-
getPixelOffsetX
public float getPixelOffsetX()
-
getPixelOffsetY
public float getPixelOffsetY()
-
getPixelSizeX
public float getPixelSizeX()
-
getPixelSizeY
public float getPixelSizeY()
-
getPixelXFunction
public FXYSum getPixelXFunction()
-
getPixelYFunction
public FXYSum getPixelYFunction()
-
getLatFunction
public FXYSum getLatFunction()
-
getLonFunction
public FXYSum getLonFunction()
-
isCrossingMeridianAt180
public boolean isCrossingMeridianAt180()
Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.- Returns:
true, if so
-
canGetPixelPos
public boolean canGetPixelPos()
Checks whether or not this geo-coding can determine the pixel position from a geodetic position.- Returns:
true, if so
-
canGetGeoPos
public boolean canGetGeoPos()
Checks whether or not this geo-coding can determine the geodetic position from a pixel position.- Returns:
true, if so
-
getPixelPos
public 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.pixelPos- an instance ofPointto be used as retun value. If this parameter isnull, 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)
Returns the latitude and longitude value for a given pixel co-ordinate.- Parameters:
pixelPos- the pixel's co-ordinates given as x,ygeoPos- an instance ofGeoPosto be used as retun value. If this parameter isnull, the method creates a new instance which it then returns.- Returns:
- the geographical position as lat/lon.
-
getDatum
public Datum getDatum()
Gets the datum, the reference point or surface against whichGeoPosmeasurements are made.- Returns:
- the datum
-
dispose
public 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.
-
transferGeoCoding
public boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef)
- Specified by:
transferGeoCodingin classAbstractGeoCoding- Parameters:
srcScene- the source scenedestScene- the destination scenesubsetDef- the definition of the subset, may benull- Returns:
- true, if the geo-coding could be transferred.
-
canClone
public boolean canClone()
Description copied from class:AbstractGeoCodingCheck if geocoding can be cloned.- Specified by:
canClonein interfaceGeoCoding- Overrides:
canClonein classAbstractGeoCoding- Returns:
- if so or not
-
clone
public GeoCoding clone()
Description copied from class:AbstractGeoCodingCreates a shallow clone of this geocoding. Geolocation raster data is shared.- Specified by:
clonein interfaceGeoCoding- Overrides:
clonein classAbstractGeoCoding- Returns:
- the cloned geocoding
-
createCloneWithNewOffsetAndSize
public FXYGeoCoding createCloneWithNewOffsetAndSize(float pixelOffsetX, float pixelOffsetY, float pixelSizeX, float pixelSizeY)
-
-