public class VPFLibrary extends ContentDataStore
dataStoreFactory, entries, featureFactory, filterFactory, geometryFactory, JOINED_FEATURE_TYPE, lockingManager, LOGGER, namespaceURI, typeFactory, WRITER_ADD, WRITER_COMMIT, WRITER_UPDATE| Constructor and Description |
|---|
VPFLibrary(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
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Returns the coordinate reference system appropriate for this library.
|
List<VPFCoverage> |
getCoverages()
Returns the coverages contained by the library
|
File |
getDirectory() |
ContentFeatureSource |
getFeatureSource(Name typeName,
Transaction tx)
Returns the feature source matching the specified name and explicitly specifies a
transaction.
|
ContentFeatureSource |
getFeatureSource(String typeName)
Returns the feature source matching the specified name.
|
VPFFeatureType |
getFeatureType(ContentEntry entry) |
List<Name> |
getNames()
Returns the same list of names than
ContentDataStore.getTypeNames() meaning the returned Names have
no namespace set. |
Map<Short,String> |
getTileMap()
Returns a map containing the tiles used by this library.
|
SimpleFeatureType |
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.
|
String |
toString() |
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, updateSchemapublic VPFLibrary(SimpleFeature libraryFeature, File dir, URI namespace) throws IOException, SchemaException
dir - the containing directorynamespace - the namespace to create features with.SchemaException - For problems making one of the feature classes as a FeatureType.IOExceptionpublic List<VPFCoverage> getCoverages()
List value which contains VPFCoverage objectspublic double getXmax()
public double getXmin()
public double getYmax()
public double getYmin()
public Map<Short,String> getTileMap()
Map valuepublic List<Name> getNames()
ContentDataStoreContentDataStore.getTypeNames() meaning the returned Names have
no namespace set.getNames in interface DataAccess<SimpleFeatureType,SimpleFeature>getNames in class ContentDataStoreDataAccess.getNames()public VPFFeatureType getFeatureType(ContentEntry entry) throws IOException
IOExceptionprotected List<Name> createTypeNames() throws IOException
ContentDataStoreNamespaces may be left null for data stores which do not support namespace
qualified type names.
createTypeNames in class ContentDataStoreName.IOException - Any errors occuring connecting to data.protected ContentFeatureSource createFeatureSource(ContentEntry entry) throws IOException
ContentDataStoreSubclasses should override this method to return a specific subclass of ContentFeatureSource.
createFeatureSource in class ContentDataStoreentry - The entry.ContentFeatureSource for the entry.IOExceptionpublic ContentFeatureSource getFeatureSource(Name typeName, Transaction tx) throws IOException
ContentDataStoreSubclasses should not implement this method. However overriding in order to perform a type
narrowing to a subclasses of ContentFeatureSource is acceptable.
getFeatureSource in class ContentDataStoreIOExceptionDataStore.getFeatureSource(String)public ContentFeatureSource getFeatureSource(String typeName) throws IOException
ContentDataStoreSubclasses should not implement this method. However overriding in order to perform a type
narrowing to a subclasses of ContentFeatureSource is acceptable.
getFeatureSource in interface DataStoregetFeatureSource in class ContentDataStoretypeName - the feature typeSimpleFeatureSource (or possibly a subclass) providing operations for
features of the specified typeIOException - if data access errors occurDataStore.getFeatureSource(String)public File getDirectory()
public SimpleFeatureType getTypeSchema(String typeName) throws IOException
IOExceptionpublic CoordinateReferenceSystem getCoordinateReferenceSystem()
Copyright © 1996–2021 Geotools. All rights reserved.