public class GcpGeoCoding extends AbstractGeoCoding
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
GcpGeoCoding.Method
Class representing the approximation methods used for the GCP geo-coding. 
 | 
| Constructor and Description | 
|---|
GcpGeoCoding(GcpGeoCoding.Method method,
            double[] x,
            double[] y,
            double[] lons,
            double[] lats,
            int sceneWidth,
            int sceneHeight,
            org.esa.snap.core.dataop.maptransf.Datum datum)
Constructs a new instance of this class. 
 | 
GcpGeoCoding(GcpGeoCoding.Method method,
            Placemark[] gcps,
            int sceneWidth,
            int sceneHeight,
            org.esa.snap.core.dataop.maptransf.Datum datum)
Constructs a new instance of this class. 
 | 
| 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. 
 | 
boolean | 
equals(Object o)  | 
org.esa.snap.core.dataop.maptransf.Datum | 
getDatum()
Gets the datum, the reference point or surface against which  
GeoPos measurements are made. | 
GeoPos | 
getGeoPos(PixelPos pixelPos,
         GeoPos geoPos)
Returns the latitude and longitude value for a given pixel co-ordinate. 
 | 
GcpGeoCoding.Method | 
getMethod()
Returns the approximation method used for this geo-coding. 
 | 
GeoCoding | 
getOriginalGeoCoding()  | 
PixelPos | 
getPixelPos(GeoPos geoPos,
           PixelPos pixelPos)
Returns the pixel co-ordinates as x/y for a given geographical position given as lat/lon. 
 | 
double | 
getRmseLat()
Returns the root mean square error (RMSE) of the latitude approximation. 
 | 
double | 
getRmseLon()
Returns the root mean square error (RMSE) of the longitude approximation. 
 | 
int | 
hashCode()  | 
boolean | 
isCrossingMeridianAt180()
Checks whether or not the longitudes of this geo-coding cross the +/- 180 degree meridian. 
 | 
void | 
setGcps(Placemark[] gcps)  | 
void | 
setOriginalGeoCoding(GeoCoding geoCoding)  | 
boolean | 
transferGeoCoding(Scene sourceScene,
                 Scene targetScene,
                 ProductSubsetDef subsetDef)
 | 
createImageCRS, getGeoCRS, getImageCRS, getImageToMapTransform, getMapCRS, setGeoCRS, setImageCRS, setMapCRSpublic GcpGeoCoding(GcpGeoCoding.Method method, Placemark[] gcps, int sceneWidth, int sceneHeight, org.esa.snap.core.dataop.maptransf.Datum datum)
method - the approximation method.gcps - the ground control points.sceneWidth - the scene width.sceneHeight - the scene height.datum - the datum.public GcpGeoCoding(GcpGeoCoding.Method method, double[] x, double[] y, double[] lons, double[] lats, int sceneWidth, int sceneHeight, org.esa.snap.core.dataop.maptransf.Datum datum)
method - the approximation method.x - the x coordinates.y - the y coordinates.lons - the longitudes.lats - the latitudes.sceneWidth - the scene width.sceneHeight - the scene height.datum - the datum.public boolean transferGeoCoding(Scene sourceScene, Scene targetScene, ProductSubsetDef subsetDef)
transferGeoCoding in class AbstractGeoCodingsourceScene - the source scenetargetScene - the destination scenesubsetDef - the definition of the subset, may be nullpublic boolean canClone()
AbstractGeoCodingcanClone in interface GeoCodingcanClone in class AbstractGeoCodingpublic GeoCoding clone()
AbstractGeoCodingclone in interface GeoCodingclone in class AbstractGeoCodingpublic boolean isCrossingMeridianAt180()
true, if sopublic boolean canGetPixelPos()
true, if sopublic boolean canGetGeoPos()
true, if sopublic PixelPos getPixelPos(GeoPos geoPos, PixelPos pixelPos)
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)
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 org.esa.snap.core.dataop.maptransf.Datum getDatum()
GeoPos measurements are made.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.
public double getRmseLon()
public double getRmseLat()
public GcpGeoCoding.Method getMethod()
public GeoCoding getOriginalGeoCoding()
public void setOriginalGeoCoding(GeoCoding geoCoding)
public void setGcps(Placemark[] gcps)
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.