[OSM-talk] Re: [OSM-dev] MassGIS dataset

Christopher Schmidt crschmidt at crschmidt.net
Thu Jun 8 21:27:57 BST 2006


On Thu, Jun 08, 2006 at 08:02:23AM +0100, SteveC wrote:
> There's a slightly quicker route - someone could write a version of
> ox.rb to just print xml rather than create a big DOM (and escape any tag
> data).

A Python version of this looks like:
http://crschmidt.net/projects/openstreetmap/ox.py

The bottom shows how it would be used. (Although obviously with
completely ridiculous values :))

If someone can point me to the code that calls ox.rb, I can rewrite the
caller in Python too? Alternatively, someone can rewrite what I have in
ruby? 

Note that the major difference here is that instead of calling 'to_s' at
the end, you have to call finish(), which prints the final </osm>.

Are things like this helpful? Should they go to dev@ instead of talk@?

-- 
Christopher Schmidt
Web Developer




More information about the talk mailing list