public interface GeoCoding
GeoCoding
interface provides geo-spatial latitude and longitude information for a given X/Y position
of any (two-dimensional) raster.
Note: New geo-coding implementations shall implement the abstract class AbstractGeoCoding
,
instead of implementing this interface.
All GeoCoding
implementations should override
the equals()
and hashCode()
methods.
Modifier and Type | Method and Description |
---|---|
boolean |
canGetGeoPos()
Checks whether or not this geo-coding can determine the geodetic position from a pixel position.
|
boolean |
canGetPixelPos()
Checks whether or not this geo-coding can determine the pixel position from a geodetic position.
|
void |
dispose()
Releases all of the resources used by this object instance and all of its owned children.
|
org.esa.snap.core.dataop.maptransf.Datum |
getDatum()
Deprecated.
use the datum of the associated
map CRS . |
org.opengis.referencing.crs.CoordinateReferenceSystem |
getGeoCRS() |
GeoPos |
getGeoPos(PixelPos pixelPos,
GeoPos geoPos)
Returns the latitude and longitude value for a given pixel co-ordinate.
|
org.opengis.referencing.crs.CoordinateReferenceSystem |
getImageCRS() |
org.opengis.referencing.operation.MathTransform |
getImageToMapTransform() |
org.opengis.referencing.crs.CoordinateReferenceSystem |
getMapCRS() |
PixelPos |
getPixelPos(GeoPos geoPos,
PixelPos pixelPos)
Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.
|
boolean |
isCrossingMeridianAt180()
Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.
|
boolean isCrossingMeridianAt180()
true
, if soboolean canGetPixelPos()
true
, if soboolean canGetGeoPos()
true
, if soPixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos)
geoPos
- the geographical position as lat/lon in the coordinate system determined by getGeoCRS()
pixelPos
- an instance of Point
to be used as return value. If this parameter is
null
, the method creates a new instance which it then returns.GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos)
pixelPos
- the pixel's co-ordinates given as x,ygeoPos
- an instance of GeoPos
to be used as return value. If this parameter is
null
, the method creates a new instance which it then returns.getGeoCRS()
@Deprecated org.esa.snap.core.dataop.maptransf.Datum getDatum()
map CRS
.GeoPos
measurements are made.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.
org.opengis.referencing.crs.CoordinateReferenceSystem getImageCRS()
org.opengis.referencing.crs.CoordinateReferenceSystem getMapCRS()
org.opengis.referencing.crs.CoordinateReferenceSystem getGeoCRS()
org.opengis.referencing.operation.MathTransform getImageToMapTransform()
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.