[mkgmap-dev] Generate coastlines
From Gerd Petermann gpetermann_muenchen at hotmail.com on Wed Mar 4 05:11:46 GMT 2015
Hi Steph, these steps work fine for me: 1) follow the general instructions to create a buid environment: http://www.mkgmap.org.uk/dev/index.html 2) modify build.xml, change the line <exclude name="**/optional/*.java"/> to <exclude name="**/dem/optional/*.java"/> 3) change into the directory containing build.xml 3) run the commands ant resolve-optional ant dist to build mkgmap.jar with PrecompSeaGenerator 4) run a command similar to this java -Xmx6800m -cp .\dist\mkgmap.jar;.\lib\optional\* uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator f:\osm\land-polygons-split-4326\land_polygons.shp WGS84 e:\work\sea Gerd > Date: Tue, 3 Mar 2015 20:54:22 -0300 > From: st3ph.martin at laposte.net > To: mkgmap-dev at lists.mkgmap.org.uk > Subject: [mkgmap-dev] Generate coastlines > > Hi, > > I tried to generate coastlines according to this : > http://gis.19327.n5.nabble.com/coastline-td5745923i20.html > > At the end, when I ran mkgmap I got an error : > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/opengis/referencing/crs/CoordinateReferenceSystem > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) > at java.lang.Class.getMethod0(Class.java:2856) > at java.lang.Class.getMethod(Class.java:1668) > at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) > at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) > Caused by: java.lang.ClassNotFoundException: > org.opengis.referencing.crs.CoordinateReferenceSystem > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > ... 6 more > > My command : > java -Xms$JXMS -Xmx$JXMX -cp > "$WORKDIR"/mkgmap/dist/mkgmap.jar:../lib/optional/* \ > uk.me.parabola.mkgmap.sea.optional.PrecompSeaGenerator \ > "$SHAPEDIR"/land_polygons.shp WGS84 sea-"$DATE" > > java version "1.7.0_75" > OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1) > OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode) > > Can you see where I failed ? > > Steph > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150304/9b15d11f/attachment.html>
- Previous message: [mkgmap-dev] Generate coastlines
- Next message: [mkgmap-dev] Generate coastlines
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list