Class ReprojectionOp
- java.lang.Object
-
- org.esa.snap.core.gpf.Operator
-
- org.esa.snap.core.gpf.common.reproject.ReprojectionOp
-
@OperatorMetadata(alias="Reproject", category="Raster/Geometric", version="1.0", authors="Marco Z\u00fchlke, Marco Peters, Ralf Quast, Norman Fomferra", copyright="(c) 2009 by Brockmann Consult", description="Reprojection of a source product to a target Coordinate Reference System.") public class ReprojectionOp extends Operator
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 Modifier and Type Class Description static class
ReprojectionOp.Spi
-
Constructor Summary
Constructors Constructor Description ReprojectionOp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Releases the resources the operator has acquired during its lifetime.void
initialize()
Initializes this operator and sets the one and only target product.protected void
validateCrsParameters()
-
Methods 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
-
-
-
-
Method Detail
-
initialize
public void initialize() throws OperatorException
Description copied from class:Operator
Initializes this operator and sets the one and only target product.The target product can be either defined by a field of type
Product
annotated with theTargetProduct
annotation 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 anOperator
instance. 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:
initialize
in classOperator
- Throws:
OperatorException
- If an error occurs during operator initialisation.- See Also:
Operator.getTargetProduct()
-
dispose
public void dispose()
Description copied from class:Operator
Releases 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()
-
-