You can find my experimental GPX code here: http://surveyos.svn.sourceforge.net/viewvc/surveyos/java/gpx/src/
The code is documented or unit tested yet, and some of the methods are stubs. I'm fooling around with some techniques for accessing and managing GPX that are a little different from the ones Peter chose. Some of these differences are listed below: - My initial reader and writer will be based on JDOM. - I'll be supporting the extensions element via the JDOM Element object. - I'll be supporting the time element via the Joda DateTime element. - I'm using "user friendly" names like getRoute instead of getRte, or getWaypoint instead of getWpt. - I'll be providing low-level access to the entities stored in a GPX file. This means you could use this code to convert a GPX file into a DXF file or SVG file without dealing with any Feature object, for example. Another example is the ability to get at the raw double values representing the ordinates of the GPX file bounding box without dealing with an Envelope class from GeoTools. (This access will be provided at a higher level for GeoTools clients.) - I'll be providing access to GPX entities as DataObjects. This access will be provided one level "below" the access that I will provide to GPX entities as implementations of org.geotools.feature.SimpleFeature. This will allow programs like OpenJUMP to access GPX files without the need to deal with the GeoTools feature model. - I'll be supporting access to a representation to GPX files as some sort of GeoFileResource class. This will allow client code to query a directory containing GPX files for all the GPX files by the same author, after a certain date, or within a particular envelope. All of these ideas are very preliminary, but I thought I would throw them out for discussion. I'm sure Peter will have some comments. My main challenge will be implementing the higher level of the library, in which I will need to allow access to a SimpleFeature implementation in the "GeoTools way" (likely trough a DataStore). Landon P.S. - I was looking for a DataStore implementation in Peter's code, but didn't see it in the Javadoc for the three GPX packages. Is it related to the org.geotools.gpx.bean.ObjectFactory class? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
