Class RasterToVectorOp
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the operator.voidInitializes this operator and sets the one and only target product.voidsetBandName(String bandName) Set a new value for the bandName.voidsetSourceProduct(Product sourceProduct) Set a new value for the sourceProduct.Methods inherited from class org.esa.snap.core.gpf.Operator
canComputeTile, canComputeTileStack, checkForCancellation, computeTile, computeTileStack, dispose, ensureSceneGeoCoding, ensureSingleRasterSize, ensureSingleRasterSize, execute, finalize, getId, getLogger, getParameter, getParameter, getProductManager, getSourceProduct, getSourceProduct, getSourceProductId, getSourceProducts, getSourceTile, getSourceTile, getSpi, getTargetProduct, getTargetProperty, setLogger, setParameter, setParameterDefaultValues, setRequiresAllBands, setSourceProduct, setSourceProducts, setSpi, setTargetProduct, stopTileComputationObservation, update
-
Constructor Details
-
RasterToVectorOp
public RasterToVectorOp()
-
-
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:
-
doExecute
Description copied from class:OperatorExecutes the operator.For operators that compute raster data tiles, the method is usually a no-op. Other operators might perform their main work in this method, e.g. perform some image analysis such as extracting statistics and other features from data products.
Don't call this method directly. The framework may call this method
- once before the very first tile is computed, or
- as a result of a call to
Operator.execute(ProgressMonitor).
The default implementation only progresses the progress monitor.
- Overrides:
doExecutein classOperator- Parameters:
pm- A progress monitor to be notified for long-running tasks.- Throws:
OperatorException- If an error occurs during computation of the target raster.
-
setSourceProduct
Set a new value for the sourceProduct.- Overrides:
setSourceProductin classOperator- Parameters:
sourceProduct- the sourceProduct to set
-
setBandName
Set a new value for the bandName.- Parameters:
bandName- the bandName to set
-