Sorry! <div><br></div><div>I totally forgot I had already asked this :)<div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://pastebin.com/GjtgqzkP">http://pastebin.com/GjtgqzkP</a> - osmium handler header</div>
<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://pastebin.com/75JUT824">http://pastebin.com/75JUT824</a> - osmium handler source</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://pastebin.com/bSpGj0Ez">http://pastebin.com/bSpGj0Ez</a> - main.cpp</div>
<div><br></div><div>It should be possible to just run this on any map file as long as you set the bounding box correctly in the handler source file. It takes a single osm.pbf file, adds tag data, and outputs 4 quads from the original. It seems to work find on some smaller data sets. On larger files, I get the corrupted output I mentioned previously... </div>
<div><br></div><div>Regards,</div><div><br></div><div>Pris</div><div><br><br><div class="gmail_quote">On Wed, Sep 21, 2011 at 2:47 AM, Jochen Topf <span dir="ltr"><<a href="mailto:jochen@remote.org">jochen@remote.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi!<br>
<br>
You already asked this on Sep 1, and I told you then that we might be able to<br>
help you if you post your code. We are not magicians you know!<br>
<br>
Jochen<br>
<br>
On Wed, Sep 21, 2011 at 12:57:15AM -0400, Pris Matic wrote:<br>
> Date: Wed, 21 Sep 2011 00:57:15 -0400<br>
> From: Pris Matic <<a href="mailto:prismatic.project@gmail.com">prismatic.project@gmail.com</a>><br>
> To: <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
> Subject: [OSM-dev] Osmium - "Corruption" when writing PBF<br>
<div><div></div><div class="h5">><br>
> Hi all,<br>
><br>
> I'm trying to use Osmium to read in OSM data from *.osm.pbf files, add<br>
> certain tag data and then write it out again to *.osm.pbf. I'm able to do<br>
> this with smaller files, (city level), but when I try to do state/provincial<br>
> level I run into 'corruption', where the tag data becomes completely mixed<br>
> up and unusable. It's a strange problem -- the tag keys and values are<br>
> 'preserved', but they are all mixed, seemingly at random.<br>
><br>
> Here is an example:<br>
><br>
> way:<br>
> id=7948229<br>
> version=1<br>
> uid=5168<br>
> user=|43.637614,-79.424110|<br>
> changeset=505735<br>
> timestamp=2007-09-23T19:11:20Z<br>
> tags:<br>
> k=|43.208074,-80.002507| v=|Book Road|<br>
> k=|43.402130| v=|43.191320,-79.935827|<br>
> k=|43.398032,-79.793599| v=|43.191382,-79.935896|<br>
> k=|43.398144,-79.792577| v=|43.191420,-79.936025|<br>
> k=|43.398410,-79.791691| v=|43.191414,-79.936282|<br>
> k=|43.670969,-79.295439| v=|-79.936007|<br>
> k=|43.670595,-79.295294| v=|43.191384|<br>
> node_count=4<br>
> nodes:<br>
> ref=59222301<br>
> ref=59222588<br>
> ref=59222589<br>
> ref=59222590<br>
><br>
> I'm saving node geometry data for certain ways. Here's an example of what<br>
> the key/value pairs look like when they are correct:<br>
><br>
> way:<br>
> id=75168646<br>
> version=1<br>
> uid=5640<br>
> user=|MikeyCarter|<br>
> changeset=5631822<br>
> timestamp=2010-08-29T23:21:59Z<br>
> tags:<br>
> k=|my_startaddr| v=|724|<br>
> k=|my_street| v=|City Road|<br>
> k=|0| v=|48.354900,-89.284862|<br>
> k=|1| v=|48.356371,-89.279541|<br>
> k=|2| v=|48.356387,-89.279429|<br>
> k=|my_endaddr| v=|700|<br>
> k=|3| v=|48.356431,-89.277626|<br>
> k=|avg_lon| v=|-89.280365|<br>
> k=|avg_lat| v=|48.356022|<br>
> node_count=4<br>
> nodes:<br>
> ref=886971214<br>
> ref=887071818<br>
> ref=886990640<br>
> ref=887031646<br>
><br>
> However, at some point in the process, they will turn 'random' and become<br>
> garbage. I've been stuck on this issue for awhile, and I'd appreciate any<br>
> advice.<br>
><br>
> -Pris<br>
<br>
</div></div>> _______________________________________________<br>
> dev mailing list<br>
> <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
> <a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.org/listinfo/dev</a><br>
<font color="#888888"><br>
<br>
--<br>
Jochen Topf <a href="mailto:jochen@remote.org">jochen@remote.org</a> <a href="http://www.remote.org/jochen/" target="_blank">http://www.remote.org/jochen/</a> <a href="tel:%2B49-721-388298" value="+49721388298">+49-721-388298</a><br>
<br>
</font></blockquote></div><br></div></div></div>