[Talk-ee] Administrative division
Jaak Laineste
jaak at nutiteq.com
Sun Sep 6 09:52:04 BST 2009
I think that you do not need relations for merging diffent borders, only to
solve 2000-node limit issue. We should just have shared nodes of borders.
My plan:
1. I have merged corine data with of the maaamet shoreline (taken from the
same admin info). It was manual work
2. I have to add villages, municipalities and maakond borders from maa-amet
to the data
3. convert it to using poly2shp . this solves 2000-node limit issues
4. Run Emilie's duplicate node merging script for the OSM, so all admin
levels + corine shoreline nodes should be merged
5. Upload result OSM
6. tag new shoreline properly
7. Remove old and less accurate data from osm (maakond borders, shoreline)
as duplicate. Some manual work.
I hope to find time for steps 2-5 at least. I found some small topology
errors in the polygons from merging, I run some tests to fix them.
One idea: could you update bulk_upload script, so it has detection feature
for duplicate nodes. It should take a way (area) to be uploaded with one
step, download existing data for the area, check whether some nodes are
already there in the same coordinates, and reuse the nodes. It would make
uploading significantly slower, but much safer.
/Jaak
> -----Original Message-----
> From: talk-ee-bounces at openstreetmap.org [mailto:talk-ee-
> bounces at openstreetmap.org] On Behalf Of Andre Grueneberg
> Sent: 6. september 2009. a. 11:18
> To: talk-ee at openstreetmap.org
> Subject: [Talk-ee] Administrative division
>
> 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)?
More information about the Talk-ee
mailing list