Sunburned Surveyor wrote: > I'll be testing my GPX plug-in "live" for OpenJUMP this week. When > these tests are complete I'll load the latest version of my source > code to the GeoTools SVN. That is great news - I was meaning to ask you how the work was going. > I'll like need some help then including my GPX module in the build process > for GeoTools. (I think there may need > to be some sort of review process completed befor this can happen?) > After you have loaded it I do not mind going over the work with you folding it into the unsupported/pom.xml etc. > It should be very easy to read waypoints and tracks from GPX files into a > program like UDig using my library. > That is why I was going to ask you how it was going :-) > Now that I am nearing my first release of the module I'm thinking about my > improvements for the next release and I had a couple of questions: > > - I'd like to replace my use of JDom with an XML pull parser. I understand why; but I do not have any good recommendation. I know there was some interest in pull parsers (for GML handling) a while back - but at that time there was no clear winner. > - Right now my code uses doubles to represent lat and long values. I'd > like to create a convenient wrapper class to represent a lat/long > coordinate (possible with an elevation). I noted that GeoTools has a > latitude and longitude classes: > > http://javadoc.geotools.fr/2.5/org/geotools/measure/Latitude.html > http://javadoc.geotools.fr/2.5/org/geotools/measure/Longitude.html > > Is there a class GeoTools uses to represent a Lat/Long pair? I have always used something like: new DirectPosition( lon, lat, DefaultGeographicCRS.WGS84)
There is a 3D WGS84 as well. > If there isn't, what interface or class might I extend/implement to do so? I > don't want to roll my own lat/long wrapper if I don't have to. > Use DirectPosition and then you can smoothly reproject :-) At least that is what I plan to do with your reader ... I can always draw DirectPositions (almost anything else I have to guess). Jody ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
