Package org.esa.snap.core.datamodel
Class TiePointGeoCoding
- java.lang.Object
-
- org.esa.snap.core.datamodel.AbstractGeoCoding
-
- org.esa.snap.core.datamodel.TiePointGeoCoding
-
- All Implemented Interfaces:
GeoCoding
@Deprecated public class TiePointGeoCoding extends AbstractGeoCoding
Deprecated.since SNAP 8.0.0, Better useComponentGeoCoding
withTiePointInverse
and one ofTiePointInverse
,TiePointBilinearForward
andTiePointSplineForward
A geo-coding based on two tie-point grids. One grid stores the latitude tie-points, the other stores the longitude tie-points.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TiePointGeoCoding.Approximation
Deprecated.
-
Constructor Summary
Constructors Constructor 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, Datum datum)
Deprecated.since SNAP 1.0, useTiePointGeoCoding(TiePointGrid, TiePointGrid, CoordinateReferenceSystem)
TiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)
Deprecated.Constructs geo-coding based on two given tie-point grids.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.Datum
getDatum()
Deprecated.Gets the datum, the reference point or surface against whichGeoPos
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.-
Methods inherited from class org.esa.snap.core.datamodel.AbstractGeoCoding
createImageCRS, getGeoCRS, getImageCRS, getImageToMapTransform, getMapCRS, setGeoCRS, setImageCRS, setMapCRS
-
-
-
-
Constructor Detail
-
TiePointGeoCoding
public TiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid)
Deprecated.Constructs geo-coding based on two given tie-point grids based on the WGS-84 CRS.- Parameters:
latGrid
- the latitude gridlonGrid
- the longitude grid
-
TiePointGeoCoding
public TiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, org.opengis.referencing.crs.CoordinateReferenceSystem geoCRS)
Deprecated.Constructs geo-coding based on two given tie-point grids.- Parameters:
latGrid
- The latitude gridlonGrid
- The longitude gridgeoCRS
- The CRS to be used as both the geographic CRS and map CRS.
-
TiePointGeoCoding
@Deprecated public TiePointGeoCoding(TiePointGrid latGrid, TiePointGrid lonGrid, Datum datum)
Deprecated.since SNAP 1.0, useTiePointGeoCoding(TiePointGrid, TiePointGrid, CoordinateReferenceSystem)
Constructs geo-coding based on two given tie-point grids.- Parameters:
latGrid
- the latitude gridlonGrid
- the longitude griddatum
- the geodetic datum
-
-
Method Detail
-
normalizeLat
public static double normalizeLat(double lat)
Deprecated.Gets the normalized latitude value. The method returnsDouble.NaN
if the given latitude value is out of bounds.- Parameters:
lat
- the raw latitude value in the range -90 to +90 degrees- Returns:
- the normalized latitude value,
Double.NaN
else
-
getDatum
public Datum getDatum()
Deprecated.Gets the datum, the reference point or surface against whichGeoPos
measurements are made.- Returns:
- the datum
-
isCrossingMeridianAt180
public boolean isCrossingMeridianAt180()
Deprecated.Gets the flag indicating that the geographic boundary of the tie-points in this geo-coding intersects the 180 degree meridian.- Returns:
- true if so
-
getNumApproximations
public int getNumApproximations()
Deprecated.Gets the number of approximations used for the transformation map (lat,lon) --> image (x,y).- Returns:
- the number of approximations, zero if no approximations could be computed
-
getApproximation
public TiePointGeoCoding.Approximation getApproximation(int index)
Deprecated.Gets the approximations for the given index.- Parameters:
index
- the index, must be between 0 andgetNumApproximations()
- 1- Returns:
- the approximation, never null
-
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
-
getLatGrid
public TiePointGrid getLatGrid()
Deprecated.- Returns:
- the latitude grid, never
null
.
-
getLonGrid
public TiePointGrid getLonGrid()
Deprecated.- Returns:
- the longitude grid, never
null
.
-
getGeoPos
public 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.
-
getPixelPos
public 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 ofPoint
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
-
canClone
public boolean canClone()
Deprecated.Description copied from class:AbstractGeoCoding
Check if geocoding can be cloned.- Specified by:
canClone
in interfaceGeoCoding
- Overrides:
canClone
in classAbstractGeoCoding
- Returns:
- if so or not
-
clone
public GeoCoding clone()
Deprecated.Description copied from class:AbstractGeoCoding
Creates a shallow clone of this geocoding. Geolocation raster data is shared.- Specified by:
clone
in interfaceGeoCoding
- Overrides:
clone
in classAbstractGeoCoding
- Returns:
- the cloned geocoding
-
normalizeLon
public final double normalizeLon(double lon)
Deprecated.Gets the normalized longitude value. The method returnsDouble.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..- Parameters:
lon
- the raw longitude value in the range -180 to +180 degrees- Returns:
- the normalized longitude value,
Double.NaN
else
-
dispose
public void dispose()
Deprecated.Description copied from interface:GeoCoding
Releases all of the resources used by this object instance 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.
-
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.
-
copyGridsToDestScene
protected void copyGridsToDestScene(Scene destScene)
Deprecated.
-
getDestGrid
protected TiePointGrid getDestGrid(TiePointGrid grid, Scene destScene, ProductSubsetDef subsetDef)
Deprecated.
-
-