|
||||||||||
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
public abstract class AbstractRaster
This class represents an abstract grid coverage.
Constructor Summary | |
---|---|
protected |
AbstractRaster()
Instantiate an AbstractRaster with no envelope. |
protected |
AbstractRaster(Envelope envelope)
Instantiate an AbstractRaster with given envelope. |
protected |
AbstractRaster(Envelope envelope,
RasterGeoReference rasterReference)
Instantiate an AbstractRaster with given envelope and raster envelope. |
Method Summary | |
---|---|
protected void |
checkBounds(Envelope envelope)
Checks if the coverage contains the envelope . |
abstract AbstractRaster |
copy()
Creates a copy of the raster with all the data. |
protected String |
envelopeString()
|
protected void |
extendRasterReference(RasterGeoReference rasterReference)
Extends current RasterReference with rasterReference. |
AbstractRaster |
getAsRaster(Envelope spatialExtent,
SampleResolution resolution,
InterpolationType interpolation)
Get a rasterized extent of this coverage by applying the given sample resolution to the given spatial extent of the coverage and applying the given interpolation if needed. |
abstract SimpleRaster |
getAsSimpleRaster()
Returns the AbstractRaster as a SimpleRaster. |
int |
getColumns()
Returns columns of the raster. |
abstract RasterDataInfo |
getRasterDataInfo()
Returns available information on the raster data. |
RasterGeoReference |
getRasterReference()
|
ResolutionInfo |
getResolutionInfo()
Returns information about the possible sample resolutions of this coverage. |
int |
getRows()
Returns rows of the raster. |
AbstractRaster |
getSubRaster(double x,
double y,
double x2,
double y2)
Returns a subset of the raster. |
abstract AbstractRaster |
getSubRaster(Envelope subsetEnv)
Returns a subset of the raster, note this is a view on the given raster. |
abstract AbstractRaster |
getSubRaster(Envelope subsetEnv,
BandType[] bands)
Returns a subset of the raster, note this is a view on the given raster. |
abstract AbstractRaster |
getSubRaster(Envelope subsetEnv,
BandType[] bands,
RasterGeoReference.OriginLocation targetOrigin)
Returns a subset of the raster, note this is a view on the given raster. |
boolean |
isSimpleRaster()
|
abstract void |
setSubRaster(double x,
double y,
AbstractRaster source)
Sets the raster with data from source. |
abstract void |
setSubRaster(double x,
double y,
int dstBand,
AbstractRaster source)
Sets a single band with data from source. |
abstract void |
setSubRaster(Envelope env,
AbstractRaster source)
Sets the raster with data from source. |
abstract 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.AbstractCoverage |
---|
destroy, extendEnvelope, getCoordinateSystem, getEnvelope, getGeometryFactory, getLabel, getName, getSupplementProperties, init, 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 AbstractRaster()
protected AbstractRaster(Envelope envelope)
envelope
- The envelope of the raster.protected AbstractRaster(Envelope envelope, RasterGeoReference rasterReference)
envelope
- The envelope of the raster.rasterReference
- The raster reference of the underlying raster.Method Detail |
---|
public int getColumns()
public int getRows()
protected void extendRasterReference(RasterGeoReference rasterReference)
rasterReference
- The raster envelope to add to the current.protected void checkBounds(Envelope envelope)
envelope
.
envelope
- The envelope to check for.public abstract AbstractRaster copy()
public abstract AbstractRaster getSubRaster(Envelope subsetEnv)
subsetEnv
- envelope of the sub raster, may not be null
public abstract AbstractRaster getSubRaster(Envelope subsetEnv, BandType[] bands)
subsetEnv
- envelope of the sub raster, may not be null
bands
- to use for the given sub raster, if null
the bands of the instance shall be used.
public abstract AbstractRaster getSubRaster(Envelope subsetEnv, BandType[] bands, RasterGeoReference.OriginLocation targetOrigin)
subsetEnv
- envelope of the sub rasterbands
- to use for the given sub raster, if null
the bands of the instance shall be used.targetOrigin
- the origin location of the target sub raster, if null
the origin location of the instance
shall be used.
public AbstractRaster getSubRaster(double x, double y, double x2, double y2)
x
- left boundaryy
- upper boundaryx2
- right boundaryy2
- lower boundary
public abstract void setSubRaster(Envelope env, AbstractRaster source)
source
- data to copyenv
- Envelope with the destination areapublic abstract void setSubRaster(double x, double y, AbstractRaster source)
x
- left boundaryy
- upper boundarysource
- data to copypublic abstract void setSubRaster(double x, double y, int dstBand, AbstractRaster source)
x
- left boundaryy
- upper boundarydstBand
- selected destination bandsource
- data to copypublic abstract void setSubRaster(Envelope env, int dstBand, AbstractRaster source)
env
- destination areadstBand
- selected destination bandsource
- data to copypublic abstract SimpleRaster getAsSimpleRaster()
public String toString()
toString
in class Object
protected String envelopeString()
public RasterGeoReference getRasterReference()
public abstract RasterDataInfo getRasterDataInfo()
public boolean isSimpleRaster()
public AbstractRaster getAsRaster(Envelope spatialExtent, SampleResolution resolution, InterpolationType interpolation)
Coverage
spatialExtent
- the area of interest of resulting rasterresolution
- the resolution to use for sampling the given extent.interpolation
- the interpolation to use, if the resolution does not match the 'native' resolution of the coverage.
public ResolutionInfo getResolutionInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |