Package org.esa.snap.core.datamodel
Class AbstractGeoCoding
java.lang.Object
org.esa.snap.core.datamodel.AbstractGeoCoding
- All Implemented Interfaces:
GeoCoding
- Direct Known Subclasses:
CombinedFXYGeoCoding
,ComponentGeoCoding
,CrsGeoCoding
,FXYGeoCoding
,GcpGeoCoding
,MapGeoCoding
,TiePointGeoCoding
AbstractGeoCoding
is the base class of all geo-coding implementation.
Note: New geo-coding implementations shall implement this abstract class, instead of
implementing the interface GeoCoding
.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor.protected
AbstractGeoCoding
(org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canClone()
Check if geocoding can be cloned.clone()
Creates a shallow clone of this geocoding.protected static org.geotools.referencing.crs.DefaultDerivedCRS
createImageCRS
(org.opengis.referencing.crs.CoordinateReferenceSystem baseCRS, org.opengis.referencing.operation.MathTransform baseToDerivedTransform) org.opengis.referencing.crs.CoordinateReferenceSystem
org.opengis.referencing.crs.CoordinateReferenceSystem
org.opengis.referencing.operation.MathTransform
org.opengis.referencing.crs.CoordinateReferenceSystem
final void
setGeoCRS
(org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS) protected final void
setImageCRS
(org.opengis.referencing.crs.CoordinateReferenceSystem imageCRS) protected final void
setMapCRS
(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS) abstract boolean
transferGeoCoding
(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.esa.snap.core.datamodel.GeoCoding
canGetGeoPos, canGetPixelPos, dispose, getDatum, getGeoPos, getPixelPos, isCrossingMeridianAt180
-
Constructor Details
-
AbstractGeoCoding
protected AbstractGeoCoding()Default constructor. Sets WGS84 as both the geographic CRS and map CRS. -
AbstractGeoCoding
protected AbstractGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS) Constructor.- Parameters:
geoCRS
- The CRS to be used as both the geographic CRS and map CRS.
-
-
Method Details
-
transferGeoCoding
public abstract boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef) - Parameters:
srcScene
- the source scenedestScene
- the destination scenesubsetDef
- the definition of the subset, may benull
- Returns:
- true, if the geo-coding could be transferred.
-
getImageCRS
public org.opengis.referencing.crs.CoordinateReferenceSystem getImageCRS()- Specified by:
getImageCRS
in interfaceGeoCoding
- Returns:
- The image coordinate reference system (CRS). It is usually derived from the base CRS by including a linear or non-linear transformation from base (geodetic) coordinates to image coordinates.
-
setImageCRS
protected final void setImageCRS(org.opengis.referencing.crs.CoordinateReferenceSystem imageCRS) -
getMapCRS
public org.opengis.referencing.crs.CoordinateReferenceSystem getMapCRS() -
setMapCRS
protected final void setMapCRS(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS) -
getGeoCRS
public org.opengis.referencing.crs.CoordinateReferenceSystem getGeoCRS() -
setGeoCRS
public final void setGeoCRS(org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS) -
getImageToMapTransform
public org.opengis.referencing.operation.MathTransform getImageToMapTransform()- Specified by:
getImageToMapTransform
in interfaceGeoCoding
- Returns:
- The math transformation used to convert image coordinates to map coordinates.
-
clone
Creates a shallow clone of this geocoding. Geolocation raster data is shared. -
canClone
public boolean canClone()Check if geocoding can be cloned. -
createImageCRS
protected static org.geotools.referencing.crs.DefaultDerivedCRS createImageCRS(org.opengis.referencing.crs.CoordinateReferenceSystem baseCRS, org.opengis.referencing.operation.MathTransform baseToDerivedTransform)
-