|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.AbstractFeatureSource org.geotools.data.AbstractFeatureStore org.geotools.data.AbstractFeatureLocking org.geotools.data.property.PropertyFeatureSource
Nested Class Summary |
Nested classes inherited from class org.geotools.data.FeatureLocking |
FeatureLocking.Response |
Field Summary |
Fields inherited from class org.geotools.data.AbstractFeatureStore |
transaction |
Method Summary | |
void |
addFeatureListener(FeatureListener listener)
Adds a listener to the list that's notified each time a change to the FeatureStore occurs. |
com.vividsolutions.jts.geom.Envelope |
getBounds()
Gets the bounding box of this datasource. |
int |
getCount(Query query)
Gets the number of the features that would be returned by this query. |
DataStore |
getDataStore()
Access to the DataStore implementing this FeatureStore. |
FeatureType |
getSchema()
Retrieves the featureType that features extracted from this datasource will be created with. |
void |
removeFeatureListener(FeatureListener listener)
Removes a listener from the list that's notified each time a change to the FeatureStore occurs. |
Methods inherited from class org.geotools.data.AbstractFeatureLocking |
lockFeatures, lockFeatures, lockFeatures, setFeatureLock, unLockFeatures, unLockFeatures, unLockFeatures |
Methods inherited from class org.geotools.data.AbstractFeatureStore |
addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction |
Methods inherited from class org.geotools.data.AbstractFeatureSource |
getBounds, getFeatures, getFeatures, getFeatures, namedQuery |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.data.FeatureStore |
addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction |
Methods inherited from interface org.geotools.data.FeatureSource |
getBounds, getFeatures, getFeatures, getFeatures |
Method Detail |
public DataStore getDataStore()
FeatureSource
You may use this to access such as namespace
provided by
DataStore.
public void addFeatureListener(FeatureListener listener)
FeatureSource
listener
- FeatureListenerpublic void removeFeatureListener(FeatureListener listener)
FeatureSource
listener
- FeatureListenerpublic FeatureType getSchema()
FeatureSource
The schema returned is the LCD supported by all available Features. In the common case of shapfiles and database table this schema will match that of every feature available. In the degenerate GML case this will simply reflect the gml:AbstractFeatureType.
public int getCount(Query query)
FeatureSource
If getBounds(Query) returns -1
due to expense consider
using getFeatures(Query).getCount()
as a an alternative.
getCount
in interface FeatureSource
getCount
in class AbstractFeatureSource
query
- Query we are requesting the count of
public com.vividsolutions.jts.geom.Envelope getBounds()
FeatureSource
With getBounds(Query) this becomes a convenience method for getBounds(Query.ALL), that is the bounds for all features contained here.
If getBounds() returns null
due to expense consider using
getFeatures().getBounds()
as a an alternative.
getBounds
in interface FeatureSource
getBounds
in class AbstractFeatureSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |