<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi,</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">They said that they disabled Api V0.5 since JOSM&nbsp;<font color="#000000" style="text-decoration: none; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(187, 187, 187); background-color: rgba(255, 255, 255, 0);"><a class="changeset" href="https://josm.openstreetmap.de/changeset/7013/josm" title="drop support of OSM API 0.5" style="text-decoration: none; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(187, 187, 187); background-color: rgba(255, 255, 255, 0);">r7013</a>&nbsp;because V0.6 is out since 2009 and there should be no reason to still support V0.5.&nbsp;</font></div><div id="AppleMailSignature"><font color="#000000" style="text-decoration: none; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(187, 187, 187); background-color: rgba(255, 255, 255, 0);"><br></font></div><div id="AppleMailSignature"><font color="#000000" style="text-decoration: none; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(187, 187, 187); background-color: rgba(255, 255, 255, 0);">See&nbsp;<a href="https://josm.openstreetmap.de/ticket/9975">https://josm.openstreetmap.de/ticket/9975</a></font></div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">osmconvert is a good option. From my point of view it would be also ok to stay at V0.5 and add the osmconvert workaround to the documentation.</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">Von meinem iPad gesendet</div><div><br>Am 26.02.2016 um 08:23 schrieb Gerd Petermann &lt;<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@hotmail.com</a>&gt;:<br><br></div><blockquote type="cite"><div>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Michael,</p>
<p><br>
</p>
<p>yes, JOSM seems to expect metainfo (version, userid, last change timestamp) and fails to read
<br>
</p>
<p>a pbf file without that info. No idea why, but I've added a workaround in splitter r428 right now.</p>
<p><br>
</p>
I was not aware that JOSM requires version 0.6 now, how crazy is that ? <br>
<p>Instead of using an editor you can&nbsp;use osmconvert:</p>
<p>osmconvert --fake-version &lt;input-file&gt; -o=output.osm<br>
</p>
<p><br>
</p>
<p>I hesitate to change splitter in this case because the extra information increases the osm.gz files</p>
<p>by ~2% . I'd first like to understand why JOSM doesn't allow api version 0.5&nbsp;anymore.</p>
<p><br>
</p>
Gerd<br>
<br>
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> <a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a> &lt;<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>&gt; im Auftrag von Michael Schlenstedt &lt;<a href="mailto:schlenn@gmail.com">schlenn@gmail.com</a>&gt;<br>
<b>Gesendet:</b> Freitag, 26. Februar 2016 07:38<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] when I use SPLITTER to IMPORT om.pbf files into JOSM I get error</font>
<div>&nbsp;</div>
</div>
<div><font face="Helvetica, Arial, sans-serif">Hi Gerd,<br>
<br>
I also struggled around with this incompatibility splitter/JOSM. I used XML-files, but JOSM does not support API V0.5 for quite a while now, and splitter still produces v0.5 XML files.<br>
<br>
Dirty Workaround: I open all yml-file in an editor, changed Line 2 into "osm version='0.6'" and add "version='1'" to all id-instances. For VIM: :%s/ id='/ version='1' id='/g<br>
<br>
Maybe that's also the reason why JOSM doesn't like the PBF-files...<br>
<br>
Regards,<br>
Michael<br>
<br>
</font><br>
<div class="moz-cite-prefix">Am 25.02.2016 um 23:46 schrieb Gerd Petermann:<br>
</div>
<blockquote type="cite">
<pre>Gerd Petermann wrote
&gt; Hi Greg.
&gt; 
&gt; 
&gt; You can use osmconvert which should be able to read the output of
&gt; splitter, e.g.
&gt; 
&gt; osmconvert 12360002.osm.pbf -o=12360002-josm.osm.pbf

Sorry, was too quick. 
You probably need option --fake-version for osmconvert:
osmconvert  --fake-version 12360002.osm.pbf -o=12360002-josm.osm.pbf

I think that's the reason for the problem: JOSM doesn't like input
in pbf format that doesn't have the meta info (version, author etc)

I never cared about that because I use o5m format and an o5m plugin that
I wrote once for JOSM. It is not in the plugins repo, but I may try again to
add 
it there.

A 3rd alternative is to use --output=xml in splitter, the files in that
format are
no problem in JOSM, but may decrease performance in splitter and mkgmap.

Gerd




--
View this message in context: <a id="LPlnk895680" class="moz-txt-link-freetext" href="http://gis.19327.n5.nabble.com/when-I-use-SPLITTER-to-IMPORT-om-pbf-files-into-JOSM-I-get-error-tp5868501p5868511.html">http://gis.19327.n5.nabble.com/when-I-use-SPLITTER-to-IMPORT-om-pbf-files-into-JOSM-I-get-error-tp5868501p5868511.html</a>
Sent from the Mkgmap Development mailing list archive at <a href="http://nabble.com">Nabble.com</a>.
_______________________________________________
mkgmap-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>


</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>mkgmap-dev mailing list</span><br><span><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a></span><br><span><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></span></div></blockquote></body></html>