[OSM-dev] Proposed database improvement
Nick Whitelegg
Nick.Whitelegg at solent.ac.uk
Sat Sep 2 11:00:34 BST 2006
Sent by: dev-bounces at openstreetmap.org
>< Dee> can you back that out to see if it does?
>< SteveC> Dee, what, 1303?
>< Dee> yeah
>< Dee> just that change to renderer.rb
>< SteveC> Dee, ok :-/
>< SteveC> Dee, changed have a test
>< SteveC> Dee
>< SteveC> [Fri Sep 01 22:46:35 2006] [error] mod_ruby: error in ruby
>< SteveC> [Fri Sep 01 22:46:35 2006] [error] mod_ruby:
>/var/www/tile/ruby/renderer.rb:66:in `initialize': undefined method
>`to_i' for [4139057]:Array (NoMethodError)
>< SteveC> [Fri Sep 01 22:46:35 2006] [error] mod_ruby: from
>/var/www/tile/ruby/renderer.rb:65:in `initialize'
>< SteveC> [Fri Sep 01 22:46:35 2006] [error] mod_ruby: from
>/var/www/tile/ruby/renderer.rb:64:in `initialize'
>< SteveC> [Fri Sep 01 22:46:35 2006] [error] mod_ruby: from
>/var/www/tile/ruby/renderer.rb:362
>< SteveC> [Fri Sep 01 22:46:35 2006] [error] mod_ruby: from
>/usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler'
>> way.segs.each do |segid|
>> @tagged_segments[segid.id.to_i].style = @rules.get_style(way.tags)
>> unless way.tags.nil? or @tagged_segments[segid.id.to_i].nil?
>> end
So the variable segid is an array? Not sure why that is without looking
over the code. I thought way.segs was an array of strings (or possibly
integers), not an array of arrays. Odd that it worked before the recent
database improvement? Has the definition of way.segs changed recently?
Won't have time to look at this today (Sat), will have to wait till
tomorrow (Sun) - so if anyone can fix in the meantime feel free to do so.
Nick
More information about the dev
mailing list