Hi all,
<div><br></div><div>I'm trying to use Osmium to read in OSM data from *.osm.pbf files, add certain tag data and then write it out again to *.osm.pbf. I'm able to do this with smaller files, (city level), but when I try to do state/provincial level I run into 'corruption', where the tag data becomes completely mixed up and unusable. It's a strange problem -- the tag keys and values are 'preserved', but they are all mixed, seemingly at random.</div>
<div><br></div><div>Here is an example:</div><div><br></div><div><div>way:</div><div>  id=7948229</div><div>  version=1</div><div>  uid=5168</div><div>  user=|43.637614,-79.424110|</div><div>  changeset=505735</div><div>  timestamp=2007-09-23T19:11:20Z</div>
<div>  tags:</div><div>    k=|43.208074,-80.002507| v=|Book Road|</div><div>    k=|43.402130| v=|43.191320,-79.935827|</div><div>    k=|43.398032,-79.793599| v=|43.191382,-79.935896|</div><div>    k=|43.398144,-79.792577| v=|43.191420,-79.936025|</div>
<div>    k=|43.398410,-79.791691| v=|43.191414,-79.936282|</div><div>    k=|43.670969,-79.295439| v=|-79.936007|</div><div>    k=|43.670595,-79.295294| v=|43.191384|</div><div>  node_count=4</div><div>  nodes:</div><div>    ref=59222301</div>
<div>    ref=59222588</div><div>    ref=59222589</div><div>    ref=59222590</div></div><div><br></div><div>I'm saving node geometry data for certain ways. Here's an example of what the key/value pairs look like when they are correct:</div>
<div><br></div><div><div>way:</div><div>  id=75168646</div><div>  version=1</div><div>  uid=5640</div><div>  user=|MikeyCarter|</div><div>  changeset=5631822</div><div>  timestamp=2010-08-29T23:21:59Z</div><div>  tags:</div>
<div>    k=|my_startaddr| v=|724|</div><div>    k=|my_street| v=|City Road|</div><div>    k=|0| v=|48.354900,-89.284862|</div><div>    k=|1| v=|48.356371,-89.279541|</div><div>    k=|2| v=|48.356387,-89.279429|</div><div>
    k=|my_endaddr| v=|700|</div><div>    k=|3| v=|48.356431,-89.277626|</div><div>    k=|avg_lon| v=|-89.280365|</div><div>    k=|avg_lat| v=|48.356022|</div><div>  node_count=4</div><div>  nodes:</div><div>    ref=886971214</div>
<div>    ref=887071818</div><div>    ref=886990640</div><div>    ref=887031646</div></div><div><br></div><div>However, at some point in the process, they will turn 'random' and become garbage. I've been stuck on this issue for awhile, and I'd appreciate any advice.</div>
<div><br></div><div>-Pris</div>