[Geoserver-devel] Sample DataAccess for testing

Jody,

I have committed the initial implementation of a sample DataAccess to GeoTools trunk. It lives in:

     modules/unsupported/app-schema/sample-data-access

and has artifactId gt-sample-data-access.

sample-data-access does not depend on any other app-schema modules, so if you have built the standard geotools modules, you should be able to change into the sample-data-access and "mvn install".

sample-data-access provides a DataAccessFactory registered via SPI, which can be loaded with DataAccessFinder. It responds to connection parameters with "dbtype" set to "sample-data-access" (e.g. SampleDataAccessFactory.PARAMS).

At the moment, the DataAccess returns two features a little like GeoSciML MappedFeature, each with a description and shape. There are still some shortcomings in the implementation, with some info methods not yet implemented, and the geometries not a GeometryAttribute, but it should in its current form be sufficient to explore the interaction between a DataAccess and GeoServer.

Jody, please also try this in uDig. I expect some unimplemented info methods will cause problems. Please let me know which and I will fix them.

Kind regards,

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer, CSIRO Exploration and Mining
Australian Resources Research Centre
26 Dick Perry Ave, Kensington WA 6151, Australia