[OSM-dev] Extracting info from XML open street map file

Paul Fox pgf at foxharp.boston.ma.us
Wed Feb 3 01:18:35 UTC 2016

mick wrote:
 > Using the Great Britain 'dump' from geofabrik I found 2.1 million
 > key/value pairs and filtered that down to ~9,000 unique keys, of
 > those I was interested in about 20, which required selecting about
 > 120 to cover the multitude of spelling and punctuation variations. 
 > From there I wrote a C program (I'm getting to old to get my head
 > around all these new-fangled object-oriented scripting languages)
 > to read the .osm file and write a osm2pgsql .style file.

i hope you knew about libreadosm before you started (whether you
decided to use it or not).  it let me get rid of an embarrassing
amount of spaghetti in my osm parsing code, and replace it with
something far more, well, un-pasta-like, i guess.

 paul fox, pgf at foxharp.boston.ma.us (arlington, ma, where it's 34.7 degrees)

More information about the dev mailing list