|
||||||||||
| 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 AbstractFeatureSourceRenderingHints#Key objects; may be empty but never nullHints.FEATURE_DETACHED,
Hints.JTS_GEOMETRY_FACTORY,
Hints.JTS_COORDINATE_SEQUENCE_FACTORY,
Hints.JTS_PRECISION_MODEL,
Hints.JTS_SRID,
Hints.GEOMETRY_DISTANCE,
Hints.FEATURE_2Dpublic Name getName()
AbstractFeatureSourcegetSchema().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 AbstractFeatureSourceFeatureSourceFeatureSource.getName()public ResourceInfo getInfo()
getInfo in interface FeatureSource<SimpleFeatureType,SimpleFeature>getInfo in class AbstractFeatureSourceFeatureSource.getInfo()public DataStore getDataStore()
AbstractFeatureSourceDataStore
getDataStore in interface FeatureSource<SimpleFeatureType,SimpleFeature>getDataStore in class AbstractFeatureSourceFeatureSourceFeatureSource.getDataStore()public void addFeatureListener(FeatureListener listener)
FeatureSourceFeatureSource.
addFeatureListener in interface FeatureSource<SimpleFeatureType,SimpleFeature>listener - the new listenerFeatureSource.addFeatureListener(org.geotools.data.FeatureListener)public void removeFeatureListener(FeatureListener listener)
FeatureSourceFeatureSource's listeners.
removeFeatureListener in interface FeatureSource<SimpleFeatureType,SimpleFeature>listener - the listener to removeFeatureSource.removeFeatureListener(org.geotools.data.FeatureListener)public SimpleFeatureType getSchema()
FeatureSourceFeatureSource.
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>FeatureSourceFeatureSource.getSchema()
public ReferencedEnvelope getBounds()
throws IOException
AbstractFeatureSourceCurrently 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 AbstractFeatureSourceIOException - DOCUMENT ME!FeatureSource.getBounds()
public ReferencedEnvelope getBounds(Query query)
throws IOException
AbstractFeatureSourceCurrently 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 AbstractFeatureSourcequery - 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 SimpleFeatureSourcegetFeatures in class AbstractFeatureSourceIOException - If features could not be obtainedFeatureSource.getFeatures()
public SimpleFeatureCollection getFeatures(Filter filter)
throws IOException
AbstractFeatureSource
getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>getFeatures in interface SimpleFeatureSourcegetFeatures in class AbstractFeatureSourcefilter - 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
AbstractFeatureSourceVarious queries can be made against the results, the most basic being to retrieve Features.
getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>getFeatures in interface SimpleFeatureSourcegetFeatures in class AbstractFeatureSourcequery - 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()
AbstractFeatureSourceFor a plain SimpleFeatureSource that cannot modify this will always be Transaction.AUTO_COMMIT.
getTransaction in class AbstractFeatureSourceAbstractFeatureSource.getTransaction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||