[OSM-dev] Relations, landuse, and gml2osm mess
Iván Sánchez Ortega
ivansanchez at escomposlinux.org
Sun Mar 30 02:36:36 BST 2008
I've been updating my gml2osm script during all day, feeding it with the Naga
City data, which is in the public domain. Re-read the "talk" list for more
info on that data.
You can download the resulting .osm file (can be opened in JOSM, etc) from
http://blackspark.homelinux.net/landuse2000.osm - please be kind with my
crappy *DSL upload bandwidth.
My problem is, I've converted a bunch of multipolygons from GML, defining the
land use. And:
- They are "areas with holes".
- Every area boundary overlaps every other.
Seeing that I'm duplicating the number of neccesary ways (and using every node
in two different, overlapping ways), my questions are:
Woudln't it make sense to use relations to build polygons for any kind of
area, thus reusing ways?
The ways should then be the edges of a graph, the graph nodes being nodes with
three or more ways diverting from then, and any areas would be the graph
(Using that model would even simplify by half some steps of rendering, such as
bezier-curve-hinting area boundaries)
If I use a relation of ways (making up a ring) as the outer (or inner) hull of
a multipolygon relation, will it work?
Iván Sánchez Ortega <ivansanchez at escomposlinux.org>
Proudly running Debian Linux with 2.6.24-1-amd64 kernel, KDE 3.5.9, and PHP
5.2.5-3 generating this signature.
Uptime: 03:11:12 up 5 days, 13:52, 2 users, load average: 0.92, 1.04, 0.89
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the dev