Class SampleDataAccessFeatureSource
- Object
-
- SampleDataAccessFeatureSource
-
- All Implemented Interfaces:
FeatureSource<FeatureType,Feature>
public class SampleDataAccessFeatureSource extends Object implements FeatureSource<FeatureType,Feature>
- Since:
- 2.6
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
-
-
Constructor Summary
Constructors Constructor Description SampleDataAccessFeatureSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFeatureListener(FeatureListener listener)Unsupported operation.ReferencedEnvelopegetBounds()Not yet implemented.ReferencedEnvelopegetBounds(Query query)Not yet implemented.intgetCount(Query query)Not yet implemented.DataAccess<FeatureType,Feature>getDataStore()Not yet implemented.FeatureCollection<FeatureType,Feature>getFeatures()Return aFeatureCollectioncontaining the sample features.FeatureCollection<FeatureType,Feature>getFeatures(Query query)Not yet implemented.FeatureCollection<FeatureType,Feature>getFeatures(Filter filter)Not yet implemented.ResourceInfogetInfo()Not yet implemented.NamegetName()Not yet implemented.QueryCapabilitiesgetQueryCapabilities()Not yet implemented.FeatureTypegetSchema()Return feature type.Set<RenderingHints.Key>getSupportedHints()Return an empty list of no hints.voidremoveFeatureListener(FeatureListener listener)Unsupported operation.
-
-
-
Method Detail
-
addFeatureListener
public void addFeatureListener(FeatureListener listener)
Unsupported operation.- Specified by:
addFeatureListenerin interfaceFeatureSource<FeatureType,Feature>- Parameters:
listener- the new listener- See Also:
FeatureSource.addFeatureListener(FeatureListener)
-
getBounds
public ReferencedEnvelope getBounds() throws IOException
Not yet implemented.- Specified by:
getBoundsin interfaceFeatureSource<FeatureType,Feature>- Returns:
- The bounding envelope of the feature data; or
nullif the bounds are unknown or too costly to calculate. - Throws:
IOException- on any errors calculating the bounds- See Also:
FeatureSource.getBounds()
-
getBounds
public ReferencedEnvelope getBounds(Query query) throws IOException
Not yet implemented.- Specified by:
getBoundsin interfaceFeatureSource<FeatureType,Feature>- Parameters:
query- the query to select features- Returns:
- The bounding envelope of the feature data; or
nullif the bounds are unknown or too costly to calculate. - Throws:
IOException- on any errors calculating the bounds- See Also:
FeatureSource.getBounds(Query)
-
getCount
public int getCount(Query query) throws IOException
Not yet implemented.- Specified by:
getCountin interfaceFeatureSource<FeatureType,Feature>- Parameters:
query- the query to select features- Returns:
- the numer of features that would be returned by the
Query; or-1if this cannot be calculated. - Throws:
IOException- if there are errors getting the count- See Also:
FeatureSource.getCount(Query)
-
getDataStore
public DataAccess<FeatureType,Feature> getDataStore()
Not yet implemented.- Specified by:
getDataStorein interfaceFeatureSource<FeatureType,Feature>- Returns:
- the data source providing this
FeatureSource - See Also:
FeatureSource.getDataStore()
-
getFeatures
public FeatureCollection<FeatureType,Feature> getFeatures() throws IOException
Return aFeatureCollectioncontaining the sample features.- Specified by:
getFeaturesin interfaceFeatureSource<FeatureType,Feature>- Returns:
- features retrieved by the
Query - Throws:
IOException- if the underlying data source cannot be accessed.- See Also:
FeatureSource.getFeatures()
-
getFeatures
public FeatureCollection<FeatureType,Feature> getFeatures(Filter filter) throws IOException
Not yet implemented.- Specified by:
getFeaturesin interfaceFeatureSource<FeatureType,Feature>- Parameters:
filter- the filter to select features; must not benull(use Filter.INCLUDE instead)- Returns:
- features retrieved by the
Filter - Throws:
IOException- if the underlying data source cannot be accessed.- See Also:
FeatureSource.getFeatures(org.geotools.api.filter.Filter)
-
getFeatures
public FeatureCollection<FeatureType,Feature> getFeatures(Query query) throws IOException
Not yet implemented.- Specified by:
getFeaturesin interfaceFeatureSource<FeatureType,Feature>- Parameters:
query- DataAccess query for requested information, such as typeName, maxFeatures and filter.- Returns:
- features retrieved by the
Query - Throws:
IOException- if the underlying data source cannot be accessed.- See Also:
FeatureSource.getFeatures(Query)
-
getInfo
public ResourceInfo getInfo()
Not yet implemented.- Specified by:
getInfoin interfaceFeatureSource<FeatureType,Feature>- See Also:
FeatureSource.getInfo()
-
getName
public Name getName()
Not yet implemented.- Specified by:
getNamein interfaceFeatureSource<FeatureType,Feature>- Returns:
- the name of the features accessible through this
FeatureSource - See Also:
FeatureSource.getName()
-
getQueryCapabilities
public QueryCapabilities getQueryCapabilities()
Not yet implemented.- Specified by:
getQueryCapabilitiesin interfaceFeatureSource<FeatureType,Feature>- Returns:
- the native query capabilities of this
FeatureSource - See Also:
FeatureSource.getQueryCapabilities()
-
getSchema
public FeatureType getSchema()
Return feature type.- Specified by:
getSchemain interfaceFeatureSource<FeatureType,Feature>- Returns:
- the schema that will apply to features retrieved from this
FeatureSource - See Also:
FeatureSource.getSchema()
-
getSupportedHints
public Set<RenderingHints.Key> getSupportedHints()
Return an empty list of no hints.- Specified by:
getSupportedHintsin interfaceFeatureSource<FeatureType,Feature>- Returns:
- a set of
RenderingHints#Keyobjects; may be empty but nevernull - See Also:
FeatureSource.getSupportedHints()
-
removeFeatureListener
public void removeFeatureListener(FeatureListener listener)
Unsupported operation.- Specified by:
removeFeatureListenerin interfaceFeatureSource<FeatureType,Feature>- Parameters:
listener- the listener to remove- See Also:
FeatureSource.removeFeatureListener(FeatureListener)
-
-