<div dir="ltr"><div>Feedback: It Works! Thank you. I can now use off-line .osm.pbf maps with JOSM to work on anyplace without having to be online line all the time.<br><br></div>Greg<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 11:23 PM, Gerd Petermann <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Greg,<br>
<br>
I&#39;ve only provided the jar file, you have to use a full splitter package<br>
from here<br>
<a href="http://www.mkgmap.org.uk/download/splitter.html" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/download/splitter.html</a><br>
and replace the splitter.jar with my version to test it.<br>
<br>
Gerd<br>
<br>
<br>
greg crago wrote<br>
<div><div class="h5">&gt; I tried it and got an error:<br>
&gt;<br>
&gt; my splitter command is:<br>
&gt;<br>
&gt; java -Xmx1024m -Xms1024m -ea -jar \MKGMAP\splitter.jar --max-nodes=1400000<br>
&gt; --handle-element-version=keep --mapid=&quot;12390000&quot;<br>
&gt; --geonames-file=\MKGMAP\cities15000.zip --description=MI-greg<br>
&gt; --max-areas=&quot;255&quot; --no-trim --status-freq=&quot;600&quot; michigan-latest.osm.pbf<br>
&gt;<br>
&gt; The command shell output was:<br>
&gt;<br>
&gt; java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter<br>
&gt; at java.lang.Class.getDeclaredMethods0(Native Method)<br>
&gt; at java.lang.Class.privateGetDeclaredMethods(Unknown Source)<br>
&gt; at java.lang.Class.privateGetMethodRecursive(Unknown Source)<br>
&gt; at java.lang.Class.getMethod0(Unknown Source)<br>
&gt; at java.lang.Class.getMethod(Unknown Source)<br>
&gt; at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)<br>
&gt; at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)<br>
&gt; Caused by: java.lang.ClassNotFoundException:<br>
&gt; crosby.binary.file.BlockReaderAdapter<br>
&gt; at java.net.URLClassLoader.findClass(Unknown Source)<br>
&gt; at java.lang.ClassLoader.loadClass(Unknown Source)<br>
&gt; at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)<br>
&gt; at java.lang.ClassLoader.loadClass(Unknown Source)<br>
&gt; ... 7 more<br>
&gt; Error: A JNI error has occurred, please check your installation and try<br>
&gt; again<br>
&gt; Exception in thread &quot;main&quot;<br>
&gt;<br>
&gt; Greg<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Feb 29, 2016 at 5:39 AM, Gerd Petermann &lt;<br>
<br>
&gt; GPetermann_muenchen@<br>
<br>
</div></div><span class="">&gt;&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; the attached patch adds the option --handle-element-version<br>
&gt;&gt;<br>
&gt;&gt; with three possible values &quot;keep&quot;, &quot;fake&quot;, and &quot;remove&quot;.<br>
&gt;&gt;<br>
&gt;&gt; With &quot;remove&quot; (the default) splitter works like r428,<br>
&gt;&gt;<br>
&gt;&gt; means, the version of OSM elements is not written to the output files,<br>
&gt;&gt;<br>
&gt;&gt; I also did not notice any changes regarding performance.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; With &quot;keep&quot; splitter writes the version that is found in the input file.<br>
&gt;&gt;<br>
&gt;&gt; With &quot;fake&quot; splitter sets the version to 1.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I am not sure what to do when the input file(s) contain elements<br>
&gt;&gt;<br>
&gt;&gt; without (or invalid) version info and option keep is used.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Another special case is the pbf format:<br>
&gt;&gt;<br>
&gt;&gt; Since r428 splitter always writes version 1 for nodes, this was a<br>
&gt;&gt; work-around<br>
&gt;&gt;<br>
&gt;&gt; for a problem in the JOSM pbf plugin. This is still done even with<br>
&gt;&gt; --handle-element-version=remove<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; A last special case: with output=xml and<br>
&gt;&gt;<br>
&gt;&gt; --handle-element-version=keepĀ  or fake splitter will write api version<br>
&gt;&gt; 0.6<br>
&gt;&gt; instead of 0.5<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; A binary based on r428 is available here:<br>
&gt;&gt; <a href="http://files.mkgmap.org.uk/download/291/splitter.jar" rel="noreferrer" target="_blank">http://files.mkgmap.org.uk/download/291/splitter.jar</a><br>
&gt;&gt;<br>
&gt;&gt; Please let me know what you think about this change.<br>
&gt;&gt;<br>
&gt;&gt; Gerd<br>
</span>&gt;&gt; &lt;<a href="http://files.mkgmap.org.uk/download/291/splitter.jar" rel="noreferrer" target="_blank">http://files.mkgmap.org.uk/download/291/splitter.jar</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mkgmap-dev mailing list<br>
&gt;&gt;<br>
<br>
&gt; mkgmap-dev@.org<br>
<br>
&gt;&gt; <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>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; mkgmap-dev mailing list<br>
<br>
&gt; mkgmap-dev@.org<br>
<br>
&gt; <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>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gis.19327.n5.nabble.com/Patch-v1-now-option-handle-element-version-for-splitter-tp5868732p5868857.html" rel="noreferrer" target="_blank">http://gis.19327.n5.nabble.com/Patch-v1-now-option-handle-element-version-for-splitter-tp5868732p5868857.html</a><br>
Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>