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
public abstract class AbstractGeoCoding extends Object implements GeoCoding
AbstractGeoCodingis 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
Constructors Modifier Constructor Description protectedAbstractGeoCoding()Default constructor.protectedAbstractGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanClone()Check if geocoding can be cloned.GeoCodingclone()Creates a shallow clone of this geocoding.protected static org.geotools.referencing.crs.DefaultDerivedCRScreateImageCRS(org.opengis.referencing.crs.CoordinateReferenceSystem baseCRS, org.opengis.referencing.operation.MathTransform baseToDerivedTransform)org.opengis.referencing.crs.CoordinateReferenceSystemgetGeoCRS()org.opengis.referencing.crs.CoordinateReferenceSystemgetImageCRS()org.opengis.referencing.operation.MathTransformgetImageToMapTransform()org.opengis.referencing.crs.CoordinateReferenceSystemgetMapCRS()voidsetGeoCRS(org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)protected voidsetImageCRS(org.opengis.referencing.crs.CoordinateReferenceSystem imageCRS)protected voidsetMapCRS(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS)abstract booleantransferGeoCoding(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 Detail
-
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 Detail
-
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:
getImageCRSin 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:
getImageToMapTransformin interfaceGeoCoding- Returns:
- The math transformation used to convert image coordinates to map coordinates.
-
clone
public GeoCoding 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)
-
-