org.geotools.data.wfs
Class WFSFeatureSource

java.lang.Object
  extended byorg.geotools.data.AbstractFeatureSource
      extended byorg.geotools.data.wfs.WFSFeatureSource
All Implemented Interfaces:
FeatureSource
Direct Known Subclasses:
WFSFeatureStore

public class WFSFeatureSource
extends AbstractFeatureSource

DOCUMENT ME!

Author:
dzwiers

Nested Class Summary
static class WFSFeatureSource.WFSFeatureResults
           
 
Field Summary
protected  WFSDataStore ds
           
protected  java.lang.String fname
           
 
Constructor Summary
protected WFSFeatureSource(WFSDataStore ds, java.lang.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.
 com.vividsolutions.jts.geom.Envelope getBounds()
          Retrieve Bounds of all Features.
 com.vividsolutions.jts.geom.Envelope getBounds(Query query)
          Retrieve Bounds of Query results.
 DataStore getDataStore()
          Access to the DataStore implementing this FeatureStore.
 FeatureCollection getFeatures()
          Retrieve all Features.
 FeatureCollection getFeatures(Filter filter)
          Retrieve all Feature matching the Filter.
 FeatureCollection getFeatures(Query query)
          Provides an interface to for the Resutls of a Query.
 FeatureType getSchema()
          Retrieves the featureType that features extracted from this datasource will be created with.
 Transaction getTransaction()
          Retrieve the Transaction this FeatureSource is opperating against.
 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.AbstractFeatureSource
getCount, namedQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ds

protected WFSDataStore ds

fname

protected java.lang.String fname
Constructor Detail

WFSFeatureSource

protected WFSFeatureSource(WFSDataStore ds,
                           java.lang.String fname)
Method Detail

getDataStore

public DataStore getDataStore()
Description copied from interface: FeatureSource
Access to the DataStore implementing this FeatureStore.

You may use this to access such as namespace provided by DataStore.

Returns:
DataStore implementing this FeatureStore
See Also:
FeatureSource.getDataStore()

addFeatureListener

public void addFeatureListener(FeatureListener listener)
Description copied from interface: FeatureSource
Adds a listener to the list that's notified each time a change to the FeatureStore occurs.

Parameters:
listener - FeatureListener
See Also:
FeatureSource.addFeatureListener(org.geotools.data.FeatureListener)

removeFeatureListener

public void removeFeatureListener(FeatureListener listener)
Description copied from interface: FeatureSource
Removes a listener from the list that's notified each time a change to the FeatureStore occurs.

Parameters:
listener - FeatureListener
See Also:
FeatureSource.removeFeatureListener(org.geotools.data.FeatureListener)

getSchema

public FeatureType getSchema()
Description copied from interface: FeatureSource
Retrieves the featureType that features extracted from this datasource will be created with.

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.

Returns:
the schema of features created by this datasource.
See Also:
FeatureSource.getSchema()

getBounds

public com.vividsolutions.jts.geom.Envelope getBounds()
                                               throws java.io.IOException
Description copied from class: AbstractFeatureSource
Retrieve Bounds of all Features.

Currently returns null, consider getFeatures().getBounds() instead.

Subclasses may override this method to perform the appropriate optimization for this result.

Specified by:
getBounds in interface FeatureSource
Overrides:
getBounds in class AbstractFeatureSource
Returns:
null representing the lack of an optimization
Throws:
java.io.IOException - DOCUMENT ME!
See Also:
FeatureSource.getBounds()

getBounds

public com.vividsolutions.jts.geom.Envelope getBounds(Query query)
                                               throws java.io.IOException
Description copied from class: AbstractFeatureSource
Retrieve Bounds of Query results.

Currently returns null, consider getFeatures( query ).getBounds() instead.

Subclasses may override this method to perform the appropriate optimization for this result.

Specified by:
getBounds in interface FeatureSource
Overrides:
getBounds in class AbstractFeatureSource
Parameters:
query - Query we are requesting the bounds of
Returns:
null representing the lack of an optimization
Throws:
java.io.IOException - DOCUMENT ME!
See Also:
FeatureSource.getBounds(org.geotools.data.Query)

getFeatures

public FeatureCollection getFeatures()
Description copied from class: AbstractFeatureSource
Retrieve all Features.

Specified by:
getFeatures in interface FeatureSource
Overrides:
getFeatures in class AbstractFeatureSource
Returns:
FeatureResults of all Features in FeatureSource
See Also:
FeatureSource.getFeatures()

getFeatures

public FeatureCollection getFeatures(Filter filter)
Description copied from class: AbstractFeatureSource
Retrieve all Feature matching the Filter.

Specified by:
getFeatures in interface FeatureSource
Overrides:
getFeatures in class AbstractFeatureSource
Parameters:
filter - Indicates features to retrieve
Returns:
FeatureResults indicating features matching filter
See Also:
FeatureSource.getFeatures(org.geotools.filter.Filter)

getFeatures

public FeatureCollection getFeatures(Query query)
Description copied from class: AbstractFeatureSource
Provides an interface to for the Resutls of a Query.

Various queries can be made against the results, the most basic being to retrieve Features.

Specified by:
getFeatures in interface FeatureSource
Overrides:
getFeatures in class AbstractFeatureSource
Parameters:
query -
Returns:
See Also:
FeatureSource.getFeatures(org.geotools.data.Query)

getTransaction

public Transaction getTransaction()
Description copied from class: AbstractFeatureSource
Retrieve the Transaction this FeatureSource is opperating against.

For a plain FeatureSource that cannot modify this will always be Transaction.AUTO_COMMIT.

Overrides:
getTransaction in class AbstractFeatureSource
Returns:
Transacstion FeatureSource is opperating against
See Also:
AbstractFeatureSource.getTransaction()


Copyright © GeoTools. All Rights Reserved.