[OSM-dev] Advice sought on polygon-with-hole drawing

Robert (Jamie) Munro rjmunro at arjam.net
Fri Mar 14 00:42:16 GMT 2008

Hash: SHA1

Frederik Ramm wrote:
| Hi,
|    I'm currently working on a Perl re-implementation of Osmarender. It
| is already almost feature complete; I've made an early announcement on
| the tiles at home list:
| While the program generally aims to be 100% compatible to the XSLT
| implementation (using identical rule files), one thing I want to
| change is the way polygons with holes are drawn. I want to switch from
| the default evenodd rule (that relies on the directions of ways) to
| the nonzero rule, and use it like so (pseudo code, omitting all the
| filtering and layering stuff):

I think we should stick with the evenodd rule. It is not that difficult
for users when editing - colour on the right, it is neccesary for
coastlines, and there is nothing to gain by making it unneccesary. If
some renderers don't need the rule, it's going to be much harder to tell
people they are wrong when the draw things the wrong way round.

Robert (Jamie) Munro
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


More information about the dev mailing list