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

Tom Carden tom at tom-carden.co.uk
Fri Jun 9 09:41:39 BST 2006


On 08/06/06, Christopher Schmidt <crschmidt at crschmidt.net> wrote:
> 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@?
>

Yes, and yes :)

Best,

Tom.




More information about the dev mailing list