|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectCoverageQuery
public class CoverageQuery
A request for data in a Coverage Database. A query contains the following components:
CoverageEnvelope).
Every getter methods defined in this class return a direct reference to the objects holds
by CoverageQuery - the objects are not cloned. This approach makes easier to configure
a query by modifying directly the returned objects. Setter methods are provided for completness,
but typically don't need to be invoked.
CoverageDatabase.readSlice(CoverageQuery)
| coverage/geotk-coverage-sql (download) | View source code for this class |
| Constructor Summary | |
|---|---|
CoverageQuery(CoverageDatabase database)
Creates a new query for the given database. |
|
| Method Summary | |
|---|---|
CoverageEnvelope |
getEnvelope()
Returns the envelope of the coverage to be queried. |
IIOListeners |
getIIOListeners()
Returns the listeners to inform about read progress. |
String |
getLayer()
Returns the name of the layer to be requested, or null if unspecified. |
void |
setEnvelope(CoverageEnvelope newEnvelope)
Sets the envelope of the coverage to be queried. |
void |
setIIOListeners(IIOListeners newListeners)
Sets the listeners to inform about read progress. |
void |
setLayer(String name)
Sets the name of the layer to be requested. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoverageQuery(CoverageDatabase database)
database - The database for which a query is created.| Method Detail |
|---|
public String getLayer()
null if unspecified.
null if unspecified.public void setLayer(String name)
name - The name of the new layer to request.public CoverageEnvelope getEnvelope()
Example: the following code defines the time for which a coverage is wanted:
Date startTime = ...; Date endTime = ...; query.getEnvelope().setTimeRange(startTime, endTime);
null).
public void setEnvelope(CoverageEnvelope newEnvelope)
throws MismatchedReferenceSystemException
getEnvelope() method, but usually don't need to be invoked since the
object returne by getEnvelope() can be modified directly.
newEnvelope - The new envelope, or null for infinite bounds.
MismatchedReferenceSystemException - If the given envelope uses an incompatible CRS.public IIOListeners getIIOListeners()
Example: the following code registers a
IIOReadProgressListener which will be informed about the
progress of any image file to be read:
query.getIIOListeners().addIIOReadProgressListener(myListener);
null).public void setIIOListeners(IIOListeners newListeners)
getIIOListeners() method, but usually don't need to be invoked since the
object returne by getIIOListeners() can be modified directly.
newListeners - The new listeners, or null for none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||