[OSM-dev] Order of closed ways?
Till Harbaum / Lists
lists at harbaum.org
Thu Sep 11 21:10:52 BST 2008
Hi,
my mobile osm editor is advancing and i can edit real life data. Now i am running into the
problem that there are polygons lying on top of each other. E.g. there's a baseball field
close and it has several fields/polygons representing the whole field or e.g. just the bases.
Are these ordered in a certain way? E.g. is a polygon (or closed way to be precise) completely
being inside another one stored before or after this other polygon in a .osm file? Or is there no given order
at all? I need to know this to find a way to select them. E.g. if the embedded polygon is being
drawn first, then clicking it will select the "outer" polygon which has been drawn later and is thus
"on top".
One solution i am thinking about is to reorder polygons when they are selected. The selected one
then gets pushed to the bottom. That way repeated clicks should result in cycling through all
polygons.
Any thoughts?
Till
More information about the dev
mailing list