CrsGeoCoding
instead.public class MapGeoCoding extends AbstractGeoCoding
Constructor and Description |
---|
MapGeoCoding(org.esa.snap.core.dataop.maptransf.MapInfo mapInfo)
Deprecated.
Constructs a map geo-coding based on the given map information.
|
Modifier and Type | Method and 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.
|
org.esa.snap.core.dataop.maptransf.Datum |
getDatum()
Deprecated.
Gets the datum, the reference point or surface against which
GeoPos 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.
|
org.esa.snap.core.dataop.maptransf.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.
|
createImageCRS, getGeoCRS, getImageCRS, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
public MapGeoCoding(org.esa.snap.core.dataop.maptransf.MapInfo mapInfo)
mapInfo
- the map infomationIllegalArgumentException
- if the given mapInfo is null
.public org.esa.snap.core.dataop.maptransf.MapInfo getMapInfo()
public boolean isCrossingMeridianAt180()
false
public boolean canGetGeoPos()
true
, if sopublic boolean canGetPixelPos()
true
, if sopublic final PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos)
geoPos
- the geographical position as lat/lon.pixelPos
- an instance of PixelPos
to be used as retun value. If this parameter is
null
, the method creates a new instance which it then returns.public final GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos)
pixelPos
- the pixel's co-ordinates given as x,ygeoPos
- an instance of GeoPos
to be used as retun value. If this parameter is
null
, the method creates a new instance which it then returns.public void dispose()
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.
public org.esa.snap.core.dataop.maptransf.Datum getDatum()
GeoPos
measurements are made.public MapGeoCoding createDeepClone()
public boolean transferGeoCoding(Scene srcScene, Scene destScene, ProductSubsetDef subsetDef)
transferGeoCoding
in class AbstractGeoCoding
srcScene
- the source scenedestScene
- the destination scenesubsetDef
- the definition of the subset, may be null
public org.opengis.referencing.operation.MathTransform getImageToMapTransform()
getImageToMapTransform
in interface GeoCoding
getImageToMapTransform
in class AbstractGeoCoding
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.