public class DefaultRasterQuery extends java.lang.Object implements RasterQuery
| Constructor and Description |
|---|
DefaultRasterQuery() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBand(BandQuery query)
Adds
BandQuery to this raster query |
void |
clearBands()
Clears all add band queries
|
RasterQuery |
clone()
Creates a copy of the object.
|
java.util.List<BandQuery> |
getBands()
Get added band queries to this
RasterQuery |
Envelope |
getClip()
Returns a clip from the raster
|
double |
getPixelSize()
Returns the pixel size requested
|
java.lang.Object |
getQueryParameter(java.lang.String name)
Returns the value of an query parameter.
|
double |
getScale()
Returns the scale of the data to load.
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistenceDefinition() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
RasterQuery |
setClip(Envelope clip)
Sets the envelope to clip from the raster
|
RasterQuery |
setPixelSize(double pixelSize)
Sets the pixelSize to be used in the raster
|
void |
setQueryParameter(java.lang.String name,
java.lang.Object value)
Sets the value of an query parameter.
|
void |
setScale(double scale)
Sets the scale.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneQuietly, cloneQuietlypublic java.util.List<BandQuery> getBands()
RasterQueryRasterQuerygetBands in interface RasterQuerypublic void addBand(BandQuery query)
RasterQueryBandQuery to this raster queryaddBand in interface RasterQueryquery - Query to be addedpublic void clearBands()
RasterQueryclearBands in interface RasterQuerypublic void setScale(double scale)
DataQuerypublic double getScale()
DataQuerypublic java.lang.Object getQueryParameter(java.lang.String name)
DataQuerygetQueryParameter in interface DataQueryname - of the parameterpublic void setQueryParameter(java.lang.String name,
java.lang.Object value)
DataQuerysetQueryParameter in interface DataQueryname - of the query parametervalue - for the query parameterpublic Envelope getClip()
RasterQuerygetClip in interface RasterQuerypublic RasterQuery setClip(Envelope clip)
RasterQuerysetClip in interface RasterQuerypublic double getPixelSize()
RasterQuerygetPixelSize in interface RasterQuerypublic RasterQuery setPixelSize(double pixelSize)
RasterQuerysetPixelSize in interface RasterQuerypublic static void registerPersistenceDefinition()
public void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic RasterQuery clone() throws java.lang.CloneNotSupportedException
Cloneableclone in interface RasterQueryclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the instance of the object cannot
be cloned. As this is extending Cloneable so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.