@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.", internal=false) 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>
Modifier and Type | Class and Description |
---|---|
static class |
ReprojectionOp.Spi |
Constructor and Description |
---|
ReprojectionOp() |
Modifier and Type | Method and 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() |
canComputeTile, canComputeTileStack, checkForCancellation, computeTile, computeTileStack, deactivateComputeTileMethod, 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
public void initialize() throws OperatorException
Operator
The target product can be either defined by a field of type Product
annotated with the
TargetProduct
annotation or
by calling Operator.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 an Operator
instance.
If not already done, calling the Operator.getTargetProduct()
will always trigger
a call to the initialize()
method.
Any client code that must be performed before computation of tile data
should be placed here.
initialize
in class Operator
OperatorException
- If an error occurs during operator initialisation.Operator.getTargetProduct()
public void dispose()
Operator
Overrides should make sure to call super.dispose()
as well.
protected void validateCrsParameters()
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.