|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.datamodel.AbstractGeoCoding
org.esa.beam.framework.datamodel.CrsGeoCoding
public class CrsGeoCoding
A geo-coding that is based on a well-known coordinate reference system (CRS) and affine transformation used to locate a product's scene image within the CRS.
| Constructor Summary | |
|---|---|
CrsGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS,
int imageWidth,
int imageHeight,
double easting,
double northing,
double pixelSizeX,
double pixelSizeY)
Constructs a new instance of this class from a map CRS, image dimension, and image-to-map transformation parameters. |
|
CrsGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS,
int imageWidth,
int imageHeight,
double easting,
double northing,
double pixelSizeX,
double pixelSizeY,
double referencePixelX,
double referencePixelY)
Constructs a new instance of this class from a map CRS, image dimension, and image-to-map transformation parameters. |
|
CrsGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS,
Rectangle imageBounds,
AffineTransform imageToMap)
|
|
| Method Summary | |
|---|---|
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. |
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. |
org.opengis.referencing.operation.MathTransform |
getImageToMapTransform()
|
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. |
String |
toString()
|
boolean |
transferGeoCoding(Scene srcScene,
Scene destScene,
ProductSubsetDef subsetDef)
Transfers the geo-coding of the srcScene to the destScene with respect to the given
subsetDef. |
| Methods inherited from class org.esa.beam.framework.datamodel.AbstractGeoCoding |
|---|
createImageCRS, getGeoCRS, getImageCRS, getMapCRS, setGeoCRS, setImageCRS, setMapCRS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CrsGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS,
int imageWidth,
int imageHeight,
double easting,
double northing,
double pixelSizeX,
double pixelSizeY)
throws org.opengis.referencing.FactoryException,
org.opengis.referencing.operation.TransformException
referencePixelX = referencePixelY = 0.5).
mapCRS - the map CRS.imageWidth - the width of the image.imageHeight - the height of the image.easting - the easting of the reference pixel position.northing - the northing of the reference pixel position.pixelSizeX - the size of a pixel along the x-axis in map units.pixelSizeY - the size of a pixel along the y-axis in map units (negative, if positive image Y-axis points up).
org.opengis.referencing.FactoryException - when an error occurred.
org.opengis.referencing.operation.TransformException - when an error occurred.
public CrsGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS,
int imageWidth,
int imageHeight,
double easting,
double northing,
double pixelSizeX,
double pixelSizeY,
double referencePixelX,
double referencePixelY)
throws org.opengis.referencing.FactoryException,
org.opengis.referencing.operation.TransformException
mapCRS - the map CRS.imageWidth - the width of the image.imageHeight - the height of the image.easting - the easting of the reference pixel position.northing - the northing of the reference pixel position.pixelSizeX - the size of a pixel along the x-axis in map units.pixelSizeY - the size of a pixel along the y-axis in map units (negative, if positive image Y-axis points up).referencePixelX - the x-position of the reference pixel.referencePixelY - the y-position of the reference pixel.
org.opengis.referencing.FactoryException - when an error occurred.
org.opengis.referencing.operation.TransformException - when an error occurred.
public CrsGeoCoding(org.opengis.referencing.crs.CoordinateReferenceSystem mapCRS,
Rectangle imageBounds,
AffineTransform imageToMap)
throws org.opengis.referencing.FactoryException,
org.opengis.referencing.operation.TransformException
org.opengis.referencing.FactoryException
org.opengis.referencing.operation.TransformException| Method Detail |
|---|
public org.opengis.referencing.operation.MathTransform getImageToMapTransform()
getImageToMapTransform in interface GeoCodinggetImageToMapTransform in class AbstractGeoCoding
public boolean transferGeoCoding(Scene srcScene,
Scene destScene,
ProductSubsetDef subsetDef)
AbstractGeoCodingsrcScene to the destScene with respect to the given
subsetDef.
transferGeoCoding in class AbstractGeoCodingsrcScene - the source scenedestScene - the destination scenesubsetDef - the definition of the subset, may be null
public boolean canGetGeoPos()
GeoCoding
true, if sopublic boolean canGetPixelPos()
GeoCoding
true, if sopublic void dispose()
GeoCodingThis 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 Datum getDatum()
GeoCodingGeoPos measurements are made.
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 retun value. If this parameter is
null, the method creates a new instance which it then returns.
GeoCoding.getDatum()
public PixelPos getPixelPos(GeoPos geoPos,
PixelPos pixelPos)
GeoCoding
geoPos - the geographical position as lat/lon in the coodinate system determined by GeoCoding.getDatum()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 isCrossingMeridianAt180()
GeoCoding
true, if sopublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||