|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.AbstractDataStore
org.geotools.data.property.PropertyDataStore
public class PropertyDataStore
Sample DataStore implementation, please see formal tutorial included with users docs.
Field Summary | |
---|---|
protected java.io.File |
directory
|
protected java.lang.String |
namespaceURI
|
Fields inherited from class org.geotools.data.AbstractDataStore |
---|
isWriteable, listenerManager, LOGGER |
Constructor Summary | |
---|---|
PropertyDataStore(java.io.File dir)
|
|
PropertyDataStore(java.io.File dir,
java.lang.String namespaceURI)
|
Method Summary | |
---|---|
void |
createSchema(org.opengis.feature.simple.SimpleFeatureType featureType)
Subclass should implement to provide writing support. |
protected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureReader(java.lang.String typeName)
Subclass must implement. |
FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureSource(java.lang.String typeName)
Default implementation based on getFeatureReader and getFeatureWriter. |
protected FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureWriter(java.lang.String typeName)
Subclass can implement this to provide writing support. |
ServiceInfo |
getInfo()
Information about this service. |
org.opengis.feature.simple.SimpleFeatureType |
getSchema(java.lang.String typeName)
Retrive schema information for typeName |
java.lang.String[] |
getTypeNames()
helper method for retrieving all the names. |
void |
setNamespaceURI(java.lang.String namespaceURI)
|
Methods inherited from class org.geotools.data.AbstractDataStore |
---|
createFeatureWriter, createLockingManager, createMetadata, dispose, getBounds, getCount, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getLockingManager, getNames, getSchema, getSupportedHints, getUnsupportedFilter, getView, state, updateSchema, updateSchema |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File directory
protected java.lang.String namespaceURI
Constructor Detail |
---|
public PropertyDataStore(java.io.File dir)
public PropertyDataStore(java.io.File dir, java.lang.String namespaceURI)
Method Detail |
---|
public ServiceInfo getInfo()
DataAccess
This method offers access to a summary of header or metadata information describing the service.
Subclasses may return a specific ServiceInfo instance that has additional information (such as FilterCapabilities).
getInfo
in interface DataAccess<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
getInfo
in class AbstractDataStore
public void setNamespaceURI(java.lang.String namespaceURI)
public java.lang.String[] getTypeNames()
AbstractDataStore
getTypeNames
in interface DataStore
getTypeNames
in class AbstractDataStore
public org.opengis.feature.simple.SimpleFeatureType getSchema(java.lang.String typeName) throws java.io.IOException
AbstractDataStore
getSchema
in interface DataStore
getSchema
in class AbstractDataStore
typeName
- typeName of requested FeatureType
java.io.IOException
- If typeName cannot be foundprotected FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureReader(java.lang.String typeName) throws java.io.IOException
AbstractDataStore
getFeatureReader
in class AbstractDataStore
java.io.IOException
protected FeatureWriter<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureWriter(java.lang.String typeName) throws java.io.IOException
AbstractDataStore
getFeatureWriter
in class AbstractDataStore
java.io.IOException
public void createSchema(org.opengis.feature.simple.SimpleFeatureType featureType) throws java.io.IOException
AbstractDataStore
createSchema
in interface DataAccess<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
createSchema
in class AbstractDataStore
featureType
- Requested FeatureType
java.io.IOException
public FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureSource(java.lang.String typeName) throws java.io.IOException
AbstractDataStore
We should be able to optimize this to only get the RowSet once
getFeatureSource
in interface DataStore
getFeatureSource
in class AbstractDataStore
java.io.IOException
DataStore.getFeatureSource(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |