[osmosis-dev] One more question to Osmosis changefile
Kai Behncke
Kai-Behncke at gmx.de
Mon Nov 16 15:34:53 GMT 2009
Hi Lars,
first thank you for your answer.
Well, the april-data originally where in osm-version 0.5.
I translated them in version 0.6 by
doing --read-xml-0.5 enableDateParsing=no file="xyz.osm" --migrate
--write-xml file="xyz_neu.osm"
I dig again a comparison, these time with that data that follow:
<way id="27080265" version="1" timestamp="2009-11-03T22:02:29Z" uid="45289" user="Michael Held">
<nd ref="297094272"/>
<nd ref="297094271"/>
<nd ref="297095385"/>
<nd ref="297095386"/>
<nd ref="297095387"/>
<nd ref="297095389"/>
<nd ref="297095393"/>
<tag k="highway" v="residential"/>
<tag k="maxspeed" v="30"/>
<tag k="name" v="Riedstraße"/>
<tag k="surface" v="paved"/>
</way>
...with:
<way id="27080265" version="6" timestamp="2009-11-03T22:02:29Z" uid="39072" user="Rene Westerholt" changeset="2178532">
<nd ref="297094272"/>
<nd ref="297094271"/>
<nd ref="297095385"/>
<nd ref="297095386"/>
<nd ref="297095387"/>
<nd ref="297095389"/>
<nd ref="297095393"/>
<tag k="highway" v="residential"/>
<tag k="maxspeed" v="30"/>
<tag k="name" v="Riedenstraße"/>
<tag k="surface" v="asphalt"/>
</way>
I had a look in the osc-file, there it occurs:
<way id="27080265" version="6" timestamp="2009-11-03T22:02:29Z" uid="39072" user="Rene Westerholt" changeset="2178532">
<nd ref="297094272"/>
<nd ref="297094271"/>
<nd ref="297095385"/>
<nd ref="297095386"/>
<nd ref="297095387"/>
<nd ref="297095389"/>
<nd ref="297095393"/>
<tag k="highway" v="residential"/>
<tag k="maxspeed" v="30"/>
<tag k="name" v="Riedenstraße"/>
<tag k="surface" v="asphalt"/>
</way>
I tried to transform that osc-file in a basic-osm-file like:
<?xml version='1.0' encoding='UTF-8'?>
<osm version="0.6" generator="Osmosis 0.31">
<bound box="52.21700,7.91700,52.35370,8.16940" origin="http://www.openstreetmap.org/api/0.6"/>
</osm>
with that command:
E:\osmosis\bin>osmosis --read-xml-change file="E:/download/ha_gc/sitzung_drei/daten/november/veraenderung15.osc" --read-
xml file="E:/download/ha_gc/sitzung_drei/daten/november/basisfile.osm" --apply-change --write-xml file="E:/download/ha_g
c/sitzung_drei/daten/november/studienprojekt6.osm"
and I get a new-osm file that has also
<way id="27080265" version="6" timestamp="2009-11-03T22:02:29Z" uid="39072" user="Rene Westerholt" changeset="2178532">
<nd ref="297094272"/>
<nd ref="297094271"/>
<nd ref="297095385"/>
<nd ref="297095386"/>
<nd ref="297095387"/>
<nd ref="297095389"/>
<nd ref="297095393"/>
<tag k="highway" v="residential"/>
<tag k="maxspeed" v="30"/>
<tag k="name" v="Riedenstraße"/>
<tag k="surface" v="asphalt"/>
</way>
....but if I load the new file in Quantum GIS (with the osm-plugin) quite a lot is visualized
but not that line (also in JOSM it`s not visualized).
Has anybody an idea why this can be?
Best regards, Kai
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the osmosis-dev
mailing list