org.geotools.data

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.data 
org.geotools.data
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.

Example:


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(); 

Java Source File NameTypeComment
AbstractAttributeIO.javaClass Provides support for creating AttributeReaders.
AbstractDataStore.javaClass Represents a stating point for implementing your own DataStore.

The goal is to have this class provide everything else if you can only provide:

  • String[] getFeatureTypes()
  • FeatureType getSchema(String typeName)
  • FeatureReader getFeatureReader( typeName )
  • FeatureWriter getFeatureWriter( typeName )
and optionally this protected methods to allow custom query optimizations:
  • Filter getUnsupportedFilter(String typeName, Filter filter)
  • FeatureReader getFeatureReader(String typeName, Query query)

All remaining functionality is implemented against these methods, including Transaction and Locking Support.

AbstractDataStoreFactory.javaClass A best of toolkit for DataStoreFactory implementors.
AbstractDataStoreTest.javaClass An abstract super class for testing datastore implementations.
AbstractFeatureLocking.javaClass A Starting point for your own FeatureLocking implementations.
AbstractFeatureSource.javaClass This is a starting point for providing your own FeatureSource implementation.
AbstractFeatureStore.javaClass This is a starting point for providing your own FeatureStore implementation.
AbstractFileDataStore.javaClass

This class assumes the DataStore represents a single source, represented by a URL.

ALLQuery.javaClass Implementation of Query.ALL.

This query is used to retrive all Features.

ArrayFeatureReaderTest.javaClass
AttributeReader.javaInterface The low-level attribute reading API.
AttributeWriter.javaInterface - Added hasNext to support the FeatureWriter API.
AutoCommitTransaction.javaClass This is used to represent the absense of a Transaction and the use of AutoCommit.
CollectionFeatureReader.javaClass FeatureReader that reads features from a java.util.collection of features, an array of features or a FeatureCollection.
ComplexTestData.javaClass
CurrentTransactionLock.javaClass A request for a Lock that last the duration of a transaction.
DataAccess.javaInterface Interface providing Open Web Service style access to geo resource content.

The basic idea is to have simple, very general interface to access and query data that is in some way or another spatially enabled.

DataAccessFactory.javaInterface Constructs a live DataAccess connection from a set of parameters.
DataAccessFinder.javaClass
DataSourceException.javaClass Thrown when there is an error in a datasource.

This class was used back in Java 1.3 before the initCause() method was available for IOException.

DataStore.javaInterface Represents a Physical Store for FeatureTypes.

The source of data for FeatureTypes.

DataStoreFactorySpi.javaInterface Constructs a live DataStore from a set of parameters.

An instance of this interface should exist for all data stores which want to take advantage of the dynamic plugin system.

DataStoreFinder.javaClass Enable programs to find all available datastore implementations.
DataTestCase.javaClass A set of constructs and utility methods used to test the data module.
DataUtilities.javaClass Utility functions for use when implementing working with data classes.
DataUtilitiesTest.javaClass Tests cases for DataUtilities.
DefaultFeatureLock.javaClass Used to lock features when used with LockingDataSource.
DefaultFeatureLockFactory.javaClass Default implementation of the FeatureLockFactory.
DefaultFeatureReader.javaClass Basic support for reading Features from an AttributeReader.
DefaultFeatureResults.javaClass Generic "results" of a query, class.

Please optimize this class when use with your own content. For example a "ResultSet" make a great cache for a JDBCDataStore, a temporary copy of an original file may work for shapefile etc.

DefaultFIDReader.javaClass A Default FIDReader.
DefaultQuery.javaClass The query object is used by the FeatureSource.getFeatures method of the DataSource interface, to encapsulate a request.
DefaultQueryTest.javaClass
DefaultRepository.javaClass Quick hack of a DataRepository allows me to bridge the existing DataStore API with these experiments for a Opperations api. I have used the old DefaultCatalaog as a starting point. This also serves as a reminder that we need CrossDataStore functionality - at least for Locks.
DefaultTransaction.javaClass Quick implementation of Transaction api.
Diff.javaClass
DiffFeatureReader.javaClass A FeatureReader that considers differences.

Used to implement In-Process Transaction support.

DiffFeatureWriter.javaClass A FeatureWriter that captures modifications against a FeatureReader.
DiffWriterTest.javaClass
DummyFeatureType.javaClass
EmptyFeatureReader.javaClass Represents an Empty, Typed, FeatureReader.
EmptyFeatureWriter.javaClass Represents an Empty, Typed, FeatureWriter.
FeatureEvent.javaClass A simple event object to represent all events triggered by DataStore instances (typically change events).

