|
||||||||||
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)
Registers a listening object that will be notified of changes to this FeatureSource . |
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 |
SimpleFeatureCollection |
getFeatures()
Retrieve all Features. |
SimpleFeatureCollection |
getFeatures(Filter filter)
Retrieve all Feature matching the Filter. |
SimpleFeatureCollection |
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 schema (feature type) that will apply to features retrieved from this FeatureSource . |
Set |
getSupportedHints()
By default, no Hints are supported |
Transaction |
getTransaction()
Retrieve the Transaction this SimpleFeatureSource is operating against. |
void |
removeFeatureListener(FeatureListener listener)
Removes an object from this FeatureSource's listeners. |
Methods inherited from class AbstractFeatureSource |
---|
getCount, getQueryCapabilities, namedQuery |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface FeatureSource |
---|
getCount, getQueryCapabilities |
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 Set getSupportedHints()
AbstractFeatureSource
getSupportedHints
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getSupportedHints
in class AbstractFeatureSource
RenderingHints#Key
objects; may be empty but never null
Hints.FEATURE_DETACHED
,
Hints.JTS_GEOMETRY_FACTORY
,
Hints.JTS_COORDINATE_SEQUENCE_FACTORY
,
Hints.JTS_PRECISION_MODEL
,
Hints.JTS_SRID
,
Hints.GEOMETRY_DISTANCE
,
Hints.FEATURE_2D
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
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
FeatureSource.getDataStore()
public void addFeatureListener(FeatureListener listener)
FeatureSource
FeatureSource
.
addFeatureListener
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
listener
- the new listenerFeatureSource.addFeatureListener(org.geotools.data.FeatureListener)
public void removeFeatureListener(FeatureListener listener)
FeatureSource
FeatureSource's
listeners.
removeFeatureListener
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
listener
- the listener to removeFeatureSource.removeFeatureListener(org.geotools.data.FeatureListener)
public SimpleFeatureType getSchema()
FeatureSource
FeatureSource
.
For a homogeneous data source such as a shapefile or a database table, this schema be that of all features. For a heterogeneous data source, e.g. a GML document, the schema returned is the lowest common denominator across all features.
getSchema
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
FeatureSource
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
- on any errors calculating the boundsFeatureSource.getBounds(org.geotools.data.Query)
public SimpleFeatureCollection getFeatures() throws IOException
AbstractFeatureSource
getFeatures
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getFeatures
in interface SimpleFeatureSource
getFeatures
in class AbstractFeatureSource
IOException
- If features could not be obtainedFeatureSource.getFeatures()
public SimpleFeatureCollection getFeatures(Filter filter) throws IOException
AbstractFeatureSource
getFeatures
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getFeatures
in interface SimpleFeatureSource
getFeatures
in class AbstractFeatureSource
filter
- Indicates features to retrieve
IOException
- If results could not be obtainedorg.geotools.data.FeatureSource#getFeatures(org.geotools.filter.Filter)
public SimpleFeatureCollection 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 interface SimpleFeatureSource
getFeatures
in class AbstractFeatureSource
query
- DataAccess query for requested information, such as typeName,
maxFeatures and filter.
Query
IOException
- if the underlying data source cannot be accessed.FeatureSource.getFeatures(org.geotools.data.Query)
public Transaction getTransaction()
AbstractFeatureSource
For a plain SimpleFeatureSource that cannot modify this will always be Transaction.AUTO_COMMIT.
getTransaction
in class AbstractFeatureSource
AbstractFeatureSource.getTransaction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |