You can download the 1.2 version of my GPX plug-in here:
https://sourceforge.net/projects/surveyos/files/SurveyOS%20OpenJUMP%20Plug-Ins/GPX/
You need to put the contents of the "lib" folder in the lib folder of
your OpenJUMP installation folder. You need to put the contents of the
"ext" folder in the zip file into the lib/ext folder of your OpenJUMP
installation folder.
If the plug-in installs correctly you should have a new "SurveyOS"
menu with a menu item to import a GPX file.
If the plug-in doesn't install properly or you get an error message,
let me know and I will try to help you fix the problem.
The plug-in was compiled in the latest stable version of Eclipse using
JDK 7 and a 1.6 Java version compiler setting.
It was tested on the latest stable release of OpenJUMP on my Windows 7
computer and opened a GPX file with no problems.
I hope this helps!
Landon
Landon Blake <sunburned...@gmail.com> schrieb:
i got an error message window saying:
No Class Def Found Error
Org/jdom/input/SAXBuilder (No Class Def Found Error)
and when i press the 'show details button', found this statement:
java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
at
com.vividsolutions.jump.workbench.WorkbenchPropertiesFile.<init>(WorkbenchPropertiesFile.java:
70)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.<init>(JUMPWorkbench.java:
253)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:
373)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:
340)
Caused by: java.lang.ClassNotFoundException: org.jdom.input.SAXBuilder
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 4 more
I am using windows 7, but im not sure about my java program. i tried
to search, i found these programs are installed in my computer:
- java 2 runtime environtment standard edition v1.3.1_20
- java (TM) 6 update 17
- java (TM) 6 update 24
hope it helps you to find the cause. thank you very much.
On Nov 29, 3:06 pm, Landon Blake <sunburned.surve...@gmail.com> wrote:
> Andre,
>
> You can download the 1.2 version of my GPX plug-in here:
>
> https://sourceforge.net/projects/surveyos/files/SurveyOS%20OpenJUMP%2...
Please be patient with me. We will get it working...I promise. :]
Landon
after you mention it, i tried to add JDOM again from v1.1.
My OJ opens without error, when i trying to open GPX, the list of
choices does not contain GPX format. and still cannot open gpx files.
hahaha.........
i really appreciate your help Landon, we dont know each other but you
are willing to help me. that is really something.
so, dont worry. patient is my middle name. Thank you for your
attention.
Thanks for reporting your problems with the GPX plug-in. I'm glad you
got it working on at least one computer.
I thought I compiled for Java 6 last time. Apparently that didn't
work. I'll see if I have time to look at it again this week. Would you
be willing to test a build of the plug-in for Java 6 if I have time to
put one together?
Thanks.
Landon
For information, GDAL is very good tool for reading and converting GPX
files. It finds 5 layers from a GPX file. Here is an ogrinfo listing about
one gpx file
D:\temp\gpxtest>ogrinfo kotka.gpx
Had to open data source read-only.
INFO: Open of `kotka.gpx'
using driver `GPX' successful.
1: waypoints (Point)
2: routes (Line String)
3: tracks (Multi Line String)
4: route_points (Point)
5: track_points (Point)
All these layers can be converted into individual shapefiles. Track_points
layer is interesting and useful because it holds all the points which are
making the track with whole lot of attributes like elevation, timestamp,
speed, course, GPS fix type, satellites in view and three DOP values.
Much better than to convert to shapefiles is to convert GPX file into
Spatialite database. The following command converts all the five layers to
Spatialite database. GDAL version 1.9 is recommended because of fresh
improvements in Spatialite driver.
ogr2ogr -f "SQLite" -dsco spatialite=yes kotka.sqlite kotka.gpx
The resulting database "kotka.sqlite" can be read with the OpenJUMP DB
Query plugin. However, I need to recommend Quantum GIS for this because it
gives a nice GUI and query builder tool for reading data from Spatialite.
Link to GDAL GPX driver page http://gdal.org/ogr/drv_gpx.html
Spatialite is not Java but it is so damn good that we should have a well
working Spatialite reader with GUI in the +PLUS version.
-Jukka Rahkonen-
Landon Blake kirjoitti:
Andre: Are you still willing to help me test this plug-in?
Landon
no - no should be no difference if from installer or not.
Most of us "project users/developers" actually prefer to "unzip & start"
with the *.bat file, I would say.
cheers,
stefan
Am 17.01.12 15:44, schrieb Chris Cooper: