public class ProductSubsetBuilder extends AbstractProductBuilder
bandMap, newProductDesc, newProductName, sceneRasterHeight, sceneRasterWidth, sourceProduct, sourceProductOwner| Constructor and Description |
|---|
ProductSubsetBuilder() |
ProductSubsetBuilder(boolean sourceProductOwner) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBandsToProduct(Product product) |
protected void |
addGeoCodingToProduct(Product product) |
protected void |
addTiePointGridsToProduct(Product product) |
static Product |
createProductSubset(Product sourceProduct,
boolean sourceProductOwner,
ProductSubsetDef subsetDef,
String name,
String desc) |
static Product |
createProductSubset(Product sourceProduct,
ProductSubsetDef subsetDef,
String name,
String desc) |
protected void |
readBandRasterDataImpl(int sourceOffsetX,
int sourceOffsetY,
int sourceWidth,
int sourceHeight,
int sourceStepX,
int sourceStepY,
Band destBand,
int destOffsetX,
int destOffsetY,
int destWidth,
int destHeight,
ProductData destBuffer,
ProgressMonitor pm)
The template method which is called by the
readBandRasterDataSubSampling method after an optional
spatial subset has been applied to the input parameters. |
protected Product |
readProductNodesImpl()
Reads a data product and returns a in-memory representation of it.
|
addAttribString, addFlagCodingsToProduct, addIndexCodingsToProduct, addMetadataToProduct, cloneFlags, cloneIndexes, cloneMetadataAttributes, cloneMetadataElements, cloneMetadataElementsAndAttributes, close, disposeBandMap, getSceneRasterHeight, getSceneRasterWidth, getSourceProduct, isInstanceOfValidInputType, isSourceProductOwner, readProductNodes, setNewProductDesc, setNewProductNameconfigurePreferredTileSize, createTiePointGrid, getGridDiscontinutity, getInput, getProductComponents, getReaderPlugIn, getSubsetDef, isMetadataIgnored, isNodeAccepted, readBandRasterData, readProductNodes, setInput, setSubsetDef, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadTiePointGridRasterDatapublic ProductSubsetBuilder()
public ProductSubsetBuilder(boolean sourceProductOwner)
public static Product createProductSubset(Product sourceProduct, ProductSubsetDef subsetDef, String name, String desc) throws IOException
IOExceptionpublic static Product createProductSubset(Product sourceProduct, boolean sourceProductOwner, ProductSubsetDef subsetDef, String name, String desc) throws IOException
IOExceptionprotected Product readProductNodesImpl() throws IOException
readProductNodes(input, subsetInfo) of the abstract superclass.readProductNodesImpl in class AbstractProductBuilderIllegalArgumentException - if input type is not one of the supported input sources.IOException - if an I/O error occursprotected void readBandRasterDataImpl(int sourceOffsetX,
int sourceOffsetY,
int sourceWidth,
int sourceHeight,
int sourceStepX,
int sourceStepY,
Band destBand,
int destOffsetX,
int destOffsetY,
int destWidth,
int destHeight,
ProductData destBuffer,
ProgressMonitor pm)
throws IOException
readBandRasterDataSubSampling method after an optional
spatial subset has been applied to the input parameters.
The destination band, buffer and region parameters are exactly the ones passed to the original
readBandRasterDataSubSampling call. Since the destOffsetX and destOffsetY
parameters are already taken into acount in the sourceOffsetX and sourceOffsetY
parameters, an implementor of this method is free to ignore them.
readBandRasterDataImpl in class AbstractProductReadersourceOffsetX - the absolute X-offset in source raster co-ordinatessourceOffsetY - the absolute Y-offset in source raster co-ordinatessourceWidth - the width of region providing samples to be read given in source raster co-ordinatessourceHeight - the height of region providing samples to be read given in source raster co-ordinatessourceStepX - the sub-sampling in X direction within the region providing samples to be readsourceStepY - the sub-sampling in Y direction within the region providing samples to be readdestBand - the destination band which identifies the data source from which to read the sample valuesdestBuffer - the destination buffer which receives the sample values to be readdestOffsetX - the X-offset in the band's raster co-ordinatesdestOffsetY - the Y-offset in the band's raster co-ordinatesdestWidth - the width of region to be read given in the band's raster co-ordinatesdestHeight - the height of region to be read given in the band's raster co-ordinatespm - a monitor to inform the user about progressIOException - if an I/O error occursAbstractProductReader.getSubsetDef()protected void addBandsToProduct(Product product)
protected void addTiePointGridsToProduct(Product product)
protected void addGeoCodingToProduct(Product product)
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.