|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectGridCoverageStoreParam
GridCoverageReadParam
public class GridCoverageReadParam
Describes how a stream is to be decoded. Instances of this class are used to supply
information to instances of GridCoverageReader.
Note: This class is conceptually equivalent to theImageReadParamclass provided in the standard Java library. The main difference is thatGridCoverageReadParamworks with geodetic coordinates whileImageReadParamworks with pixel coordinates.
ImageReadParam,
Serialized Form
| coverage/geotk-coverageio (download) | View source code for this class |
| Constructor Summary | |
|---|---|
GridCoverageReadParam()
Creates a new GridCoverageReadParam instance. |
|
GridCoverageReadParam(GridCoverageStoreParam param)
Creates a new GridCoverageReadParam instance initialized to the same
values than the given parameters. |
|
| Method Summary | |
|---|---|
void |
clear()
Resets all parameters to their null value. |
int[] |
getDestinationBands()
Returns the set of destination bands where data will be placed. |
void |
setDestinationBands(int... bands)
Sets the indices of the destination bands where data will be placed. |
| Methods inherited from class GridCoverageStoreParam |
|---|
getCoordinateReferenceSystem, getEnvelope, getResolution, getSourceBands, setCoordinateReferenceSystem, setEnvelope, setEnvelope, setResolution, setSourceBands, toString |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GridCoverageReadParam()
GridCoverageReadParam instance. All properties are
initialized to null. Callers must invoke setter methods in order
to provide information about the way to decode the stream.
public GridCoverageReadParam(GridCoverageStoreParam param)
GridCoverageReadParam instance initialized to the same
values than the given parameters.
param - The parameters to copy, or null if none.| Method Detail |
|---|
public void clear()
null value.
clear in class GridCoverageStoreParampublic int[] getDestinationBands()
null, indicating that all destination bands should be written in order.
null.ImageReadParam.getDestinationBands()
public void setDestinationBands(int... bands)
throws IllegalArgumentException
At the time of reading, an IllegalArgumentException will be thrown by the reader
if a value larger than the largest destination band index has been specified or if the
number of source bands and destination bands to be used differ.
bands - The destination bands, or null.
IllegalArgumentException - If the given array is empty,
or if it contains duplicated or negative values.ImageReadParam.setDestinationBands(int[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||