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
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.protectedAbstractGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanClone()Check if geocoding can be cloned.clone()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.CoordinateReferenceSystemorg.opengis.referencing.crs.CoordinateReferenceSystemorg.opengis.referencing.operation.MathTransformorg.opengis.referencing.crs.CoordinateReferenceSystemfinal voidsetGeoCRS(org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS) protected final voidsetImageCRS(org.opengis.referencing.crs.CoordinateReferenceSystem imageCRS) protected final 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, waitMethods 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:
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
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)
-