Package org.esa.snap.core.datamodel
Class CombinedFXYGeoCoding
java.lang.Object
org.esa.snap.core.datamodel.AbstractGeoCoding
org.esa.snap.core.datamodel.CombinedFXYGeoCoding
- All Implemented Interfaces:
GeoCoding
A geo-coding based on a combination of
GeoCodings
.
All the geocodings added must be wrapped in a CodingWrapper
which describes the area in scene coordinates to which the geocoding is concerned.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canClone()
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.clone()
Creates a shallow clone of this geocoding.void
dispose()
Releases all of the resources used by this object instance and all of its owned children.Returns theCodingWrappers
thisGeoCoding
consists of.getDatum()
Gets the datum, the reference point or surface against whichGeoPos
measurements are made.Returns the latitude and longitude value for a given pixel co-ordinate.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.boolean
transferGeoCoding
(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef) Methods inherited from class org.esa.snap.core.datamodel.AbstractGeoCoding
createImageCRS, getGeoCRS, getImageCRS, getImageToMapTransform, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
-
Constructor Details
-
CombinedFXYGeoCoding
-
-
Method Details
-
getCodingWrappers
Returns theCodingWrappers
thisGeoCoding
consists of.- Returns:
- array of
CodingWrappers
.
-
transferGeoCoding
- Specified by:
transferGeoCoding
in 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:AbstractGeoCoding
Check if geocoding can be cloned.- Specified by:
canClone
in interfaceGeoCoding
- Overrides:
canClone
in classAbstractGeoCoding
- Returns:
- if so or not
-
clone
Description copied from class:AbstractGeoCoding
Creates a shallow clone of this geocoding. Geolocation raster data is shared.- Specified by:
clone
in interfaceGeoCoding
- Overrides:
clone
in classAbstractGeoCoding
- Returns:
- the cloned geocoding
-
isCrossingMeridianAt180
public boolean isCrossingMeridianAt180()Description copied from interface:GeoCoding
Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.- 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.- 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.- Returns:
true
, if so
-
getPixelPos
Description copied from interface:GeoCoding
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 byGeoCoding.getGeoCRS()
pixelPos
- an instance ofPoint
to be used as return value. If this parameter isnull
, the method creates a new instance which it then returns.- Returns:
- the pixel co-ordinates as x/y
-
getGeoPos
Description copied from interface:GeoCoding
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 ofGeoPos
to 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
GeoCoding.getGeoCRS()
-
getDatum
Description copied from interface:GeoCoding
Gets the datum, the reference point or surface against whichGeoPos
measurements are made.- 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.
-