[OSM-dev] Ways on the new renderer... maybe usable after all!
nick at hogweed.org
nick at hogweed.org
Thu Jun 29 23:09:51 BST 2006
Hello Steve (and all on dev),
Just occurred to me tonight that when I discounted rendering ways with the
new renderer due to speed issues with the SQL, I was using my original PHP
code. I realised I hadn't tried it in Ruby... up until tonight.
So I've tweaked renderer.rb to fetch ways and apply way tags to the
constituent segments. While there is a slight slowdown, it's not too bad. For
instance, the renderer will render the way-rich tile with bbox
-0.75,51.02,-0.7,51.07 in 2.6 seconds if ways aren't fetched from the
database, against 3.7 if ways are fetched and rendered. Other bboxes give
similar time ratios, typically 3:4 no ways:ways.
Even though there's a slight speed hit, I'm wondering whether we should use my
latest version (with ways enabled) as practically everyone is creating and
tagging ways rather than segments now so the rendered map will be very much
more full-featured with roads and other ways rendered correctly.
Steve - the new version of the script is
at /var/www/nick/ruby/renderer.rb.WAYS when you have a chance to test :-)
Have also implemented Tom's IE fix in index.rhtml.
Nick
More information about the dev
mailing list