public class ComponentGeoCoding extends AbstractGeoCoding
Modifier and Type | Field and Description |
---|---|
static String |
SYSPROP_SNAP_PIXEL_CODING_FRACTION_ACCURACY |
Constructor and Description |
---|
ComponentGeoCoding(GeoRaster geoRaster,
ForwardCoding forwardCoding,
InverseCoding inverseCoding)
Constructs a GeoCoding with given GeoRaster, ForwardCoding and InverseCoding.
|
ComponentGeoCoding(GeoRaster geoRaster,
ForwardCoding forwardCoding,
InverseCoding inverseCoding,
org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)
Constructs a GeoCoding with given GeoRaster, ForwardCoding, InverseCoding and CRS.
|
ComponentGeoCoding(GeoRaster geoRaster,
ForwardCoding forwardCoding,
InverseCoding inverseCoding,
GeoChecks geoChecks)
Constructs a GeoCoding with given GeoRaster, ForwardCoding, InverseCoding and GeoCheck definition to be executed during initialize phase.
|
ComponentGeoCoding(GeoRaster geoRaster,
ForwardCoding forwardCoding,
InverseCoding inverseCoding,
GeoChecks geoChecks,
org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)
Constructs a GeoCoding with given GeoRaster, ForwardCoding, InverseCoding, GeoChecks to be performed during initialization and CRS.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canClone()
Check if geocoding can be cloned.
|
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.
|
GeoCoding |
clone()
Creates a shallow clone of this geocoding.
|
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 . |
ForwardCoding |
getForwardCoding() |
GeoChecks |
getGeoChecks() |
GeoPos |
getGeoPos(PixelPos pixelPos,
GeoPos geoPos)
Returns the latitude and longitude value for a given pixel co-ordinate.
|
GeoRaster |
getGeoRaster() |
InverseCoding |
getInverseCoding() |
PixelPos |
getPixelPos(GeoPos geoPos,
PixelPos pixelPos)
Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.
|
void |
initialize() |
boolean |
isCrossingMeridianAt180()
Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian.
|
boolean |
transferGeoCoding(Scene srcScene,
Scene destScene,
ProductSubsetDef subsetDef)
|
createImageCRS, getGeoCRS, getImageCRS, getImageToMapTransform, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
public static final String SYSPROP_SNAP_PIXEL_CODING_FRACTION_ACCURACY
public ComponentGeoCoding(GeoRaster geoRaster, ForwardCoding forwardCoding, InverseCoding inverseCoding)
geoRaster
- the GeoRasterforwardCoding
- the ForwardCoding, can be nullinverseCoding
- the InverseCoding, can be nullpublic ComponentGeoCoding(GeoRaster geoRaster, ForwardCoding forwardCoding, InverseCoding inverseCoding, GeoChecks geoChecks)
geoRaster
- the GeoRasterforwardCoding
- the ForwardCoding, can be nullinverseCoding
- the InverseCoding, can be nullgeoChecks
- definition of GeoChecks to be executed during initializationpublic ComponentGeoCoding(GeoRaster geoRaster, ForwardCoding forwardCoding, InverseCoding inverseCoding, org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)
geoRaster
- the GeoRasterforwardCoding
- the ForwardCoding, can be nullinverseCoding
- the InverseCoding, can be nullgeoCRS
- the CRSpublic ComponentGeoCoding(GeoRaster geoRaster, ForwardCoding forwardCoding, InverseCoding inverseCoding, GeoChecks geoChecks, org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)
geoRaster
- the GeoRasterforwardCoding
- the ForwardCoding, can be nullinverseCoding
- the InverseCoding, can be nullgeoChecks
- definition of GeoChecks to be executed during initializationgeoCRS
- the CRSpublic boolean isCrossingMeridianAt180()
GeoCoding
true
, if sopublic boolean canGetPixelPos()
GeoCoding
true
, if sopublic boolean canGetGeoPos()
GeoCoding
true
, if sopublic PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos)
GeoCoding
geoPos
- the geographical position as lat/lon in the coordinate system determined by GeoCoding.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.public GeoPos getGeoPos(PixelPos pixelPos, GeoPos geoPos)
GeoCoding
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.GeoCoding.getGeoCRS()
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 void dispose()
GeoCoding
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.
@Deprecated public org.esa.snap.core.dataop.maptransf.Datum getDatum()
map CRS
.GeoPos
measurements are made.public GeoCoding clone()
AbstractGeoCoding
clone
in interface GeoCoding
clone
in class AbstractGeoCoding
public boolean canClone()
AbstractGeoCoding
canClone
in interface GeoCoding
canClone
in class AbstractGeoCoding
public void initialize()
public GeoChecks getGeoChecks()
public ForwardCoding getForwardCoding()
public InverseCoding getInverseCoding()
public GeoRaster getGeoRaster()
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.