org.geotools.data
Class SampleDataAccessFeatureSource

java.lang.Object
  extended by org.geotools.data.SampleDataAccessFeatureSource
All Implemented Interfaces:
FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>

public class SampleDataAccessFeatureSource
extends java.lang.Object
implements FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>

FeatureSource for SampleDataAccess.

Since:
2.6
Version:
$Id: SampleDataAccessFeatureSource.java 32358 2009-01-28 07:28:02Z bencaradocdavies $
Author:
Ben Caradoc-Davies, CSIRO Exploration and Mining

Constructor Summary
SampleDataAccessFeatureSource()
           
 
Method Summary
 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<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getDataStore()
          Not yet implemented.
 FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getFeatures()
          Return a FeatureCollection containing the sample features.
 FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getFeatures(org.opengis.filter.Filter filter)
          Not yet implemented.
 FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getFeatures(Query query)
          Not yet implemented.
 ResourceInfo getInfo()
          Not yet implemented.
 org.opengis.feature.type.Name getName()
          Not yet implemented.
 QueryCapabilities getQueryCapabilities()
          Not yet implemented.
 org.opengis.feature.type.FeatureType getSchema()
          Return feature type.
 java.util.Set<java.awt.RenderingHints.Key> getSupportedHints()
          Return an empty list of no hints.
 void removeFeatureListener(FeatureListener listener)
          Unsupported operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleDataAccessFeatureSource

public SampleDataAccessFeatureSource()
Method Detail

addFeatureListener

public void addFeatureListener(FeatureListener listener)
Unsupported operation.

Specified by:
addFeatureListener in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Parameters:
listener - FeatureListener
See Also:
FeatureSource.addFeatureListener(org.geotools.data.FeatureListener)

getBounds

public ReferencedEnvelope getBounds()
                             throws java.io.IOException
Not yet implemented.

Specified by:
getBounds in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Returns:
The bounding box of the datasource or null if unknown and too expensive for the method to calculate.
Throws:
java.io.IOException - if there are errors getting the bounding box.
See Also:
FeatureSource.getBounds()

getBounds

public ReferencedEnvelope getBounds(Query query)
                             throws java.io.IOException
Not yet implemented.

Specified by:
getBounds in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Parameters:
query - Contains the Filter, and optionally MaxFeatures and StartIndex to find the bounds for.
Returns:
The bounding box of the datasource or null if unknown and too expensive for the method to calculate or any errors occur.
Throws:
java.io.IOException - DOCUMENT ME!
See Also:
FeatureSource.getBounds(org.geotools.data.Query)

getCount

public int getCount(Query query)
             throws java.io.IOException
Not yet implemented.

Specified by:
getCount in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Parameters:
query - Contains the Filter, and optionally MaxFeatures and StartIndex to find the count for.
Returns:
The number of Features provided by the Query or -1 if count is too expensive to calculate or any errors or occur.
Throws:
java.io.IOException - if there are errors getting the count
See Also:
FeatureSource.getCount(org.geotools.data.Query)

getDataStore

public DataAccess<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getDataStore()
Not yet implemented.

Specified by:
getDataStore in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Returns:
DataStore implementing this FeatureStore
See Also:
FeatureSource.getDataStore()

getFeatures

public FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getFeatures()
                                                                                                throws java.io.IOException
Return a FeatureCollection containing the sample features.

Specified by:
getFeatures in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Returns:
Collection The collection to put the features into.
Throws:
java.io.IOException - For all data source errors.
See Also:
FeatureSource.getFeatures()

getFeatures

public FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getFeatures(org.opengis.filter.Filter filter)
                                                                                                throws java.io.IOException
Not yet implemented.

Specified by:
getFeatures in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Parameters:
filter - An OpenGIS filter; specifies which features to retrieve. null is not allowed, use Filter.INCLUDE instead.
Returns:
Collection The collection to put the features into.
Throws:
java.io.IOException - For all data source errors.
See Also:
FeatureSource.getFeatures(org.opengis.filter.Filter)

getFeatures

public FeatureCollection<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature> getFeatures(Query query)
                                                                                                throws java.io.IOException
Not yet implemented.

Specified by:
getFeatures in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Parameters:
query - a datasource query object. It encapsulates requested information, such as typeName, maxFeatures and filter.
Returns:
Collection The collection to put the features into.
Throws:
java.io.IOException - For all data source errors.
See Also:
FeatureSource.getFeatures(org.geotools.data.Query)

getInfo

public ResourceInfo getInfo()
Not yet implemented.

Specified by:
getInfo in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
See Also:
FeatureSource.getInfo()

getName

public org.opengis.feature.type.Name getName()
Not yet implemented.

Specified by:
getName in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Returns:
the name of the AttributeDescriptor for the Features served by this FeatureSource
See Also:
FeatureSource.getName()

getQueryCapabilities

public QueryCapabilities getQueryCapabilities()
Not yet implemented.

Specified by:
getQueryCapabilities in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Returns:
a QueryCapabilities object containing the native query capabilities.
See Also:
FeatureSource.getQueryCapabilities()

getSchema

public org.opengis.feature.type.FeatureType getSchema()
Return feature type.

Specified by:
getSchema in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Returns:
the schema of features created by this datasource.
See Also:
FeatureSource.getSchema()

getSupportedHints

public java.util.Set<java.awt.RenderingHints.Key> getSupportedHints()
Return an empty list of no hints.

Specified by:
getSupportedHints in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Returns:
a set of RenderingHints#Key objects (eventually empty, never null).
See Also:
FeatureSource.getSupportedHints()

removeFeatureListener

public void removeFeatureListener(FeatureListener listener)
Unsupported operation.

Specified by:
removeFeatureListener in interface FeatureSource<org.opengis.feature.type.FeatureType,org.opengis.feature.Feature>
Parameters:
listener - FeatureListener
See Also:
FeatureSource.removeFeatureListener(org.geotools.data.FeatureListener)


Copyright © 1996-2010 Geotools. All Rights Reserved.