[OSM-dev] Gisify relations

Frederik Ramm frederik at remote.org
Tue Jun 16 10:04:04 BST 2009


Hi,

Andreas Kalsch wrote:
> Conclusion: Make a 
> robot change all multipolygon relations to fit into the new model - so 
> the software built on top of OSM (starting with the Map renderers) 
> doesn't need to care any more of different representations.

I don't think the new model mandates proper ordering of elements. It may 
*suggest* it, but not require it. My take is that if you edit 
multipolygons you should try to order the elements properly but if you 
read the data you should not assume they are ordered. Because even if we 
ran a robot that ordered things, this still does not guarantee that 
everything is always correct.

Maybe a relatively fast algorithm can be devised that tries to process 
things as-is but if that fails (e.g. if there is a gap in a ring) then 
switches back to the more computationally expensive method.

Bye
Frederik





More information about the dev mailing list