[OSM-dev] Proposed database improvement
nick at hogweed.org
Thu Aug 31 22:01:51 BST 2006
On Thursday 31 Aug 2006 16:40, SteveC wrote:
> it might be the small change I made to the renderer as it was crashing,
> see last changset... nick? (W)?
I think this (revision 1303) is wrong.
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?
way.segs is by my reading of the code an array of segment ids. Thus the
variable "segid" is a number, not an object with a field "id". I think that's
why ways are not rendering properly, though TBH I'd have thought that would
raise an error and nothing would come back at all...
More information about the dev