|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFeatureSource
WFSFeatureSource
public class WFSFeatureSource
FeatureSource
extension interface to provide WFS specific extra information.
Nested Class Summary | |
---|---|
static class |
WFSFeatureSource.WFSFeatureResults
|
Field Summary | |
---|---|
protected WFS_1_0_0_DataStore |
ds
|
protected String |
fname
|
Fields inherited from class AbstractFeatureSource |
---|
hints, queryCapabilities |
Constructor Summary | |
---|---|
protected |
WFSFeatureSource(WFS_1_0_0_DataStore ds,
String fname)
|
Method Summary | |
---|---|
void |
addFeatureListener(FeatureListener listener)
Adds a listener to the list that's notified each time a change to the FeatureStore occurs. |
ReferencedEnvelope |
getBounds()
Retrieve Bounds of all Features. |
ReferencedEnvelope |
getBounds(Query query)
Retrieve Bounds of Query results. |
DataStore |
getDataStore()
Overrides to explicitly type narrow the return type to DataStore |
FeatureCollection<SimpleFeatureType,SimpleFeature> |
getFeatures()
Retrieve all Features. |
FeatureCollection<SimpleFeatureType,SimpleFeature> |
getFeatures(Filter filter)
|
FeatureCollection<SimpleFeatureType,SimpleFeature> |
getFeatures(Query query)
Provides an interface to for the Results of a Query. |
ResourceInfo |
getInfo()
Resource information from the wfs capabilities document. |
Name |
getName()
Returns the same name than the feature type (ie, getSchema().getName() to honor the simple feature land common
practice of calling the same both the Features produces and their types |
SimpleFeatureType |
getSchema()
Retrieves the featureType that features extracted from this datasource will be created with. |
Transaction |
getTransaction()
Retrieve the Transaction this FeatureSource |
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 AbstractFeatureSource |
---|
getCount, getFeatures, getQueryCapabilities, getSupportedHints, namedQuery |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface FeatureSource |
---|
getCount, getFeatures, getQueryCapabilities, getSupportedHints |
Field Detail |
---|
protected WFS_1_0_0_DataStore ds
protected String fname
Constructor Detail |
---|
protected WFSFeatureSource(WFS_1_0_0_DataStore ds, String fname)
Method Detail |
---|
public Name getName()
AbstractFeatureSource
getSchema().getName()
to honor the simple feature land common
practice of calling the same both the Features produces and their types
getName
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getName
in class AbstractFeatureSource
FeatureSource.getName()
public ResourceInfo getInfo()
getInfo
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getInfo
in class AbstractFeatureSource
FeatureSource.getInfo()
public DataStore getDataStore()
AbstractFeatureSource
DataStore
getDataStore
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getDataStore
in class AbstractFeatureSource
FeatureSource.getDataStore()
public void addFeatureListener(FeatureListener listener)
FeatureSource
addFeatureListener
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
listener
- FeatureListenerFeatureSource.addFeatureListener(org.geotools.data.FeatureListener)
public void removeFeatureListener(FeatureListener listener)
FeatureSource
removeFeatureListener
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
listener
- FeatureListenerFeatureSource.removeFeatureListener(org.geotools.data.FeatureListener)
public SimpleFeatureType 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.
getSchema
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
FeatureSource.getSchema()
public ReferencedEnvelope getBounds() throws IOException
AbstractFeatureSource
Currently returns null, consider getFeatures().getBounds() instead.
Subclasses may override this method to perform the appropriate optimization for this result.
getBounds
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getBounds
in class AbstractFeatureSource
IOException
- DOCUMENT ME!FeatureSource.getBounds()
public ReferencedEnvelope getBounds(Query query) throws IOException
AbstractFeatureSource
Currently returns null, consider getFeatures( query ).getBounds() instead.
Subclasses may override this method to perform the appropriate optimization for this result.
getBounds
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getBounds
in class AbstractFeatureSource
query
- Query we are requesting the bounds of
IOException
- DOCUMENT ME!FeatureSource.getBounds(org.geotools.data.Query)
public FeatureCollection<SimpleFeatureType,SimpleFeature> getFeatures() throws IOException
AbstractFeatureSource
getFeatures
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getFeatures
in class AbstractFeatureSource
IOException
- If features could not be obtainedFeatureSource.getFeatures()
public FeatureCollection<SimpleFeatureType,SimpleFeature> getFeatures(Filter filter) throws IOException
IOException
org.geotools.data.FeatureSource#getFeatures(org.geotools.filter.Filter)
public FeatureCollection<SimpleFeatureType,SimpleFeature> getFeatures(Query query) throws IOException
AbstractFeatureSource
Various queries can be made against the results, the most basic being to retrieve Features.
getFeatures
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getFeatures
in class AbstractFeatureSource
query
- a datasource query object. It encapsulates requested
information, such as typeName, maxFeatures and filter.
IOException
- For all data source errors.FeatureSource.getFeatures(org.geotools.data.Query)
public Transaction getTransaction()
AbstractFeatureSource
For a plain FeatureSource
getTransaction
in class AbstractFeatureSource
AbstractFeatureSource.getTransaction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |