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, wait
cloneQuietly, cloneQuietly
public java.util.List<BandQuery> getBands()
RasterQuery
RasterQuery
getBands
in interface RasterQuery
public void addBand(BandQuery query)
RasterQuery
BandQuery
to this raster queryaddBand
in interface RasterQuery
query
- Query to be addedpublic void clearBands()
RasterQuery
clearBands
in interface RasterQuery
public void setScale(double scale)
DataQuery
public double getScale()
DataQuery
public java.lang.Object getQueryParameter(java.lang.String name)
DataQuery
getQueryParameter
in interface DataQuery
name
- of the parameterpublic void setQueryParameter(java.lang.String name, java.lang.Object value)
DataQuery
setQueryParameter
in interface DataQuery
name
- of the query parametervalue
- for the query parameterpublic Envelope getClip()
RasterQuery
getClip
in interface RasterQuery
public RasterQuery setClip(Envelope clip)
RasterQuery
setClip
in interface RasterQuery
public double getPixelSize()
RasterQuery
getPixelSize
in interface RasterQuery
public RasterQuery setPixelSize(double pixelSize)
RasterQuery
setPixelSize
in interface RasterQuery
public static void registerPersistenceDefinition()
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public RasterQuery clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface RasterQuery
clone
in class java.lang.Object
java.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()}.