|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.persistence.shape.ShapeFeatureStore
public class ShapeFeatureStore
FeatureStore implementation that uses shape files as backend.
FeatureStore| Constructor Summary | |
|---|---|
ShapeFeatureStore(java.lang.String shpName,
CRS crs,
java.nio.charset.Charset encoding,
java.lang.String ftNamespace,
java.lang.String localFtName,
java.lang.String ftPrefix,
boolean generateAlphanumericIndexes,
FeatureStoreCache cache)
Creates a new ShapeFeatureStore instance from the given parameters. |
|
| Method Summary | |
|---|---|
FeatureStoreTransaction |
acquireTransaction()
Acquires transactional access to the feature store. |
void |
destroy()
Called by the container to indicate that this FeatureStore instance is being taken out of service. |
Envelope |
getEnvelope(javax.xml.namespace.QName ftName)
Returns the envelope for all stored features of the given type. |
LockManager |
getLockManager()
Returns the associated LockManager. |
GMLObject |
getObjectById(java.lang.String id)
Retrieves the stored object with a certain id. |
ApplicationSchema |
getSchema()
Returns the application schema that this FeatureStore serves. |
CRS |
getStorageCRS()
Returns the CRS used by the shape file. |
void |
init()
Called by the container to indicate that this FeatureStore instance is being placed into service. |
boolean |
isAvailable()
Returns whether the store is currently able to perform operations. |
FeatureResultSet |
query(Query query)
Performs the given query and returns the matching features as a FeatureResultSet. |
FeatureResultSet |
query(Query[] queries)
Performs the given queries and returns the matching features as a FeatureResultSet. |
int |
queryHits(Query query)
Returns the number of features that are matched by the given query. |
int |
queryHits(Query[] queries)
Returns the number of features that are matched by the given queries. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeFeatureStore(java.lang.String shpName,
CRS crs,
java.nio.charset.Charset encoding,
java.lang.String ftNamespace,
java.lang.String localFtName,
java.lang.String ftPrefix,
boolean generateAlphanumericIndexes,
FeatureStoreCache cache)
ShapeFeatureStore instance from the given parameters.
shpName - name of the shape file to be loaded, may omit the ".shp" extension, must not be nullcrs - crs used by the shape file, must not be nullencoding - encoding used in the dbf file, can be null (encoding guess mode)ftNamespace - namespace to be used for the feature type, must not be nulllocalFtName - if null, the shape file base name will be usedftPrefix - generateAlphanumericIndexes - whether to copy the dbf into a h2 database for indexingcache - used for caching retrieved feature instances, can be null (will create a default cache)| Method Detail |
|---|
public void init()
FeatureStoreFeatureStore instance is being placed into service.
init in interface FeatureStore
public FeatureResultSet query(Query query)
throws FilterEvaluationException,
FeatureStoreException
FeatureStoreFeatureResultSet.
query in interface FeatureStorequery - query to be performed, must not be null
null
FilterEvaluationException - if the filter contained in the query could not be evaluated
FeatureStoreException - if the query could not be performed
public FeatureResultSet query(Query[] queries)
throws FeatureStoreException,
FilterEvaluationException
FeatureStoreFeatureResultSet.
query in interface FeatureStorequeries - queries to be performed, must not be null and contain at least one entry
null
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
public int queryHits(Query query)
throws FeatureStoreException,
FilterEvaluationException
FeatureStore
queryHits in interface FeatureStorequery - query to be performed, must not be null
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluated
public int queryHits(Query[] queries)
throws FeatureStoreException,
FilterEvaluationException
FeatureStore
queryHits in interface FeatureStorequeries - queries to be performed, must not be null and contain at least one entry
FeatureStoreException - if the query could not be performed
FilterEvaluationException - if the filter contained in the query could not be evaluatedpublic Envelope getEnvelope(javax.xml.namespace.QName ftName)
FeatureStore
getEnvelope in interface FeatureStoreftName - name of the feature type, must not be null and must be served by this store
public void destroy()
FeatureStoreFeatureStore instance is being taken out of service.
destroy in interface FeatureStorepublic boolean isAvailable()
FeatureStore
isAvailable in interface FeatureStore
public FeatureStoreTransaction acquireTransaction()
throws FeatureStoreException
FeatureStore
acquireTransaction in interface FeatureStorenull
FeatureStoreException - if the transactional access could not be acquired or is not implemented for this FeatureStore
public LockManager getLockManager()
throws FeatureStoreException
FeatureStoreLockManager.
getLockManager in interface FeatureStoreLockManager instance, never null
FeatureStoreException - if the FeatureStore does not implement locking
public GMLObject getObjectById(java.lang.String id)
throws FeatureStoreException
FeatureStore
getObjectById in interface FeatureStoreid - identifier of the object to be retrieved
Feature or a Geometry) or null if no
object with the given id is known
FeatureStoreException - if the query could not be performedpublic ApplicationSchema getSchema()
FeatureStoreFeatureStore serves.
getSchema in interface FeatureStorenullpublic CRS getStorageCRS()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||