org.geotools.coverage.grid.io
Interface GranuleSource

All Known Subinterfaces:
GranuleStore
All Known Implementing Classes:
GranuleCatalogSource, GranuleCatalogStore

public interface GranuleSource

API to operate on Granules data.

Author:
Simone Giannecchini, GeoSolutions SAS, Andrea Aime, GeoSolutions SAS, Daniele Romagnoli, GeoSolutions SAS

Method Summary
 void dispose()
          This will free/release any resource (cached granules, ...).
 ReferencedEnvelope getBounds(Query q)
          Get the spatial bounds of the granules that would be returned by the given Query.
 int getCount(Query q)
          Gets the number of the granules that would be returned by the given Query, taking into account any settings for max features and start index set on the Query.
 SimpleFeatureCollection getGranules(Query q)
          Retrieves granules, in the form of a SimpleFeatureCollection, based on a Query.
 SimpleFeatureType getSchema()
          Retrieves the schema (feature type) that will apply to granules retrieved from this GranuleSource.
 

Method Detail

getGranules

SimpleFeatureCollection getGranules(Query q)
                                    throws IOException
Retrieves granules, in the form of a SimpleFeatureCollection, based on a Query.

Parameters:
q - the Query to select granules
Returns:
the resulting granules.
Throws:
IOException

getCount

int getCount(Query q)
             throws IOException
Gets the number of the granules that would be returned by the given Query, taking into account any settings for max features and start index set on the Query.

Parameters:
q - the Query to select granules
Returns:
the number of granules
Throws:
IOException

getBounds

ReferencedEnvelope getBounds(Query q)
                             throws IOException
Get the spatial bounds of the granules that would be returned by the given Query.

Parameters:
q - the Query to select granules
Returns:
The bounding envelope of the requested data
Throws:
IOException

getSchema

SimpleFeatureType getSchema()
                            throws IOException
Retrieves the schema (feature type) that will apply to granules retrieved from this GranuleSource.

Returns:
Throws:
IOException

dispose

void dispose()
             throws IOException
This will free/release any resource (cached granules, ...).

Throws:
IOException


Copyright © 1996-2014 Geotools. All Rights Reserved.