<div dir="ltr">I tried it and got an error:<div><br></div><div>my splitter command is:</div><div><br></div><div>java -Xmx1024m -Xms1024m -ea -jar \MKGMAP\splitter.jar --max-nodes=1400000 --handle-element-version=keep --mapid="12390000" --geonames-file=\MKGMAP\cities15000.zip --description=MI-greg --max-areas="255" --no-trim --status-freq="600" michigan-latest.osm.pbf<br></div><div><br></div><div>The command shell output was:</div><div><br></div><div><div>java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter</div><div><span class="" style="white-space:pre">        </span>at java.lang.Class.getDeclaredMethods0(Native Method)</div><div><span class="" style="white-space:pre">        </span>at java.lang.Class.privateGetDeclaredMethods(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at java.lang.Class.privateGetMethodRecursive(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at java.lang.Class.getMethod0(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at java.lang.Class.getMethod(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)</div><div>Caused by: java.lang.ClassNotFoundException: crosby.binary.file.BlockReaderAdapter</div><div><span class="" style="white-space:pre">        </span>at java.net.URLClassLoader.findClass(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at java.lang.ClassLoader.loadClass(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>at java.lang.ClassLoader.loadClass(Unknown Source)</div><div><span class="" style="white-space:pre">        </span>... 7 more</div><div>Error: A JNI error has occurred, please check your installation and try again</div><div>Exception in thread "main" </div></div><div><br></div><div>Greg</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 29, 2016 at 5:39 AM, Gerd Petermann <span dir="ltr"><<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p><br>
</p>
<p>the attached patch adds the option --handle-element-version</p>
<p>with three possible values "keep", "fake", and "remove".<br>
</p>
<p>With "remove" (the default) splitter works like r428,</p>
<p>means, the version of OSM elements is not written to the output files,</p>
<p>I also did not notice any changes regarding performance.<br>
</p>
<p><br>
</p>
<p>With "keep" splitter writes the version that is found in the input file.</p>
<p>With "fake" splitter sets the version to 1.<br>
</p>
<p><br>
</p>
<p>I am not sure what to do when the input file(s) contain elements <br>
</p>
<p>without (or invalid) version info and option keep is used.</p>
<p><br>
</p>
<p>Another special case is the pbf format:</p>
<p>Since r428 splitter always writes version 1 for nodes, this was a work-around</p>
<p>for a problem in the JOSM pbf plugin. This is still done even with --handle-element-version=remove</p>
<p><br>
</p>
<p>A last special case: with output=xml and <br>
</p>
<p>--handle-element-version=keep or fake splitter will write api version 0.6 instead of 0.5</p>
<p><br>
</p>
A binary based on r428 is available here:<br>
<a href="http://files.mkgmap.org.uk/download/291/splitter.jar" target="_blank">http://files.mkgmap.org.uk/download/291/splitter.jar</a><br>
<br>
Please let me know what you think about this change.<span class="HOEnZb"><font color="#888888"><br>
<br>
Gerd<br>
<a href="http://files.mkgmap.org.uk/download/291/splitter.jar" target="_blank"></a></font></span></div>
</div>
<br>_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br></div>