[Talk-ee] Administrative division
Andre Grueneberg
andre-osm at grueneberg.de
Sun Sep 6 09:17:56 BST 2009
Hi,
After I now found the Shape files with data from 01.06.2009 from
Maa-amet (English page doesn't show them), I thought it'd be cool to
have the whole administrative division in OSM.
So I started struggeling with a few bits:
All entities in the SHP are polygons. Having overlapping "borders"
looks ugly [I know, we already have a few examples thereof in
Viljandimaa]. I'd rather like some relations containing parts of the
borders. This will also allow different admin_levels to share the same
way.
So I started and tried doing the merging manually -- doesn't scale too
well with 4682 settlements. ;) Next step was to implement a hack that
splits the ways at nodes where borders join. This turned out to be more
tricky than anticipated, but after one night it works quite well.
After the bare minimum was done, I added some functionality to split
long ways (>2000 nodes) and to merge the relations that belong together.
In case someone wants to have a look at the results, I have put all the
stuff (as is, not a bit of beautifying) at
<http://andre.grueneberg.de/osm/>.
I am a bit reluctant to just import this piece. Maybe Jaak is interested
in importing a whole set of borders into his special version of the map?
It's just a few 100000 of nodes. ;)
My next target is to really have a merged output ... maybe it will
appear soon. :)
Andre
--
Warning! Virus [MS Windows] detected. Remove infestation (Y/Y)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/talk-ee/attachments/20090906/b21559bb/attachment.pgp>
More information about the Talk-ee
mailing list