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 void
addFeatureListener(FeatureListener listener)
Unsupported operation.ReferencedEnvelope
getBounds()
Not yet implemented.ReferencedEnvelope
getBounds(Query query)
Not yet implemented.int
getCount(Query query)
Not yet implemented.DataAccess<FeatureType,Feature>
getDataStore()
Not yet implemented.FeatureCollection<FeatureType,Feature>
getFeatures()
Return aFeatureCollection
containing the sample features.FeatureCollection<FeatureType,Feature>
getFeatures(Query query)
Not yet implemented.FeatureCollection<FeatureType,Feature>
getFeatures(Filter filter)
Not yet implemented.ResourceInfo
getInfo()
Not yet implemented.Name
getName()
Not yet implemented.QueryCapabilities
getQueryCapabilities()
Not yet implemented.FeatureType
getSchema()
Return feature type.Set<RenderingHints.Key>
getSupportedHints()
Return an empty list of no hints.void
removeFeatureListener(FeatureListener listener)
Unsupported operation.
-
-
-
Method Detail
-
addFeatureListener
public void addFeatureListener(FeatureListener listener)
Unsupported operation.- Specified by:
addFeatureListener
in interfaceFeatureSource<FeatureType,Feature>
- Parameters:
listener
- the new listener- See Also:
FeatureSource.addFeatureListener(FeatureListener)
-
getBounds
public ReferencedEnvelope getBounds() throws IOException
Not yet implemented.- Specified by:
getBounds
in interfaceFeatureSource<FeatureType,Feature>
- Returns:
- The bounding envelope of the feature data; or
null
if 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:
getBounds
in interfaceFeatureSource<FeatureType,Feature>
- Parameters:
query
- the query to select features- Returns:
- The bounding envelope of the feature data; or
null
if 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:
getCount
in interfaceFeatureSource<FeatureType,Feature>
- Parameters:
query
- the query to select features- Returns:
- the numer of features that would be returned by the
Query
; or-1
if 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:
getDataStore
in interfaceFeatureSource<FeatureType,Feature>
- Returns:
- the data source providing this
FeatureSource
- See Also:
FeatureSource.getDataStore()
-
getFeatures
public FeatureCollection<FeatureType,Feature> getFeatures() throws IOException
Return aFeatureCollection
containing the sample features.- Specified by:
getFeatures
in 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:
getFeatures
in 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:
getFeatures
in 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:
getInfo
in interfaceFeatureSource<FeatureType,Feature>
- See Also:
FeatureSource.getInfo()
-
getName
public Name getName()
Not yet implemented.- Specified by:
getName
in 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:
getQueryCapabilities
in interfaceFeatureSource<FeatureType,Feature>
- Returns:
- the native query capabilities of this
FeatureSource
- See Also:
FeatureSource.getQueryCapabilities()
-
getSchema
public FeatureType getSchema()
Return feature type.- Specified by:
getSchema
in 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:
getSupportedHints
in interfaceFeatureSource<FeatureType,Feature>
- Returns:
- a set of
RenderingHints#Key
objects; may be empty but nevernull
- See Also:
FeatureSource.getSupportedHints()
-
removeFeatureListener
public void removeFeatureListener(FeatureListener listener)
Unsupported operation.- Specified by:
removeFeatureListener
in interfaceFeatureSource<FeatureType,Feature>
- Parameters:
listener
- the listener to remove- See Also:
FeatureSource.removeFeatureListener(FeatureListener)
-
-