<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Henning,<br><br>don't worry, splitter already contains a lot of code that is only needed for the handling of overlapping<br>tiles. <br>I am not sure if I got it right what you mean in your example.<br>Would it be okay to calculate the tiles for Germany and write them,<br>and in a final pass find all tiles which overlap the polygon for Hessen <br>and copy those with the mapids for Hessen?<br>Or could splitter just create a templates.Hessen.args containing<br>something like<br>mapname: 10000001 <br>input-file: 110000092.o5m<br>mapname: 10000002 <br>input-file: 110000093.o5m<br>mapname: 10000003 <br>input-file: 110000094.o5m<br>mapname: 10000004 <br>input-file: 110000098.o5m<br>mapname: 10000005 <br>input-file: 110000112.o5m<br><br>This would safe some GB disk IO.<br><br>Gerd<br><br><br><div>> Date: Sun, 11 May 2014 11:15:29 +0200<br>> From: osm@aighes.de<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] splitter removes multipolygon-tags<br>> <br>> -----BEGIN PGP SIGNED MESSAGE-----<br>> Hash: SHA1<br>> <br>> Hi Gerd,<br>> <br>> the flexibility is, that I actually can just add new areas to my<br>> areas.list and don't have to care about anything. If mkgmap throws out<br>> a warning about too many nodes in a tile, I let splitter create a new<br>> areas.list for the region and I can continue.<br>> <br>> In the new workflow I then have to adjust the script, which copies the<br>> multiple used tiles.<br>> <br>> It would be very helpful, if splitter can do the copying of tiles.<br>> <br>> Splitter detects overlapping areas in areas.list and handles these<br>> regions as a own polygon and is writing tiles for each map, which<br>> touches the overlapping area.<br>> <br>> So for example, if a split a map of Hessen (10000000) and a map of<br>> Germany (11000000), splitter will use a polygon of Germany with a hole<br>> at the place where Hessen-poly-file has a coverage and Hessen-polygon.<br>> <br>> So the resulting areas.list could looks like:<br>> <br>> 11000001;10000001: ....<br>> 11000002: ....<br>> <br>> So splitter is able to write the data of a tile in Hessen to the map<br>> of Hessen and to the map of Germany.<br>> <br>> Maybe such a system is a better and more robust solution then handling<br>> overlapping tiles. But I don't want to made you code that only for me.<br>> <br>> Henning<br>> <br>> <br>> Am 11.05.2014 10:49, schrieb Gerd Petermann:<br>> > Hi Henning,<br>> > <br>> > can you describe what flexibility you are loosing? Could splitter<br>> > be improved ?<br>> > <br>> > Gerd<br>> > <br>> >> Date: Sun, 11 May 2014 10:46:31 +0200 From: osm@aighes.de To:<br>> >> mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] splitter<br>> >> removes multipolygon-tags<br>> >> <br>> > Hi Gerd, this is, what I'm thinking about to do, but on the other<br>> > hand I'm loosing the actual flexibility. I think I will give it a<br>> > try and will see, how it works.<br>> > <br>> > Henning<br>> > <br>> > Am 11.05.2014 08:24, schrieb Gerd Petermann:<br>> >>>> Hi Henning,<br>> >>>> <br>> >>>> If you don't mind to have a map of e.g. Germany which also <br>> >>>> contains small parts of other areas, I think the fastest way<br>> >>>> is this:<br>> >>>> <br>> >>>> combine your *.poly files so that you have one henning.poly<br>> >>>> that contains the areas for which you want to create maps.<br>> >>>> Execute splitter with --polygon-file=henning.poly<br>> >>>> --max-nodes=... --stop-after=split --write-kml=splitter.kml<br>> >>>> planet.o5m<br>> >>>> <br>> >>>> If you have an actual densitites_out.txt for planet, you can<br>> >>>> also copy it to the working directory and rename it to<br>> >>>> densities.txt. Splitter will use this file instead of reading<br>> >>>> the planet.o5m, and the program finishes within seconds.<br>> >>>> <br>> >>>> As a result you have a kml file and an areas.list. The next<br>> >>>> step would be to re-combine the areas so that they build the<br>> >>>> maps that you want to create.<br>> >>>> <br>> >>>> If you need the same tile for two maps, but with different<br>> >>>> mapids, I suggest to copy the output file of splitter. Maybe<br>> >>>> a small script is needed to perform this step.<br>> >>>> <br>> >>>> Gerd<br>> >>>> <br>> >>>> <br>> >>>> <br>> >>>> <br>> >>>>> Date: Sat, 10 May 2014 20:31:51 +0200 From: osm@aighes.de<br>> >>>>> To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re:<br>> >>>>> [mkgmap-dev] splitter removes multipolygon-tags<br>> >>>>> <br>> >>>>> Hi Gerd, ok, so my next step will be to optimize my tiles.<br>> >>>>> <br>> >>>>> Henning<br>> >>>>> <br>> >>>>> Am 10.05.2014 17:27, schrieb GerdP:<br>> >>>>>> Hi Henning,<br>> >>>>>> <br>> >>>>>> I did not try what happens when 5 tiles overlap the same <br>> >>>>>> point, but it should work. As I said, you should try to<br>> >>>>>> avoid that, as each tile will require the complete<br>> >>>>>> reading of the input file.<br>> >>>>>> <br>> >>>>>> Gerd<br>> >>>>> <br>> >>>>> _______________________________________________ mkgmap-dev <br>> >>>>> mailing list mkgmap-dev@lists.mkgmap.org.uk <br>> >>>>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>> >>>> <br>> >>>> <br>> >>>> <br>> >>>> <br>> >>>> _______________________________________________ mkgmap-dev<br>> >>>> mailing list mkgmap-dev@lists.mkgmap.org.uk <br>> >>>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>> >>>> <br>> >> <br>> >> _______________________________________________ mkgmap-dev<br>> >> mailing list mkgmap-dev@lists.mkgmap.org.uk <br>> >> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>> > <br>> > <br>> > <br>> > <br>> > _______________________________________________ mkgmap-dev mailing<br>> > list mkgmap-dev@lists.mkgmap.org.uk <br>> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>> > <br>> -----BEGIN PGP SIGNATURE-----<br>> Version: GnuPG v1.4.14 (GNU/Linux)<br>> <br>> iQEcBAEBAgAGBQJTbz+xAAoJEKXggIeC16WPKt8H/2HpxreZGM/qZTgx54DFTLis<br>> QvVmsIy2reNNbDa/FAY5Kf/983chPbJ0jyu72bkIqcdOQ2HRIxRxlTwbEGHLYQsB<br>> ZoZBJkB/8OhrcRb6fEfdqQiEtZdptliPD3VQ08WwqxK5h8QDj/raJTHHPtzpC+7I<br>> pmFbkU7Ci4KdFTH6iazGLQWJ6r3cSHkddrL988fi86CYaLWxv/Gtj4DXnjASWKGa<br>> jc1tO9c4yyAn+/hK9UPyCqrJgvgunSlmTDLX1acC/DZKXeQXU8sPbKz16gr0Vj4o<br>> GBgUM3JI5LelCxD4Sq8SyD9+3aXQ+2ykHLyyO6rgExwrmmP4aJaQBLJUu/7AE58=<br>> =r5q6<br>> -----END PGP SIGNATURE-----<br>> <br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>