[OSM-dev] pbf2osm dropping <bounds>
Frederik Ramm
frederik at remote.org
Mon Oct 25 18:36:44 BST 2010
Hi,
I created an extract with the Osmosis --bb, yielding an XML file
that contains a <bound> element:
<?xml version='1.0' encoding='UTF-8'?>
<osm version="0.6" generator="Osmosis 0.37">
<bound box="48.90000,8.10000,49.10000,8.20000" origin="0.37"/>
<node id="16477513" version="2" timestamp="2010-07-01T20:56:31Z"
uid="118352" user="kamarc" changeset="5123681" lat="48.9536685"
lon="8.1992266">
<tag k="noexit" v="yes"/>
</node>
...
</osm>
When I convert that to a .pbf file with Osmosis, or when I have Osmosis
write the .osm.pbf directly, that pbf file contains the <bound>
information, because converting it back with Osmosis still has the tag:
$ osmosis --rx test.osm --write-pbf test.osm.pbf
$ osmosis --read-pbf test.osm.pbf --wx new.osm
$ grep bound new.osm
<bound box="48.90000,8.10000,49.10000,8.20000" origin="0.37"/>
$
However if I decode my file with pbf2osm, the <bound> is missing:
$ pbf2osm test.osm.pbf > new.osm
$ grep bound new.osm
$
Can someone fix that? (Or maybe it has already been fixed My pbf2osm is
a few days old?)
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
More information about the dev
mailing list