|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.dataio.AbstractProductReader
org.esa.beam.framework.dataio.AbstractProductBuilder
org.esa.beam.framework.dataio.ProductProjectionBuilder
@Deprecated public class ProductProjectionBuilder
A special purpose product reader used to build map-projected data products.
| Field Summary |
|---|
| Fields inherited from class org.esa.beam.framework.dataio.AbstractProductBuilder |
|---|
bandMap, newProductDesc, newProductName, sceneRasterHeight, sceneRasterWidth, sourceProduct, sourceProductOwner |
| Constructor Summary | |
|---|---|
ProductProjectionBuilder(MapInfo mapInfo)
Deprecated. |
|
ProductProjectionBuilder(MapInfo mapInfo,
boolean sourceProductOwner)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
close()
Deprecated. Closes the access to all currently opened resources such as file input streams and all resources of this children directly owned by this reader. |
static Product |
createProductProjection(Product sourceProduct,
boolean sourceProductOwner,
boolean includeTiePointGrids,
MapInfo mapInfo,
String name,
String desc)
Deprecated. |
static Product |
createProductProjection(Product sourceProduct,
boolean sourceProductOwner,
MapInfo mapInfo,
String name,
String desc)
Deprecated. |
static Product |
createProductProjection(Product sourceProduct,
MapInfo mapInfo,
String name,
String desc)
Deprecated. |
ElevationModel |
getElevationModel()
Deprecated. |
boolean |
getIncludeTiePointGrids()
Deprecated. |
MapInfo |
getMapInfo()
Deprecated. |
void |
getSourceLinePixelCoords(Band destBand,
int destOffsetX,
int destOffsetY,
PixelPos[] sourceLineCoords)
Deprecated. |
void |
readBandRasterData(Band destBand,
int destOffsetX,
int destOffsetY,
int destWidth,
int destHeight,
ProductData destBuffer,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. Reads raster data from the data source specified by the given destination band into the given in-memory buffer and region. |
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,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. The template method which is called by the method after an optional spatial subset has been applied to the input parameters. |
protected Product |
readProductNodesImpl()
Deprecated. Reads a data product and returns a in-memory representation of it. |
void |
setElevationModel(ElevationModel elevationModel)
Deprecated. |
void |
setIncludeTiePointGrids(boolean includeTiePointtGrids)
Deprecated. |
void |
setMapInfo(MapInfo mapInfo)
Deprecated. |
protected void |
setSubsetDef(ProductSubsetDef subsetDef)
Deprecated. Sets the subset information. |
| Methods inherited from class org.esa.beam.framework.dataio.AbstractProductBuilder |
|---|
addAttribString, addFlagCodingsToProduct, addIndexCodingsToProduct, addMetadataToProduct, cloneFlags, cloneIndexes, cloneMetadataAttributes, cloneMetadataElements, cloneMetadataElementsAndAttributes, disposeBandMap, getSceneRasterHeight, getSceneRasterWidth, getSourceProduct, isInstanceOfValidInputType, isSourceProductOwner, readProductNodes, setNewProductDesc, setNewProductName |
| Methods inherited from class org.esa.beam.framework.dataio.AbstractProductReader |
|---|
configurePreferredTileSize, createTiePointGrid, getGridDiscontinutity, getInput, getProductComponents, getReaderPlugIn, getSubsetDef, isMetadataIgnored, isNodeAccepted, readProductNodes, setInput, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProductProjectionBuilder(MapInfo mapInfo)
public ProductProjectionBuilder(MapInfo mapInfo,
boolean sourceProductOwner)
| Method Detail |
|---|
public static Product createProductProjection(Product sourceProduct,
MapInfo mapInfo,
String name,
String desc)
throws IOException
IOException
public static Product createProductProjection(Product sourceProduct,
boolean sourceProductOwner,
MapInfo mapInfo,
String name,
String desc)
throws IOException
IOException
public static Product createProductProjection(Product sourceProduct,
boolean sourceProductOwner,
boolean includeTiePointGrids,
MapInfo mapInfo,
String name,
String desc)
throws IOException
IOExceptionpublic MapInfo getMapInfo()
public void setMapInfo(MapInfo mapInfo)
public ElevationModel getElevationModel()
public void setElevationModel(ElevationModel elevationModel)
public boolean getIncludeTiePointGrids()
public void setIncludeTiePointGrids(boolean includeTiePointtGrids)
protected void setSubsetDef(ProductSubsetDef subsetDef)
readProductNodes method.
setSubsetDef in class AbstractProductReadersubsetDef - the subset definition
protected 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 occurs
public void close()
throws IOException
This method should be called only if it is for sure that this object instance will never be used again. The
results of referencing an instance of this class after a call to close() are undefined.
Overrides of this method should always call super.close(); after disposing this instance.
close in interface ProductReaderclose in class AbstractProductBuilderIOException - if an I/O error occurs
public void readBandRasterData(Band destBand,
int destOffsetX,
int destOffsetY,
int destWidth,
int destHeight,
ProductData destBuffer,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
For a complete description, please refer to the ProductReader.readBandRasterData(org.esa.beam.framework.datamodel.Band, int, int, int, int, org.esa.beam.framework.datamodel.ProductData, com.bc.ceres.core.ProgressMonitor) interface definition}
of this method.
The AbstractProductReader implements this method using the Template Method pattern. The
template method in this case is the abstract method to which the call is delegated after an optional spatial
subset given by AbstractProductReader.getSubsetDef() has been applied to the input parameters.
readBandRasterData in interface ProductReaderreadBandRasterData in class AbstractProductReaderdestBand - the destination band which identifies the data source from which to readBandRasterDataImpl the
sample valuesdestOffsetX - 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 readBandRasterDataImpl given in the band's raster co-ordinatesdestHeight - the height of region to be readBandRasterDataImpl given in the band's raster co-ordinatesdestBuffer - the destination buffer which receives the sample values to be readBandRasterDataImplpm - a monitor to inform the user about progress
IOException - if an I/O error occurs
IllegalArgumentException - if the number of elements destination buffer not equals destWidth *
destHeight or the destination region is out of the band's rasterreadBandRasterDataImpl(org.esa.beam.framework.datamodel.Band, int, int, int, int, org.esa.beam.framework.datamodel.ProductData, com.bc.ceres.core.ProgressMonitor),
AbstractProductReader.getSubsetDef(),
ProductReader.readBandRasterData(org.esa.beam.framework.datamodel.Band, int, int, int, int, org.esa.beam.framework.datamodel.ProductData, com.bc.ceres.core.ProgressMonitor),
RasterDataNode.getRasterWidth(),
RasterDataNode.getRasterHeight()
public void getSourceLinePixelCoords(Band destBand,
int destOffsetX,
int destOffsetY,
PixelPos[] sourceLineCoords)
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,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
AbstractProductReaderThe destination band, buffer and region parameters are exactly the ones passed to the original 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 valuesdestOffsetX - 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-ordinatesdestBuffer - the destination buffer which receives the sample values to be readpm - a monitor to inform the user about progress
IOException - if an I/O error occursAbstractProductReader.readBandRasterData(org.esa.beam.framework.datamodel.Band, int, int, int, int, org.esa.beam.framework.datamodel.ProductData, com.bc.ceres.core.ProgressMonitor),
AbstractProductReader.getSubsetDef()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||