Defines the DataStoreAPI via which all data is imported or exported.
All DataStores (e.g. PostGIS, Shapefile(tm), GML...) must provide implementations of the DataStore interface and the DataStoreFactorySpi interface. These interfaces allow new types of datastore to be plugged into applications which use geotools without the need to modify any code.
FeatureStore postgis = new PostGisDataStore( ... ); Query all = Query.ALL; FeatureType roadType = postgis.getFeatureType( "roads" ); // reader 1 streams over all roads FeatureReader reader1 = postgis.getFeatureReader( roadsType, all, Transaction.AUTO_COMMIT ); // allRoads = featureResults is a prepaired query of all roads FeatureSource roads = postgis.getFeatureSource( "roads" ); FeatureResults allRoads = roads.getFeatures( all ); // reader 2 & 3 streams over all roads in the same manner as reader 1 FeatureReader reader2 = allRoads.reader(); FeatureReader reader3 = allRoads.reader(); // bounds1 returns the bounding box of roads, may be null depending on expense Envelope bounds1 = roads.getBounds( all ); // bounds2 returns the bounding box of roads, may actually calculate by going over the entire dataset Envelope bounds 2 = allRoads.getBounds();
Interface Summary Interface Description AttributeReaderThe low-level attribute reading API. AttributeWriter- Added hasNext to support the FeatureWriter API. - Changed order of writer parameters to match Collections, JDBC API. - Added IOExceptions on all methods. - Do we want AttributeWriters to know about the schema and perform validation?? CloseableIterator<T>An iterator backed by some resource that needs closing when done using it DataAccess<T extends FeatureType,F extends Feature>This is the top-level interface for access to
DataAccessFactoryConstructs a live DataAccess from a set of connection parameters. DataStoreThis represents a physical source of feature data, such as a shapefiles or database, where the features will be instances of
DataStoreFactorySpiFactory used to construct a DataStore from a set of parameters. DelegatingFeatureReader<T extends FeatureType,F extends Feature>Interface for wrapping feature readers which delegate to another feature reader. DelegatingFeatureWriter<T extends FeatureType,F extends Feature>Interface for wrapping feature writers which delegate to another feature writer. FeatureListenerInterface to be implemented by all listeners of FeatureEvents. FeatureLocking<T extends FeatureType,F extends Feature>Provides Feature based locking. FeatureReader<T extends FeatureType,F extends Feature>The low-level interface for reading Features. FeatureSource<T extends FeatureType,F extends Feature>This class provides a high-level API for operations on feature data. FeatureStore<T extends FeatureType,F extends Feature>This interface extends
FeatureSource, adding methods to add and remove features and to modify existing features.
FeatureWriter<T extends FeatureType,F extends Feature>Provides the ability to write Features information. FIDReaderFeatureReader customized for FeatureID handling. FileDataStoreDataStore represents a single file of content. FileDataStoreFactorySpiDataAccessFactory for working with formats based on a single URL. FileGroupProviderA
FileGroupProvider.FileGroupprovider allowing to return a
ResourceInfowith information about the file structure of the resource
ServiceInfowith information about the underlying file structure
GmlObjectStoreInterface providing lookup operations for gml objects. InProcessLockingManager.LockRepresents In-Process locks for Transactions or FeatureLocks. LockingManagerThis class describes a featureID based locking service. RepositoryAn adapter interface allowing a hosting application to advertise DataStore instances to GeoTools. ResourceInfoThis interface defines methods to convey information about some resource such as title, keywords, description and spatial parameters. ServiceInfoInformation about a service. TransactionThe controller for Transaction with FeatureStore. Transaction.StateDataStore implementations can use this interface to externalize the state they require to implement Transaction Support.
Class Summary Class Description BatchFeatureEventProvide batch notification on Commit / Rollback. CollectionFeatureReaderFeatureReader that reads features from a java.util.collection of features, an array of features or a FeatureCollection. DataAccessFactory.ParamData class used to capture Parameter requirements. DataAccessFinderEnable programs to find all available DataAccess implementations, including the DataStore ones. DataStoreFinderEnable programs to find all available datastore implementations. DataTestCaseA set of constructs and utility methods used to test the data module. DataUtilitiesUtility functions for use with GeoTools with data classes. DefaultCloseableIterator<T>Default implementation of CloseableIterator DefaultFeatureReaderBasic support for reading Features from an AttributeReader. DefaultFeatureResultsGeneric "results" of a query, class. DefaultFIDReaderA Default FIDReader. DefaultFileResourceInfoDefault implementation of
DefaultFileServiceInfoDefault implementation of
DefaultRepositoryDefault Repository implementation allows GeoTools to manage your DataStores. DefaultResourceInfoDefault implementation of ResourceInfo; a simple java bean. DefaultServiceInfoImplementation of DefaultServiceInfo as a java bean. DefaultTransactionQuick implementation of Transaction api. DiffCaptures changes made to a FeatureStore prior to being committed. DiffFeatureReader<T extends FeatureType,F extends Feature>A FeatureReader that considers differences. DiffFeatureWriterA FeatureWriter that captures modifications against a FeatureReader. EmptyFeatureReader<T extends FeatureType,F extends Feature>Represents an Empty, Typed, FeatureReader. EmptyFeatureWriterRepresents an Empty, Typed, FeatureWriter. FeatureEventRepresents all events triggered by DataStore instances (typically change events). FeatureListenerManagerThis class is used by DataStore implementations to provide FeatureListener support for the FeatureSources they create. FeatureLockUsed in conjuction with
FeatureLockingto lock features during a transaction.
FeatureLocking.ResponseIdea for a response from a high-level lock( Query ) function. FIDFeatureReaderExperimental FeatureReader that always takes the first column of the attributeReader as the FeatureID. FileDataStoreFinderMost of this code was copied from DataStoreFinder. FileGroupProvider.FileGroupA Group of Files consisting of a reference to a mainFile, plus a set of support Files (if any) and metadata map. FilteringFeatureReader<T extends FeatureType,F extends Feature>Basic support for a FeatureReader that does filtering. FilteringFeatureWriterFiltering is performed on this hasNext() method. InProcessLockingManagerProvides In-Process FeatureLocking support for DataStore implementations. JoinRepresents the joining of two feature types within a
JoiningAttributeReaderAttribute Reader that joins. JoiningAttributeWriterProvides ... MapInfoFileReaderReader for Mapinfo .TAB files Finds control points and CRS in .TAB file and parses them accordingly and builds a mathtransform and CRS MaxFeatureReader<T extends FeatureType,F extends Feature>Basic support for a FeatureReader that limits itself to the number of features passed in. Parameter<T>A Parameter defines information about a valid process parameter. PrjFileReader QueryEncapsulates a request for data, typically as: QueryCapabilitiesDescribes the query capabilities for a specific FeatureType, so client code can request which features are natively supported by a FeatureSource. ReTypeFeatureReaderSupports on the fly retyping of FeatureReader contents. WorldFileReaderThis class is responsible for parsing a world file in order to build an affine transform using the parameters provided in the file itself. WorldFileWriterThis class is responsible for creating a world file from a
Enum Summary Enum Description FeatureEvent.Type Join.Typetype of join
Exception Summary Exception Description DataSourceExceptionThrown when there is an error in a datasource. FeatureLockExceptionIndicates a lock contention, and attempt was made to modify or aquire with out Authroization. SchemaNotFoundExceptionIndicates a FeatureType could not be found.