Class ReprojectionOp
The reprojection operator is used to geo-reference data products. Beside plain reprojection it is able to use a Digital Elevation Model (DEM) to orthorectify a data product and to collocate one product with another.
The following XML sample shows how to integrate the Reproject operator in a processing graph (an
Lambert_Azimuthal_Equal_Area projection using the WGS-84 datum):
<node id="reprojectNode">
<operator>Reproject</operator>
<sources>
<sourceProducts>readNode</sourceProducts>
</sources>
<parameters>
<wktFile/>
<crs>
PROJCS["Lambert_Azimuthal_Equal_Area / World Geodetic System 1984",
GEOGCS["World Geodetic System 1984",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH]],
PROJECTION["Lambert_Azimuthal_Equal_Area"],
PARAMETER["latitude_of_center", 0.0],
PARAMETER["longitude_of_center", 0.0],
PARAMETER["false_easting", 0.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["Easting", EAST],
AXIS["Northing", NORTH]]
</crs>
<resampling>Nearest</resampling>
<referencePixelX>0.5</referencePixelX>
<referencePixelY>0.5</referencePixelY>
<easting>9.5</easting>
<northing>56.84</northing>
<orientation>0.0</orientation>
<pixelSizeX>0.012</pixelSizeX>
<pixelSizeY>0.012</pixelSizeY>
<width>135010246</width>
<height>116629771</height>
<orthorectify>false</orthorectify>
<elevationModelName/>
<noDataValue>NaN</noDataValue>
<includeTiePointGrids>true</includeTiePointGrids>
<addDeltaBands>false</addDeltaBands>
</parameters>
</node>
- Since:
- BEAM 4.7
- Version:
- $Revision$ $Date$
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Releases the resources the operator has acquired during its lifetime.voidInitializes this operator and sets the one and only target product.protected voidMethods inherited from class org.esa.snap.core.gpf.Operator
canComputeTile, canComputeTileStack, checkForCancellation, computeTile, computeTileStack, doExecute, ensureSceneGeoCoding, ensureSingleRasterSize, ensureSingleRasterSize, execute, finalize, getId, getLogger, getParameter, getParameter, getProductManager, getSourceProduct, getSourceProduct, getSourceProductId, getSourceProducts, getSourceTile, getSourceTile, getSpi, getTargetProduct, getTargetProperty, setLogger, setParameter, setParameterDefaultValues, setRequiresAllBands, setSourceProduct, setSourceProduct, setSourceProducts, setSpi, setTargetProduct, stopTileComputationObservation, update
-
Constructor Details
-
ReprojectionOp
public ReprojectionOp()
-
-
Method Details
-
initialize
Description copied from class:OperatorInitializes this operator and sets the one and only target product.The target product can be either defined by a field of type
Productannotated with theTargetProductannotation or by callingOperator.setTargetProduct(org.esa.snap.core.datamodel.Product)method.This method shall never be called directly. The framework calls this method after it has created an instance of this
Operator. This will occur only once durting the lifetime of anOperatorinstance. If not already done, calling theOperator.getTargetProduct()will always trigger a call to theinitialize()method.Any client code that must be performed before computation of tile data should be placed here.
- Specified by:
initializein classOperator- Throws:
OperatorException- If an error occurs during operator initialisation.- See Also:
-
dispose
public void dispose()Description copied from class:OperatorReleases the resources the operator has acquired during its lifetime. The default implementation does nothing.Overrides should make sure to call
super.dispose()as well. -
validateCrsParameters
protected void validateCrsParameters()
-