|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.coverage.AbstractCoverage org.deegree.coverage.raster.AbstractRaster org.deegree.coverage.raster.MultiRangedRaster
public class MultiRangedRaster
This class represents an AbstractRaster with multiple ranges.
Constructor Summary | |
---|---|
MultiRangedRaster()
Create an empty MultiRangedRaster. |
Method Summary | |
---|---|
void |
addRaster(AbstractRaster raster)
Adds an AbstractRaster to the MultiRangedRaster |
MultiRangedRaster |
copy()
Creates a copy of the raster with all the data. |
SimpleRaster |
getAsSimpleRaster()
Returns the AbstractRaster as a SimpleRaster. |
int |
getNumberOfRanges()
Returns the number of ranges |
AbstractRaster |
getRange(int index)
Returns a single range with given index |
MultiRangedRaster |
getRanges(int... indices)
Returns a new MultiRangedRaster with selected indices. |
RasterDataInfo |
getRasterDataInfo()
Returns available information on the raster data. |
MultiRangedRaster |
getSubRaster(double x,
double y,
double x2,
double y2)
Returns a subset of the raster. |
MultiRangedRaster |
getSubRaster(Envelope env)
Returns a subset of the raster, note this is a view on the given raster. |
MultiRangedRaster |
getSubRaster(Envelope env,
BandType[] bands)
Returns a subset of the raster, note this is a view on the given raster. |
void |
setSubRaster(double x,
double y,
AbstractRaster source)
Sets the MultiRangedRaster with data from source. |
void |
setSubRaster(double x,
double y,
int index,
AbstractRaster source)
Sets a range with data from source. |
void |
setSubRaster(Envelope env,
AbstractRaster source)
Sets the raster with data from source. |
void |
setSubRaster(Envelope env,
int dstBand,
AbstractRaster source)
Sets a single band with data from source. |
void |
setSubset(double x,
double y,
MultiRangedRaster source)
Sets the MultiRangedRaster with data from source. |
Methods inherited from class org.deegree.coverage.raster.AbstractRaster |
---|
checkBounds, envelopeString, extendRasterReference, getColumns, getRasterReference, getRows, isSimpleRaster, toString |
Methods inherited from class org.deegree.coverage.AbstractCoverage |
---|
extendEnvelope, getCoordinateSystem, getEnvelope, getGeometryFactory, getLabel, getName, getSupplementProperties, setCoordinateSystem, setEnvelope, setLabel, setName, setSupplementProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiRangedRaster()
Method Detail |
---|
public MultiRangedRaster copy()
AbstractRaster
copy
in class AbstractRaster
public void addRaster(AbstractRaster raster)
raster
- public AbstractRaster getRange(int index)
index
- index of range
public MultiRangedRaster getRanges(int... indices)
indices
- selected ranges
public MultiRangedRaster getSubRaster(Envelope env)
AbstractRaster
getSubRaster
in class AbstractRaster
env
- envelope of the subset
public MultiRangedRaster getSubRaster(Envelope env, BandType[] bands)
AbstractRaster
getSubRaster
in class AbstractRaster
env
- envelope of the subsetbands
- to use for the given subset.
public MultiRangedRaster getSubRaster(double x, double y, double x2, double y2)
AbstractRaster
getSubRaster
in class AbstractRaster
x
- left boundaryy
- upper boundaryx2
- right boundaryy2
- lower boundary
public void setSubRaster(double x, double y, AbstractRaster source)
setSubRaster
in class AbstractRaster
x
- left boundaryy
- upper boundarysource
- data to copypublic void setSubRaster(double x, double y, int index, AbstractRaster source)
setSubRaster
in class AbstractRaster
x
- left boundaryy
- upper boundaryindex
- index of the destination rangesource
- data to copy (first band will be used)public void setSubset(double x, double y, MultiRangedRaster source)
x
- left boundaryy
- upper boundarysource
- data to copypublic void setSubRaster(Envelope env, AbstractRaster source)
AbstractRaster
setSubRaster
in class AbstractRaster
env
- Envelope with the destination areasource
- data to copypublic void setSubRaster(Envelope env, int dstBand, AbstractRaster source)
AbstractRaster
setSubRaster
in class AbstractRaster
env
- destination areadstBand
- selected destination bandsource
- data to copypublic SimpleRaster getAsSimpleRaster()
AbstractRaster
getAsSimpleRaster
in class AbstractRaster
public int getNumberOfRanges()
public RasterDataInfo getRasterDataInfo()
AbstractRaster
getRasterDataInfo
in class AbstractRaster
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |