|
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.Objectorg.deegree.coverage.AbstractCoverage
org.deegree.coverage.raster.AbstractRaster
org.deegree.coverage.raster.SimpleRaster
public class SimpleRaster
This class represents a single raster with multiple bands.
| Constructor Summary | |
|---|---|
protected |
SimpleRaster(Envelope envelope,
RasterGeoReference rasterReference)
Create a SimpleRaster with no raster data but with an envelope and raster envelope. |
|
SimpleRaster(RasterData raster,
Envelope envelope,
RasterGeoReference rasterReference)
Creates a new SimpleRaster with given RasterData and Envelope |
| Method Summary | |
|---|---|
SimpleRaster |
copy()
Creates a copy of the raster with all the data. |
SimpleRaster |
createCompatibleSimpleRaster()
Creates a new empty writable SimpleRaster with same size, DataType and InterleaveType. |
SimpleRaster |
createCompatibleSimpleRaster(BandType[] bands)
Creates a SimpleRaster with same size, DataType and InterleaveType |
SimpleRaster |
createCompatibleSimpleRaster(RasterGeoReference rEnv,
Envelope env)
Creates a new empty SimpleRaster with same DataType and InterleaveType. |
void |
dispose()
Cleans up all used memory buffers. |
SimpleRaster |
getAsSimpleRaster()
Returns the AbstractRaster as a SimpleRaster. |
SimpleRaster |
getBand(int band)
Returns a single band of the raster. |
int |
getBands()
|
BandType[] |
getBandTypes()
|
int |
getColumns()
Returns columns of the raster. |
RasterData |
getRasterData()
Returns the RasterData of this SimpleRaster |
RasterDataInfo |
getRasterDataInfo()
Returns available information on the raster data. |
RasterData |
getReadOnlyRasterData()
Returns a read-only copy of the RasterData of this SimpleRaster |
int |
getRows()
Returns rows of the raster. |
SimpleRaster |
getSubRaster(double x,
double y,
double x2,
double y2)
Returns a subset of the raster. |
SimpleRaster |
getSubRaster(Envelope envelope)
Returns a subset of the raster, note this is a view on the given raster. |
SimpleRaster |
getSubRaster(Envelope envelope,
BandType[] bands)
Returns a subset of the raster, note this is a view on the given raster. |
boolean |
isSimpleRaster()
|
void |
setSubRaster(double x,
double y,
AbstractRaster source)
Sets the raster with data from source. |
void |
setSubRaster(double x,
double y,
int dstBand,
AbstractRaster source)
Sets a single band 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. |
String |
toString()
|
| Methods inherited from class org.deegree.coverage.raster.AbstractRaster |
|---|
checkBounds, envelopeString, extendRasterReference, getRasterReference |
| 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 |
|---|
protected SimpleRaster(Envelope envelope,
RasterGeoReference rasterReference)
envelope - The envelope of the new raster.rasterReference - The raster envelope of the new raster.
public SimpleRaster(RasterData raster,
Envelope envelope,
RasterGeoReference rasterReference)
raster - content for the SimpleRasterenvelope - The envelope of the new raster.rasterReference - The raster envelope of the new raster.| Method Detail |
|---|
public SimpleRaster createCompatibleSimpleRaster(BandType[] bands)
bands - number of bands
public SimpleRaster createCompatibleSimpleRaster()
public SimpleRaster createCompatibleSimpleRaster(RasterGeoReference rEnv,
Envelope env)
rEnv - The raster envelope of the new SimpleRaster.env - The boundary of the new SimpleRaster.
public SimpleRaster copy()
AbstractRaster
copy in class AbstractRasterpublic RasterData getRasterData()
public RasterData getReadOnlyRasterData()
public SimpleRaster getSubRaster(Envelope envelope)
AbstractRaster
getSubRaster in class AbstractRasterenvelope - envelope of the subset
public SimpleRaster getSubRaster(Envelope envelope,
BandType[] bands)
AbstractRaster
getSubRaster in class AbstractRasterenvelope - envelope of the subsetbands - to use for the given subset.
public SimpleRaster getSubRaster(double x,
double y,
double x2,
double y2)
AbstractRaster
getSubRaster in class AbstractRasterx - left boundaryy - upper boundaryx2 - right boundaryy2 - lower boundary
public SimpleRaster getBand(int band)
band - Number of the selected band.
public void setSubRaster(Envelope env,
AbstractRaster source)
AbstractRaster
setSubRaster in class AbstractRasterenv - Envelope with the destination areasource - data to copy
public void setSubRaster(double x,
double y,
AbstractRaster source)
AbstractRaster
setSubRaster in class AbstractRasterx - left boundaryy - upper boundarysource - data to copy
public void setSubRaster(double x,
double y,
int dstBand,
AbstractRaster source)
AbstractRaster
setSubRaster in class AbstractRasterx - left boundaryy - upper boundarydstBand - selected destination bandsource - data to copy
public void setSubRaster(Envelope env,
int dstBand,
AbstractRaster source)
AbstractRaster
setSubRaster in class AbstractRasterenv - destination areadstBand - selected destination bandsource - data to copypublic int getColumns()
AbstractRaster
getColumns in class AbstractRasterpublic int getRows()
AbstractRaster
getRows in class AbstractRasterpublic int getBands()
public BandType[] getBandTypes()
public RasterDataInfo getRasterDataInfo()
AbstractRaster
getRasterDataInfo in class AbstractRasterpublic SimpleRaster getAsSimpleRaster()
AbstractRaster
getAsSimpleRaster in class AbstractRasterpublic String toString()
toString in class AbstractRasterpublic boolean isSimpleRaster()
isSimpleRaster in class AbstractRasterpublic void dispose()
|
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 | |||||||||