[OSM-talk] osmarenderer issues

Sven Grüner sven at schunterscouts.de
Sat May 31 12:46:53 BST 2008


Robert Vollmert schrieb:
> I believe angles >90 degrees are being rounded, which seems wrong for  
> most areas at least. Maybe start rounding at 150 degrees, if at all?  
> Probably even for roads, you'd put enough nodes in a bend to have each  
> angle above, say, 120 degrees.
> 
> Unfortunately, I can't find the spot in the osmarender source where  
> this is done.

The curving doesn't happen in Osmarender but is applied to the final 
SVG, that's why it's not possible to differentiate between streets, 
rivers and buildings, they're all just lines. The responsible script is 
lines2curves.pl:
http://trac.openstreetmap.org/browser/applications/rendering/tilesAtHome/lines2curves.pl#L421

Somewhere around that line the magic happens whether the angle is 90° or 
less. A while ago I tried to change that angle but was unsuccessful due 
to my lack of knowledge in Perl. I also emailed Barry Crabtree but 
wasn't able to understand his reply as well.

If anyone want's to investigate on this I'll be glad to forward those mails.

regards, Sven




More information about the talk mailing list