[OSM-dev] SAX XML parsing recommendations?
nick at hogweed.org
Mon Jul 10 22:13:35 BST 2006
On Monday 10 Jul 2006 21:57, Immanuel Scholz wrote:
> > REXML (Ruby): seems to work, but takes a long time (27 hours to get the
> > UK out of the April planet.osm.
> Yiik! I use REXML for little-osm (in
> svn.openstreetmap.org/utils/little-osm) and it "only" takes 6 MB of memory
> and take about 2 hours to read the april's planet.osm (it cannot read the
> newest, since it contain broken ways).
I am doing lots of 'if' tests, to only pull out nodes/segments/ways within
bounding box, that could slow it down. Maybe it would be better to dump the
lot then filter at the sql level.
On the other hand, I'm new to ruby so maybe my code could be improved (though
it was based on little-osm); I'll probably put the code in svn at some point
More information about the dev