|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wfs.AbstractDataStore
org.deegree_impl.services.wfs.shape.ShapeDataStore
The class provides reading and writing access to ESRI shapefiles. The access is capsulated within the query and transaction mechanism described at the OGC WFS specifications.
The data store uses a cache for keeping features once read from a shapefile in memory to provide a much faster access to them. The cache can be configured through the configuration XML-document that also contains the names and locations of the shapes handled by an instance of the ShapeDataStore.
Nested Class Summary | |
private class |
ShapeDataStore.CDescribeFeatureType
inner interface defining the processing of a DescribeFeatureType request |
private class |
ShapeDataStore.CGetFeature
inner interface defining the processing of a getFeature request |
(package private) class |
ShapeDataStore.CGetFeatureWithLock
class defining the processing of a getFeature request |
private class |
ShapeDataStore.CLockFeature
inner interface defining the processing of a lockFeature request |
private class |
ShapeDataStore.CTransaction
inner interface defining the processing of a transaction request |
Field Summary | |
protected static Cache_Impl |
cache
|
Fields inherited from class org.deegree_impl.services.wfs.AbstractDataStore |
config, pool |
Constructor Summary | |
ShapeDataStore(java.net.URL config)
Creates a new ShapeDataStore object. |
Method Summary | |
void |
describeFeatureType(WFSDescribeFeatureTypeRequest request)
returns the describtion of one or more feature types |
void |
getFeature(WFSGetFeatureRequest request)
returns the features that matches the submitted request |
void |
getFeatureWithLock(WFSGetFeatureWithLockRequest request)
same as getFeature(..) |
private int[] |
getShapeIds(ShapeFile sf,
FeatureType ft,
Filter filter,
int startPosition,
int maxFeatures)
|
void |
lockFeature(WFSLockFeatureRequest request)
performs the locking/unlocking of one or more features. |
private Feature |
recreateFeature(Feature feature,
FeatureType featureType)
recreates the passed org.deegree.model.feature.Feature by performing a mapping between shapefile/dbase property names and user defined property names. |
private FeatureType |
recreateFeatureType(FeatureType featureType,
FeatureType ft)
recreates the passed org.deegree.model.feature.FeatureType by performing a mapping between shapefile/dbase property names and user defined property names. |
void |
transaction(WFSTransactionRequest request)
performs a transaction against the data store. |
Methods inherited from class org.deegree_impl.services.wfs.AbstractDataStore |
fireResponse, getConfiguration, getConnectionPool, handleRequest, handleResponse, isInterested, isKnownFeatureType, registerFeatureType, registerHandler, removeFeatureType, removeHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Cache_Impl cache
Constructor Detail |
public ShapeDataStore(java.net.URL config) throws DataStoreException
config
-
DataStoreException
Method Detail |
public void describeFeatureType(WFSDescribeFeatureTypeRequest request)
request
- conainting the list of feature types that should be describedpublic void getFeature(WFSGetFeatureRequest request)
request
- containing the request for zero, one or more features. The request,
may contains a filter that describes the request more detailedpublic void getFeatureWithLock(WFSGetFeatureWithLockRequest request)
request
- containing the request for zero, one or more features.
The request, may contains a filter that describes the
request more detailed.getFeature(WFSGetFeatureRequest)
public void transaction(WFSTransactionRequest request)
request
- containing the transaction instruction(s)public void lockFeature(WFSLockFeatureRequest request)
request
- the features that should be (un)lockedprivate int[] getShapeIds(ShapeFile sf, FeatureType ft, Filter filter, int startPosition, int maxFeatures) throws java.lang.Exception
java.lang.Exception
private FeatureType recreateFeatureType(FeatureType featureType, FeatureType ft)
featureType
- feature type to be re-created with new property namesft
- feature type configuration containing mapping informations
private Feature recreateFeature(Feature feature, FeatureType featureType)
feature
- feature to be assigend with a new feature typefeatureType
- new feature type of the re-created feature
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |