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 public class MapGeoCoding extends AbstractGeoCoding
Deprecated.since BEAM 4.8, useCrsGeoCoding
instead.A geo-coding based on a cartographic map.- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description MapGeoCoding(MapInfo mapInfo)
Deprecated.Constructs a map geo-coding based on the given map information.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canGetGeoPos()
Deprecated.Checks whether this geo-coding can determine the geodetic position from a pixel position.boolean
canGetPixelPos()
Deprecated.Checks whether this geo-coding can determine the pixel position from a geodetic position.MapGeoCoding
createDeepClone()
Deprecated.void
dispose()
Deprecated.Releases all of the resources used by this geo-coding and all of its owned children.Datum
getDatum()
Deprecated.Gets the datum, the reference point or surface against whichGeoPos
measurements are made.GeoPos
getGeoPos(PixelPos pixelPos, GeoPos geoPos)
Deprecated.Returns the latitude and longitude value for a given pixel co-ordinate.org.opengis.referencing.operation.MathTransform
getImageToMapTransform()
Deprecated.MapInfo
getMapInfo()
Deprecated.Returns the map information on which this geo-coding is based.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
isCrossingMeridianAt180()
Deprecated.Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.boolean
transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef)
Deprecated.-
Methods inherited from class org.esa.snap.core.datamodel.AbstractGeoCoding
canClone, clone, createImageCRS, getGeoCRS, getImageCRS, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
-
-
-
-
Constructor Detail
-
MapGeoCoding
public MapGeoCoding(MapInfo mapInfo)
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 Detail
-
getMapInfo
public MapInfo 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
public 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.- 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
public final GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos)
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
public Datum getDatum()
Deprecated.Gets the datum, the reference point or surface against whichGeoPos
measurements are made.- Returns:
- the datum
-
createDeepClone
public MapGeoCoding createDeepClone()
Deprecated.
-
transferGeoCoding
public boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef)
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.
-
-