[Patch v1] splitter: improve splitting with polygon file

Hi all, as Andrzej pointed out (1) splitter r428 and older have a problem with the --polygon-file option, the tiles written by splitter can contain too much data outside of the polygon which later crashes mkgmap. The attached patch should fix this without causing much changes in other use cases. In general the resulting tiles should fit better into the given polygon now, but of course I can't test all special cases. Please try the binary from here with your data when you use polygon(s) with either the --polygon-file or the --polygon-desc-file option: http://files.mkgmap.org.uk/download/293/splitter.jar @Andrzej: Please try with the default resolution 13. When you use 14 instead of 13 you have 4 times more grid elements and therefore more values to store and many more cases to test, with 16 it is 4*4*4 = 64 times more. I saw good results with 13, res. 16 nearly kills my 8 GB machine. I think you only need a higher resolution when the data contains extremely dense area, means a single grid element contains much more than the desired max-nodes nodes. ciao, Gerd (1) http://gis.19327.n5.nabble.com/problem-with-splitter-and-bounding-polygon-tt...

Hi Gerd, I confirm it works - no more big tiles, when splitting my test example. I usually set resolution 15-16 bit, mostly because I expect more even tile sizes. Now I have compared with 13 bit and split is not much worst but task takes much less time. Maybe I will switch to lower resolution. -- Thanks, Andrzej

Can you add option --handle-element-version=keep in the latest build? Greg On Wed, Mar 9, 2016 at 3:32 PM, Andrzej Popowski <popej@poczta.onet.pl> wrote:
Hi Gerd,
I confirm it works - no more big tiles, when splitting my test example.
I usually set resolution 15-16 bit, mostly because I expect more even tile sizes. Now I have compared with 13 bit and split is not much worst but task takes much less time. Maybe I will switch to lower resolution.
-- Thanks, Andrzej _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Greg, I'll commit this patch and the splitter_polygon_overlap_v1.patch next monday if I hear no complains. Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> Gesendet: Donnerstag, 10. März 2016 00:06 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] [Patch v1] splitter: improve splitting with polygon file Can you add option --handle-element-version=keep in the latest build? Greg On Wed, Mar 9, 2016 at 3:32 PM, Andrzej Popowski <popej@poczta.onet.pl<mailto:popej@poczta.onet.pl>> wrote: Hi Gerd, I confirm it works - no more big tiles, when splitting my test example. I usually set resolution 15-16 bit, mostly because I expect more even tile sizes. Now I have compared with 13 bit and split is not much worst but task takes much less time. Maybe I will switch to lower resolution. -- Thanks, Andrzej _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Andrzej Popowski
-
Gerd Petermann
-
greg crago