Package org.geotools.data.vpf
Class VPFLibrary
Object
ContentDataStore
VPFLibrary
- All Implemented Interfaces:
DataAccess<SimpleFeatureType,
,SimpleFeature> DataStore
-
Field Summary
Fields inherited from class ContentDataStore
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, LOGGER, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE
-
Constructor Summary
ConstructorsConstructorDescriptionVPFLibrary
(SimpleFeature libraryFeature, File dir, URI namespace) Constructor which defaults the containing database to null and looks up the first (and presumably only) entry in the library attribute table -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentFeatureSource
createFeatureSource
(ContentEntry entry) Instantiates new feature source for the entry.Creates a set of qualified names corresponding to the types that the datastore provides.Returns the coordinate reference system appropriate for this library.Returns the coverages contained by the librarygetFeatureSource
(String typeName) Returns the feature source matching the specified name.getFeatureSource
(Name typeName, Transaction tx) Returns the feature source matching the specified name and explicitly specifies a transaction.getFeatureType
(ContentEntry entry) getNames()
Returns the same list of names thanContentDataStore.getTypeNames()
meaning the returned Names have no namespace set.Returns a map containing the tiles used by this library.getTypeSchema
(String typeName) double
getXmax()
Getter for property xmax.double
getXmin()
Getter for property xmin.double
getYmax()
Getter for property ymax.double
getYmin()
Getter for property ymin.toString()
Methods inherited from class ContentDataStore
createContentState, createSchema, dispose, ensureEntry, ensureFeatureStore, entry, getDataStoreFactory, getEntry, getFeatureFactory, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureTypeFactory, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFilterFactory, getGeometryFactory, getInfo, getLockingManager, getLogger, getNamespaceURI, getSchema, getSchema, getTypeNames, name, removeEntry, removeSchema, removeSchema, setDataStoreFactory, setFeatureFactory, setFeatureTypeFactory, setFilterFactory, setGeometryFactory, setNamespaceURI, updateSchema, updateSchema
-
Constructor Details
-
VPFLibrary
public VPFLibrary(SimpleFeature libraryFeature, File dir, URI namespace) throws IOException, SchemaException Constructor which defaults the containing database to null and looks up the first (and presumably only) entry in the library attribute table- Parameters:
dir
- the containing directorynamespace
- the namespace to create features with.- Throws:
SchemaException
- For problems making one of the feature classes as a FeatureType.IOException
-
-
Method Details
-
getCoverages
Returns the coverages contained by the library- Returns:
- a
List
value which contains VPFCoverage objects
-
getXmax
public double getXmax()Getter for property xmax.- Returns:
- Value of property xmax.
-
getXmin
public double getXmin()Getter for property xmin.- Returns:
- Value of property xmin.
-
getYmax
public double getYmax()Getter for property ymax.- Returns:
- Value of property ymax.
-
getYmin
public double getYmin()Getter for property ymin.- Returns:
- Value of property ymin.
-
toString
-
getTileMap
Returns a map containing the tiles used by this library. The map has Short keys and and string values.- Returns:
- a
Map
value
-
getNames
Description copied from class:ContentDataStore
Returns the same list of names thanContentDataStore.getTypeNames()
meaning the returned Names have no namespace set.- Specified by:
getNames
in interfaceDataAccess<SimpleFeatureType,
SimpleFeature> - Overrides:
getNames
in classContentDataStore
- Returns:
- Names of the available contents.
- See Also:
-
getFeatureType
- Throws:
IOException
-
createTypeNames
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
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
-
getFeatureSource
Description copied from class:ContentDataStore
Returns the feature source matching the specified name and explicitly specifies a transaction.Subclasses should not implement this method. However overriding in order to perform a type narrowing to a subclasses of
ContentFeatureSource
is acceptable.- Overrides:
getFeatureSource
in classContentDataStore
- Throws:
IOException
- See Also:
-
getFeatureSource
Description copied from class:ContentDataStore
Returns the feature source matching the specified name.Subclasses should not implement this method. However overriding in order to perform a type narrowing to a subclasses of
ContentFeatureSource
is acceptable.- Specified by:
getFeatureSource
in interfaceDataStore
- Overrides:
getFeatureSource
in classContentDataStore
- Parameters:
typeName
- the feature type- Returns:
- a
SimpleFeatureSource
(or possibly a subclass) providing operations for features of the specified type - Throws:
IOException
- if data access errors occur- See Also:
-
getDirectory
-
getTypeSchema
- Throws:
IOException
-
getCoordinateReferenceSystem
Returns the coordinate reference system appropriate for this library. If the coordinate reference system cannot be determined null will be returned.
-