org.geotools.data.shapefile
Class ShapefileFeatureLocking
Object
AbstractFeatureSource
AbstractFeatureStore
AbstractFeatureLocking
ShapefileFeatureLocking
- All Implemented Interfaces:
- FeatureLocking<SimpleFeatureType,SimpleFeature>, FeatureSource<SimpleFeatureType,SimpleFeature>, FeatureStore<SimpleFeatureType,SimpleFeature>
public class ShapefileFeatureLocking
- extends AbstractFeatureLocking
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapefileFeatureLocking
public ShapefileFeatureLocking(ShapefileDataStore shapefileDataStore,
Set hints,
SimpleFeatureType featureType)
getDataStore
public DataStore getDataStore()
- Description copied from class:
AbstractFeatureSource
- Overrides to explicitly type narrow the return type to
DataStore
- Specified by:
getDataStore
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
- Specified by:
getDataStore
in class AbstractFeatureSource
- Returns:
- DataStore implementing this FeatureStore
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
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
getSchema
public SimpleFeatureType 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.
getBounds
public ReferencedEnvelope getBounds(Query query)
throws 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<SimpleFeatureType,SimpleFeature>
- Overrides:
getBounds
in class AbstractFeatureSource
- Parameters:
query
- Query we are requesting the bounds of
- Returns:
- null representing the lack of an optimization
- Throws:
IOException
- DOCUMENT ME!
getInfo
public ResourceInfo getInfo()
- Description copied from interface:
FeatureSource
- Information describing the contents of this resoruce.
Please note that for FeatureContent:
- name - unqiue with in the context of a Service
- schema - used to identify the type of resource; usually gml schema; although it may be more specific
Copyright © 1996-2009 Geotools. All Rights Reserved.