|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.AbstractDataStore
org.geotools.data.collection.CollectionDataStore
Simple data store wrapper for feature collections. Allows to use feature collections in the user interface layer and everything else where a data store or a feature source is needed.
| Field Summary |
| Fields inherited from class org.geotools.data.AbstractDataStore |
isWriteable, listenerManager, LOGGER |
| Constructor Summary | |
CollectionDataStore(FeatureCollection collection)
Builds a data store wrapper on top of a feature collection |
|
| Method Summary | |
protected com.vividsolutions.jts.geom.Envelope |
getBounds(Query query)
Computes the bounds of the features for the specified feature type that satisfy the query provided that there is a fast way to get that result. |
protected com.vividsolutions.jts.geom.Envelope |
getBoundsInternal(Query query)
|
FeatureCollection |
getCollection()
Returns the feature collection held by this data store |
protected int |
getCount(Query query)
Gets the number of the features that would be returned by this query for the specified feature type. |
FeatureReader |
getFeatureReader(java.lang.String typeName)
Provides FeatureReader over the entire contents of typeName.
|
FeatureType |
getSchema(java.lang.String typeName)
Retrive schema information for typeName |
java.lang.String[] |
getTypeNames()
Convience method for retriving all the names from the Catalog Entires |
| Methods inherited from class org.geotools.data.AbstractDataStore |
createFeatureWriter, createLockingManager, createMetadata, createSchema, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getUnsupportedFilter, getView, updateSchema |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CollectionDataStore(FeatureCollection collection)
collection - | Method Detail |
public java.lang.String[] getTypeNames()
AbstractDataStore
getTypeNames in interface DataStoregetTypeNames in class AbstractDataStoreDataStore.getTypeNames()
public FeatureType getSchema(java.lang.String typeName)
throws java.io.IOException
AbstractDataStore
getSchema in interface DataStoregetSchema in class AbstractDataStorejava.io.IOExceptionDataStore.getSchema(java.lang.String)
public FeatureReader getFeatureReader(java.lang.String typeName)
throws java.io.IOException
typeName.
Implements getFeatureReader contract for AbstractDataStore.
getFeatureReader in class AbstractDataStoretypeName -
java.io.IOException - If typeName could not be found
DataSourceException - See IOExceptionAbstractDataStore.getFeatureSource(java.lang.String)public FeatureCollection getCollection()
protected com.vividsolutions.jts.geom.Envelope getBounds(Query query)
throws SchemaNotFoundException
AbstractDataStoreWill return null if there is not fast way to compute the bounds. Since it's based on some kind of header/cached information, it's not guaranteed to be real bound of the features
getBounds in class AbstractDataStorequery -
SchemaNotFoundExceptionorg.geotools.data.AbstractDataStore#getBounds(java.lang.String,
org.geotools.data.Query)protected com.vividsolutions.jts.geom.Envelope getBoundsInternal(Query query)
query -
protected int getCount(Query query)
throws java.io.IOException
AbstractDataStore
If getBounds(Query) returns -1 due to expense consider
using getFeatures(Query).getCount() as a an alternative.
getCount in class AbstractDataStorequery - Contains the Filter and MaxFeatures to find the bounds for.
-1
if count is too expensive to calculate or any errors or occur.
java.io.IOException - if there are errors getting the countorg.geotools.data.AbstractDataStore#getCount(java.lang.String, org.geotools.data.Query)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||