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
 
 public class CombinedFXYGeoCoding extends AbstractGeoCoding A geo-coding based on a combination ofGeoCodings. All the geocodings added must be wrapped in aCodingWrapperwhich describes the area in scene coordinates to which the geocoding is concerned.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCombinedFXYGeoCoding.CodingWrapper
 - 
Constructor SummaryConstructors Constructor Description CombinedFXYGeoCoding(CombinedFXYGeoCoding.CodingWrapper[] codingWrappers)
 - 
Method SummaryAll 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.voiddispose()Releases all of the resources used by this object instance and all of its owned children.CombinedFXYGeoCoding.CodingWrapper[]getCodingWrappers()Returns theCodingWrappersthisGeoCodingconsists of.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.PixelPosgetPixelPos(GeoPos geoPos, PixelPos pixelPos)Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.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.AbstractGeoCodingcreateImageCRS, getGeoCRS, getImageCRS, getImageToMapTransform, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
 
- 
 
- 
- 
- 
Constructor Detail- 
CombinedFXYGeoCodingpublic CombinedFXYGeoCoding(CombinedFXYGeoCoding.CodingWrapper[] codingWrappers) 
 
- 
 - 
Method Detail- 
getCodingWrapperspublic CombinedFXYGeoCoding.CodingWrapper[] getCodingWrappers() Returns theCodingWrappersthisGeoCodingconsists of.- Returns:
- array of CodingWrappers.
 
 - 
transferGeoCodingpublic boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef) - Specified by:
- transferGeoCodingin class- AbstractGeoCoding
- Parameters:
- srcScene- the source scene
- destScene- the destination scene
- subsetDef- the definition of the subset, may be- null
- Returns:
- true, if the geo-coding could be transferred.
 
 - 
canClonepublic boolean canClone() Description copied from class:AbstractGeoCodingCheck if geocoding can be cloned.- Specified by:
- canClonein interface- GeoCoding
- Overrides:
- canClonein class- AbstractGeoCoding
- Returns:
- if so or not
 
 - 
clonepublic GeoCoding clone() Description copied from class:AbstractGeoCodingCreates a shallow clone of this geocoding. Geolocation raster data is shared.- Specified by:
- clonein interface- GeoCoding
- Overrides:
- clonein class- AbstractGeoCoding
- Returns:
- the cloned geocoding
 
 - 
isCrossingMeridianAt180public boolean isCrossingMeridianAt180() Description copied from interface:GeoCodingChecks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.- Returns:
- true, if so
 
 - 
canGetPixelPospublic boolean canGetPixelPos() Description copied from interface:GeoCodingChecks whether or not this geo-coding can determine the pixel position from a geodetic position.- Returns:
- true, if so
 
 - 
canGetGeoPospublic boolean canGetGeoPos() Description copied from interface:GeoCodingChecks whether or not this geo-coding can determine the geodetic position from a pixel position.- Returns:
- true, if so
 
 - 
getPixelPospublic PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos) Description copied from interface:GeoCodingReturns 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 by- GeoCoding.getGeoCRS()
- pixelPos- an instance of- Pointto 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
 
 - 
getGeoPospublic GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos) Description copied from interface:GeoCodingReturns the latitude and longitude value for a given pixel co-ordinate.- Parameters:
- pixelPos- the pixel's co-ordinates given as x,y
- geoPos- an instance of- GeoPosto 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()
 
 - 
getDatumpublic Datum getDatum() Description copied from interface:GeoCodingGets the datum, the reference point or surface against whichGeoPosmeasurements are made.- Returns:
- the datum
 
 - 
disposepublic void dispose() Description copied from interface:GeoCodingReleases 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.
 
- 
 
-