[OSM-dev] Changeset Files Now Include User Id Attribute
Brett Henderson
brett at bretth.com
Tue Nov 18 11:17:17 GMT 2008
As of 10:55 UTC, the daily/hourly/minute changeset files now include a
uid attribute on all entities. This brings osmosis into alignment with
the planet format which has included uid details for some time now.
This will aid the transition to the 0.6 API which will also expose the
uid attribute. Osmosis can build 0.6 compliant files based upon a 0.5
planet by using the --migrate task. For example:
osmosis --read-xml-0.5 planet5.osm.gz --migrate --write-xml-0.6
planet6.osm.gz
or
osmosis --rx planet5.osm.gz --mig --write-xml-0.6.osm.gz
Note that due to improved referential integrity in the 0.6 mysql schema,
this result file will not be able to be imported into a database. It
may be possible to do a basic cleanup by running data through a bounding
box task which will drop all ways and relations that don't have
corresponding nodes but I haven't tested this.
osmosis --read-xml-0.6 planet6.osm.gz --bounding-box-0.6
idTrackerType=BitSet --write-xml-0.6 planet6-clean.osm.gz
This code is all in the svn version of osmosis, not in the latest
released version.
More information about the dev
mailing list