The "Source" FeatureEvents is taken to be a FeatureSource, rather than DataStore.

FeatureListener.javaInterface Interface to be implemented by all listeners of FeatureEvents.
FeatureListenerManager.javaClass This class is used by DataStore implementations to provide FeatureListener support for the FeatureSources they create.
FeatureLock.javaInterface Used to lock features when used with LockingDataSource.
FeatureLockException.javaClass Indicates a lock contention, and attempt was made to modify or aquire with out Authroization.
FeatureLockFactory.javaClass This specifies the interface to create FeatureLocks.
FeatureLocking.javaInterface Provides Feature based locking.

Features from individual shapefiles, database tables, etc.

FeatureLockTest.javaClass Test of LockingAPI FeatureLock data object.
FeatureReader.javaInterface The low-level interface for reading Features.
FeatureSource.javaInterface Highlevel API for Features from a specific location.

Individual Shapefiles, databases tables , etc.

FeatureSourceRepository.javaClass Another Quick hack of a DataRepository as a bridge to the Opperations api.
FeatureStore.javaInterface Provides storage of data for Features.

Individual shapefiles, database tables, etc.

FeatureWriter.javaInterface Provides the ability to write Features information.

Capabilities:

  • Similar API to FeatureReader
  • After aquiring a feature using next() you may call remove() or after modification write().
FIDFeatureReader.javaClass Experimental FeatureReader that always takes the first column of the attributeReader as the FeatureID.
FIDReader.javaInterface FeatureReader customized for FeatureID handling.

An experimental method for doing FIDs.

FIDSQuery.javaClass Implementation for Query.FIDS.

This query is used to retrive FeatureIds.

FileDataStoreFactorySpi.javaInterface

This interface includes some new functionality, and acts as a method of discovery for DataStoreFactories which support singular files.

FileDataStoreFinder.javaClass

Most of this code was copied from DataStoreFinder.

FilteringFeatureReader.javaClass Basic support for a FeatureReader that does filtering.
FilteringFeatureReaderTest.javaClass Test FilteredFeatureReader for conformance.
FilteringFeatureWriter.javaClass Filtering is performed on this hasNext() method.

This implementation writes out content furing the hasNext() method.

InProcessLockingManager.javaClass Provides In-Process FeatureLocking support for DataStore implementations.
JoiningAttributeReader.javaClass Attribute Reader that joins.
JoiningAttributeWriter.javaClass Provides ...
LockingManager.javaInterface This class describes a featureID based locking service.
MaxFeatureReader.javaClass Basic support for a FeatureReader that limits itself to the number of features passed in.
PrjFileReader.javaClass
Query.javaInterface Encapsulates a data request.

The query object is used by the FeatureSource.getFeatures(Query) to encapsulate a request.

Repository.javaInterface Provides a Repository of available FeatureTypes allowing Catalog metadata queries.
ReTypeFeatureReader.javaClass Supports on the fly retyping of FeatureReader contents.
SchemaNotFoundException.javaClass Indicates a FeatureType could not be found.
Source.javaInterface A read-only source of geospatial information.

Access to the spatial information in a filtered/queried or not.

Store.javaInterface A read-write store for geospatial information.

First draft of a Store interface based on brain storming session with Jody, Thomas, Stefan and Cory in Refractions on November 24th.

TestReader.javaClass
Transaction.javaInterface The controller for Transaction with FeatureStore.

Shapefiles, databases, etc.

TransactionStateDiff.javaClass A Transaction.State that keeps a difference table for use with AbstractDataStore.
TransactionTest.javaClass
VersioningDataStore.javaInterface A data store that can version enable feature types, and then keep version history for those.
VersioningFeatureLocking.javaInterface Feature locking with versioning capabilities.
VersioningFeatureSource.javaInterface Extension to feature source to provide the read only methods needed to work against a versioned data store.
VersioningFeatureStore.javaInterface
WorldFileReader.javaClass This class is responsible for parsing a world file in order to build an affine transform using the parameters provided in the file itself.

The parameters found in the file should be as follows:

  1. size of pixel in x direction
  2. rotation term for row
  3. rotation term for column
  4. size of pixel in y direction
  5. x coordinate of centre of upper left pixel in map units
  6. y coordinate of centre of upper left pixel in map units
Note that the last two coordinates refer to the centre of the pixel!

It is worth to point out that various data sources describe the parameters in the world file as the mapping from the pixel centres' to the associated world coords.

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.