ComponentGeoCoding
with
TiePointInverse
and one of TiePointInverse
,
TiePointBilinearForward
and TiePointSplineForward
@Deprecated public class TiePointGeoCoding extends AbstractGeoCoding
Modifier and Type | Class and Description |
---|---|
static class |
TiePointGeoCoding.Approximation
Deprecated.
|
Constructor and Description |
---|
TiePointGeoCoding(TiePointGrid latGrid,
TiePointGrid lonGrid)
Deprecated.
Constructs geo-coding based on two given tie-point grids based on the WGS-84 CRS.
|
TiePointGeoCoding(TiePointGrid latGrid,
TiePointGrid lonGrid,
org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)
Deprecated.
Constructs geo-coding based on two given tie-point grids.
|
TiePointGeoCoding(TiePointGrid latGrid,
TiePointGrid lonGrid,
org.esa.snap.core.dataop.maptransf.Datum datum)
Deprecated.
since SNAP 1.0, use
TiePointGeoCoding(TiePointGrid, TiePointGrid, CoordinateReferenceSystem) |
Modifier and Type | Method and Description |
---|---|
boolean |
canClone()
Deprecated.
Check if geocoding can be cloned.
|
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.
|
GeoCoding |
clone()
Deprecated.
Creates a shallow clone of this geocoding.
|
protected void |
copyGridsToDestScene(Scene destScene)
Deprecated.
|
void |
dispose()
Deprecated.
Releases all of the resources used by this object instance and all of its owned children.
|
boolean |
equals(Object o)
Deprecated.
|
TiePointGeoCoding.Approximation |
getApproximation(int index)
Deprecated.
Gets the approximations for the given index.
|
org.esa.snap.core.dataop.maptransf.Datum |
getDatum()
Deprecated.
Gets the datum, the reference point or surface against which
GeoPos measurements are made. |
protected TiePointGrid |
getDestGrid(TiePointGrid grid,
Scene destScene,
ProductSubsetDef subsetDef)
Deprecated.
|
GeoPos |
getGeoPos(PixelPos pixelPos,
GeoPos geoPos)
Deprecated.
Returns the latitude and longitude value for a given pixel co-ordinate.
|
TiePointGrid |
getLatGrid()
Deprecated.
|
TiePointGrid |
getLonGrid()
Deprecated.
|
int |
getNumApproximations()
Deprecated.
Gets the number of approximations used for the transformation map (lat,lon) --> image (x,y).
|
PixelPos |
getPixelPos(GeoPos geoPos,
PixelPos pixelPos)
Deprecated.
Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon.
|
int |
hashCode()
Deprecated.
|
boolean |
isCrossingMeridianAt180()
Deprecated.
Gets the flag indicating that the geographic boundary of the tie-points in this geo-coding
intersects the 180 degree meridian.
|
static double |
normalizeLat(double lat)
Deprecated.
Gets the normalized latitude value.
|
double |
normalizeLon(double lon)
Deprecated.
Gets the normalized longitude value.
|
boolean |
transferGeoCoding(Scene srcScene,
Scene destScene,
ProductSubsetDef subsetDef)
Deprecated.
|
createImageCRS, getGeoCRS, getImageCRS, getImageToMapTransform, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
public TiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid)
latGrid
- the latitude gridlonGrid
- the longitude gridpublic TiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)
latGrid
- The latitude gridlonGrid
- The longitude gridgeoCRS
- The CRS to be used as both the geographic CRS and map CRS.@Deprecated public TiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, org.esa.snap.core.dataop.maptransf.Datum datum)
TiePointGeoCoding(TiePointGrid, TiePointGrid, CoordinateReferenceSystem)
latGrid
- the latitude gridlonGrid
- the longitude griddatum
- the geodetic datumpublic static double normalizeLat(double lat)
Double.NaN
if the given latitude value is out of bounds.lat
- the raw latitude value in the range -90 to +90 degreesDouble.NaN
elsepublic org.esa.snap.core.dataop.maptransf.Datum getDatum()
GeoPos
measurements are made.public boolean isCrossingMeridianAt180()
public int getNumApproximations()
public TiePointGeoCoding.Approximation getApproximation(int index)
index
- the index, must be between 0 and getNumApproximations()
- 1public boolean canGetGeoPos()
true
, if sopublic boolean canGetPixelPos()
true
, if sopublic TiePointGrid getLatGrid()
null
.public TiePointGrid getLonGrid()
null
.public 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 PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos)
geoPos
- the geographical position as lat/lon.pixelPos
- an instance of Point
to be used as retun value. If this parameter is
null
, the method creates a new instance which it then returns.public boolean canClone()
AbstractGeoCoding
canClone
in interface GeoCoding
canClone
in class AbstractGeoCoding
public GeoCoding clone()
AbstractGeoCoding
clone
in interface GeoCoding
clone
in class AbstractGeoCoding
public final double normalizeLon(double lon)
Double.NaN
if the given longitude value is out of bounds
or if it's normalized value is not in the value range of this geo-coding's normalized longitude grid..lon
- the raw longitude value in the range -180 to +180 degreesDouble.NaN
elsepublic 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.
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
protected void copyGridsToDestScene(Scene destScene)
protected TiePointGrid getDestGrid(TiePointGrid grid, Scene destScene, ProductSubsetDef subsetDef)
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.