tag:blogger.com,1999:blog-10499320.post5433273975758380031..comments2022-03-30T12:23:55.673+05:30Comments on Blog.: Extract POIs from OSM PBF ("Protocolbuffer Binary Format") dumps with python6tophttp://www.blogger.com/profile/00377969304877176051noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-10499320.post-9541618777793084552012-07-10T01:54:33.589+05:302012-07-10T01:54:33.589+05:30Hi
I use your code to see if it works on the map...Hi<br /><br /><br />I use your code to see if it works on the map of philadelphia. However, it always return the following error message:<br /><br />Traceback (most recent call last):<br /> File "", line 1, in <br /> tags = foo.return_tags(refresh=True)<br /> File "osmnodepbf.py", line 216, in return_tags<br /> self.parse()<br /> File "osmnodepbf.py", line 113, in parse<br /> self.processDense(pg.dense,tag)<br /> File "osmnodepbf.py", line 199, in processDense<br /> self.tags[node["sky"]] = [node["svl"]]<br />KeyError: 'svl'<br /><br /><br /><br />I tried it on some other maps and it keep prompting the same errorTaohttps://www.blogger.com/profile/06215400146675828136noreply@blogger.comtag:blogger.com,1999:blog-10499320.post-85755023685867329562011-02-11T22:41:09.352+05:302011-02-11T22:41:09.352+05:30Thanks for the mention.
I think I need to put out...Thanks for the mention.<br /><br />I think I need to put out a warning on the raw code about gobbling memory. The main reason I created the code was to do exactly as you have done - customise it to extract data you are interested in.Chris Hillhttps://www.blogger.com/profile/02951528269028953589noreply@blogger.com