Package org.esa.snap.core.datamodel
Class MapGeoCoding
java.lang.Object
org.esa.snap.core.datamodel.AbstractGeoCoding
org.esa.snap.core.datamodel.MapGeoCoding
- All Implemented Interfaces:
GeoCoding
Deprecated.
A geo-coding based on a cartographic map.
- Version:
- $Revision$ $Date$
-
Constructor Summary
ConstructorsConstructorDescriptionMapGeoCoding
(MapInfo mapInfo) Deprecated.Constructs a map geo-coding based on the given map information. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.Checks whether this geo-coding can determine the geodetic position from a pixel position.boolean
Deprecated.Checks whether this geo-coding can determine the pixel position from a geodetic position.Deprecated.void
dispose()
Deprecated.Releases all of the resources used by this geo-coding and all of its owned children.getDatum()
Deprecated.Gets the datum, the reference point or surface against whichGeoPos
measurements are made.final GeoPos
Deprecated.Returns the latitude and longitude value for a given pixel co-ordinate.org.opengis.referencing.operation.MathTransform
Deprecated.Deprecated.Returns the map information on which this geo-coding is based.final PixelPos
getPixelPos
(GeoPos geoPos, PixelPos pixelPos) Deprecated.Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.boolean
Deprecated.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
canClone, clone, createImageCRS, getGeoCRS, getImageCRS, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
-
Constructor Details
-
MapGeoCoding
Deprecated.Constructs a map geo-coding based on the given map information.- Parameters:
mapInfo
- the map infomation- Throws:
IllegalArgumentException
- if the given mapInfo isnull
.
-
-
Method Details
-
getMapInfo
Deprecated.Returns the map information on which this geo-coding is based.- Returns:
- the map information
-
isCrossingMeridianAt180
public boolean isCrossingMeridianAt180()Deprecated.Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian. NOTE: This method is not implemented in this class.- Returns:
- always
false
-
canGetGeoPos
public boolean canGetGeoPos()Deprecated.Checks whether this geo-coding can determine the geodetic position from a pixel position.- Returns:
true
, if so
-
canGetPixelPos
public boolean canGetPixelPos()Deprecated.Checks whether this geo-coding can determine the pixel position from a geodetic position.- Returns:
true
, if so
-
getPixelPos
Deprecated.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.pixelPos
- an instance ofPixelPos
to be used as retun value. If this parameter isnull
, the method creates a new instance which it then returns.- Returns:
- the pixel co-ordinates as x/y
-
getGeoPos
Deprecated.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 retun value. If this parameter isnull
, the method creates a new instance which it then returns.- Returns:
- the geographical position as lat/lon.
-
dispose
public void dispose()Deprecated.Releases all of the resources used by this geo-coding 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.Overrides of this method should always call
super.dispose();
after disposing this instance. -
getDatum
Deprecated.Gets the datum, the reference point or surface against whichGeoPos
measurements are made.- Returns:
- the datum
-
createDeepClone
Deprecated. -
transferGeoCoding
Deprecated.- 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.
-
getImageToMapTransform
public org.opengis.referencing.operation.MathTransform getImageToMapTransform()Deprecated.- Specified by:
getImageToMapTransform
in interfaceGeoCoding
- Overrides:
getImageToMapTransform
in classAbstractGeoCoding
- Returns:
- The math transformation used to convert image coordinates to map coordinates.
-
CrsGeoCoding
instead.