[OSM-dev] SAX XML parsing recommendations?

Nigel Magnay nigel.magnay at gmail.com
Mon Jul 10 21:59:17 BST 2006


Do you have the source (planet.osm.april.xml I guess?) that I can get at?
I've just adapted my existing parser to spit out SQL instead - might
be close to what you (and I!) want...


On 10/07/06, Nick Whitelegg <nick at hogweed.org> wrote:
> Hello everyone,
>
> Does anyone have any recommendations for reliable and (ideally) fast SAX xml
> parsers with an intuitive api? I need something to convert planet.osm into
> SQL but have run into the following problems:
>
> the PHP SAX parser: seems to be unreliable and runs out of memory easily
>
> REXML (Ruby): seems to work, but takes a long time (27 hours to get the UK out
> of the April planet.osm. Oddly for a SAX parser, it took considerably longer
> to get the whole UK out compared to a small tile of 0.1 by 0.1 degrees - this
> suggests high usage of memory though my script uses as little as possible)
>
> Ideally it would be in php, ruby, c++ but I'm willing to try anything....
>
> Nick
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>




More information about the dev mailing list