Package org.geotools.vectormosaic
Class VectorMosaicStore
- Object
-
- ContentDataStore
-
- VectorMosaicStore
-
- All Implemented Interfaces:
DataAccess<SimpleFeatureType,SimpleFeature>
,DataStore
public class VectorMosaicStore extends ContentDataStore
DataStore
for a vector mosaic.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONNECTION_PARAMETER_KEY_FILE
static String
CONNECTION_PARAMETER_KEY_URL
static String
MOSAIC_TYPE_SUFFIX
-
Fields inherited from class ContentDataStore
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE
-
-
Constructor Summary
Constructors Constructor Description VectorMosaicStore(String delegateStoreName, Repository repository)
Creates a new instance of VectorMosaicStore
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Name
buildName(String name)
Builds a qualified name from a name containing the ":" separator, otherwise the given name will be used as the local partprotected ContentState
createContentState(ContentEntry entry)
Instantiates a new content state for the entry.protected ContentFeatureSource
createFeatureSource(ContentEntry entry)
Instantiates new feature source for the entry.protected List<Name>
createTypeNames()
Creates a set of qualified names corresponding to the types that the datastore provides.String
getConnectionParameterKey()
String
getDelegateStoreName()
String
getPreferredSPI()
Repository
getRepository()
void
setConnectionParameterKey(String connectionParameterKey)
void
setPreferredSPI(String preferredSPI)
-
Methods inherited from class ContentDataStore
createSchema, dispose, ensureEntry, ensureFeatureStore, entry, getDataStoreFactory, getEntry, getFeatureFactory, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureSource, getFeatureTypeFactory, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFilterFactory, getGeometryFactory, getInfo, getLockingManager, getLogger, getNames, getNamespaceURI, getSchema, getSchema, getTypeNames, name, removeEntry, removeSchema, removeSchema, setDataStoreFactory, setFeatureFactory, setFeatureTypeFactory, setFilterFactory, setGeometryFactory, setNamespaceURI, updateSchema, updateSchema
-
-
-
-
Field Detail
-
CONNECTION_PARAMETER_KEY_URL
public static final String CONNECTION_PARAMETER_KEY_URL
- See Also:
- Constant Field Values
-
CONNECTION_PARAMETER_KEY_FILE
public static final String CONNECTION_PARAMETER_KEY_FILE
- See Also:
- Constant Field Values
-
MOSAIC_TYPE_SUFFIX
public static final String MOSAIC_TYPE_SUFFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VectorMosaicStore
public VectorMosaicStore(String delegateStoreName, Repository repository)
Creates a new instance of VectorMosaicStore- Parameters:
delegateStoreName
- the name of the delegate store. Delegate store must be registered in the repository and must point to vector featuretypes with identical attributes.repository
- the repository to use for lookup of the delegate store.
-
-
Method Detail
-
getDelegateStoreName
public String getDelegateStoreName()
-
getRepository
public Repository getRepository()
-
getConnectionParameterKey
public String getConnectionParameterKey()
-
setConnectionParameterKey
public void setConnectionParameterKey(String connectionParameterKey)
-
getPreferredSPI
public String getPreferredSPI()
-
setPreferredSPI
public void setPreferredSPI(String preferredSPI)
-
buildName
public static Name buildName(String name)
Builds a qualified name from a name containing the ":" separator, otherwise the given name will be used as the local part- Parameters:
name
- the name to build a qualified name from- Returns:
- the qualified name
-
createTypeNames
protected List<Name> createTypeNames() throws IOException
Description copied from class:ContentDataStore
Creates a set of qualified names corresponding to the types that the datastore provides.Namespaces may be left
null
for data stores which do not support namespace qualified type names.- Specified by:
createTypeNames
in classContentDataStore
- Returns:
- A list of
Name
. - Throws:
IOException
- Any errors occuring connecting to data.
-
createFeatureSource
protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException
Description copied from class:ContentDataStore
Instantiates new feature source for the entry.Subclasses should override this method to return a specific subclass of
ContentFeatureSource
.- Specified by:
createFeatureSource
in classContentDataStore
- Parameters:
entry
- The entry.- Returns:
- An new instance of
ContentFeatureSource
for the entry. - Throws:
IOException
-
createContentState
protected ContentState createContentState(ContentEntry entry)
Description copied from class:ContentDataStore
Instantiates a new content state for the entry.Subclasses may override this method to return a specific subclass of
ContentState
.- Overrides:
createContentState
in classContentDataStore
- Parameters:
entry
- The entry.- Returns:
- A new instance of
ContentState
for the entry.
-
-