<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"><<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">Hi Greg,<br>
<br>
I'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">> I tried it and got an error:<br>
><br>
> my splitter command is:<br>
><br>
> java -Xmx1024m -Xms1024m -ea -jar \MKGMAP\splitter.jar --max-nodes=1400000<br>
> --handle-element-version=keep --mapid="12390000"<br>
> --geonames-file=\MKGMAP\cities15000.zip --description=MI-greg<br>
> --max-areas="255" --no-trim --status-freq="600" michigan-latest.osm.pbf<br>
><br>
> The command shell output was:<br>
><br>
> java.lang.NoClassDefFoundError: crosby/binary/file/BlockReaderAdapter<br>
> at java.lang.Class.getDeclaredMethods0(Native Method)<br>
> at java.lang.Class.privateGetDeclaredMethods(Unknown Source)<br>
> at java.lang.Class.privateGetMethodRecursive(Unknown Source)<br>
> at java.lang.Class.getMethod0(Unknown Source)<br>
> at java.lang.Class.getMethod(Unknown Source)<br>
> at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)<br>
> at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)<br>
> Caused by: java.lang.ClassNotFoundException:<br>
> crosby.binary.file.BlockReaderAdapter<br>
> at java.net.URLClassLoader.findClass(Unknown Source)<br>
> at java.lang.ClassLoader.loadClass(Unknown Source)<br>
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)<br>
> at java.lang.ClassLoader.loadClass(Unknown Source)<br>
> ... 7 more<br>
> Error: A JNI error has occurred, please check your installation and try<br>
> again<br>
> Exception in thread "main"<br>
><br>
> Greg<br>
><br>
><br>
> On Mon, Feb 29, 2016 at 5:39 AM, Gerd Petermann <<br>
<br>
> GPetermann_muenchen@<br>
<br>
</div></div><span class="">>> wrote:<br>
><br>
>> Hi all,<br>
>><br>
>><br>
>> the attached patch adds the option --handle-element-version<br>
>><br>
>> with three possible values "keep", "fake", and "remove".<br>
>><br>
>> With "remove" (the default) splitter works like r428,<br>
>><br>
>> means, the version of OSM elements is not written to the output files,<br>
>><br>
>> I also did not notice any changes regarding performance.<br>
>><br>
>><br>
>> With "keep" splitter writes the version that is found in the input file.<br>
>><br>
>> With "fake" splitter sets the version to 1.<br>
>><br>
>><br>
>> I am not sure what to do when the input file(s) contain elements<br>
>><br>
>> without (or invalid) version info and option keep is used.<br>
>><br>
>><br>
>> Another special case is the pbf format:<br>
>><br>
>> Since r428 splitter always writes version 1 for nodes, this was a<br>
>> work-around<br>
>><br>
>> for a problem in the JOSM pbf plugin. This is still done even with<br>
>> --handle-element-version=remove<br>
>><br>
>><br>
>> A last special case: with output=xml and<br>
>><br>
>> --handle-element-version=keepĀ or fake splitter will write api version<br>
>> 0.6<br>
>> instead of 0.5<br>
>><br>
>><br>
>> A binary based on r428 is available here:<br>
>> <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>
>><br>
>> Please let me know what you think about this change.<br>
>><br>
>> Gerd<br>
</span>>> <<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>
>><br>
>> _______________________________________________<br>
>> mkgmap-dev mailing list<br>
>><br>
<br>
> mkgmap-dev@.org<br>
<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>
>><br>
><br>
> _______________________________________________<br>
> mkgmap-dev mailing list<br>
<br>
> mkgmap-dev@.org<br>
<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>
<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>