<div dir="ltr">Performance of map on device is drastically improved you you kick out those tiny polygons. Especially in cities where people have detail mapped all buildings. If you don't have building=yes or building=* in your style - then you can likely live with the filter disabled (not sure how much bigger the map data gets).</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 28 Jan 2020 at 21:41, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Mike,<br>
<br>
"sea" is build from shapes (= polygons).<br>
The size filter is not explained in the style manual, but in the options --min-size-polygon and --polygon-size-limits.<br>
Unfortunately the filter works a bit unpredictable at low resolutions, so in my eyes it is a good idea to disable.<br>
I've never fully understood the purpose of this filter. I think it should improve performance, but it seems to decrease quality even more.<br>
<br>
You may play with --min-size-polygon=0 to see what happens when the filter is disabled.<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><br>
Gesendet: Dienstag, 28. Januar 2020 21:21<br>
An: 'Gerd Petermann'; 'Development list for mkgmap'<br>
Betreff: RE: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Brilliant! A big improvement! It still doesn't exactly match the land<br>
polygon, but that doesn't matter for my purposes. I suggest changing the to<br>
do list so it says use the same algorithm for shapes, lines and sea. I also<br>
suggest adding a sentence to the style manual in the explanation of<br>
mkgmap:skipSizeFilter - the description doesn't explain the purpose or what<br>
the effect is of passing the size filter.<br>
<br>
Thanks for your assistance,<br>
Mike<br>
<br>
-----Original Message-----<br>
From: Gerd Petermann [mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>]<br>
Sent: 28 January 2020 19:03<br>
To: Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><br>
Subject: AW: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Hi Mike,<br>
<br>
some small rather small sea polygons are filter by the size filter.<br>
Change the statememnt for sea polygons to this:<br>
natural=sea {add mkgmap:skipSizeFilter=true; name '${name}'} [0x32<br>
resolution 14]<br>
<br>
See also the corresponding rule in the default style:<br>
natural=sea {add mkgmap:skipSizeFilter=true; set mkgmap:drawLevel=2} [0x32<br>
resolution 10]<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><br>
Gesendet: Dienstag, 28. Januar 2020 19:39<br>
An: 'Gerd Petermann'<br>
Betreff: RE: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Thanks Gerd. I has been considering trying to find the problem myself, but<br>
I'm not familiar with the writing sections of code, and they are complicated<br>
to get to grips with.<br>
<br>
Cheers,<br>
Mike<br>
<br>
-----Original Message-----<br>
From: Gerd Petermann [mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>]<br>
Sent: 28 January 2020 16:16<br>
To: Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>>; 'Development list for mkgmap'<br>
<<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><br>
Subject: AW: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Hi Mike,<br>
<br>
okay, I'll have a closer look now.<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><br>
Gesendet: Dienstag, 28. Januar 2020 16:51<br>
An: 'Gerd Petermann'; 'Development list for mkgmap'<br>
Betreff: RE: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Hi Gerd, the problem I have is not the one in the to do list. If I add the<br>
polygon fill for natural=coastline, this does produce a different outline<br>
than the one for the line, but both are reasonable approximations and<br>
neither contains unexpected artefacts. The sea generation approximation is<br>
wildly different and contains unwanted artefacts. Please see the attached<br>
image that contains land in brown, sea in blue and an area of white that is<br>
not filled by either. I believe this is a bug in the sea generation code. I<br>
would expect sea generation to use the same algorithm as for filled areas so<br>
that holes are not left. I'm not too worried about the line being slightly<br>
different.<br>
<br>
Regards,<br>
Mike<br>
<br>
-----Original Message-----<br>
From: Gerd Petermann [mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>]<br>
Sent: 28 January 2020 14:59<br>
To: Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>>; 'Development list for mkgmap'<br>
<<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><br>
Subject: AW: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Hi Mike,<br>
<br>
See last point in the todo list: <a href="http://www.mkgmap.org.uk/dev/todo" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/dev/todo</a><br>
I think what you see is exactly the result of the two different algos.<br>
I can only suggest to omit the rendering of polygon outlines at resolutions<br>
below 24.<br>
<br>
________________________________________<br>
Von: Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><br>
Gesendet: Dienstag, 28. Januar 2020 15:23<br>
An: 'Gerd Petermann'; 'Development list for mkgmap'<br>
Betreff: RE: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Hi Gerd, I have produced a small sample which demonstrates the problem. It<br>
contains one very small island. I have cut down the style to a bare minimum<br>
with just two resolutions: 24 and 14 containing just sea and a coastline<br>
outline. At resolution 24 the sea and coastline are coincident. At 14, they<br>
are wildly different. The coastline at low resolution includes a spur which<br>
is a complication. The ideal sea boundary would be the same as the<br>
coastline, but with the spur removed (or perhaps the spur should not be on<br>
the coastline either). I have included the style, typ file, command line in<br>
a batch file and osm data in the attached zip. Please let me know if you<br>
need anything else.<br>
<br>
Cheers,<br>
Mike<br>
<br>
-----Original Message-----<br>
From: Gerd Petermann [mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>]<br>
Sent: 28 January 2020 08:26<br>
To: Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>>; 'Development list for mkgmap'<br>
<<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><br>
Subject: AW: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Hi Mike,<br>
<br>
I can try to find out what's wrong but I would need a lot more details about<br>
your map creation process. Could be an error in mkgmap or in the OSM data or<br>
in the --levels option or in the --min-size-polygon option or<br>
--polygon-size-limits or ...<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Mike<br>
Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><br>
Gesendet: Montag, 27. Januar 2020 19:07<br>
An: 'Development list for mkgmap'<br>
Betreff: Re: [mkgmap-dev] Squaring off of land outlines<br>
<br>
HI Gerd, I don't have an old map, but this has been happening for some time<br>
- I am not sure whether it has always done this, but thought it would be<br>
worth trying a few old versions to see whether it is bug that got<br>
introduced, or is one that has always been there. It looks similar to the<br>
problem reported on Feb 18 2017 with "Terraced/pixellated coastline with<br>
--precomp-sea" as the title. I am not using --precomp-sea, but the problem I<br>
am getting is also in the sea outline. NopMap indicated that his problem was<br>
fixed in r3819, however, I have downloaded the source to that version and<br>
compiled it, and it exhibits the same problem for me.<br>
<br>
Regards,<br>
Mike<br>
<br>
-----Original Message-----<br>
From: Gerd Petermann [mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>]<br>
Sent: 27 January 2020 08:36<br>
To: 'Development list for mkgmap' <<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><br>
Subject: Re: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Hi Mike,<br>
<br>
I am not aware of a folder that keeps all older releases or an error that<br>
would be related to this.<br>
Are you sure that you didn't change mgkmap options like --levels or the<br>
style or the typ file?<br>
Do you still have a map which looks better? In that case you should find the<br>
string mkgmap in the img file, e.g. "mkgmap-r4431"<br>
<br>
Gerd<br>
<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Mike<br>
Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><br>
Gesendet: Montag, 27. Januar 2020 01:43<br>
An: 'Development list for mkgmap'<br>
Betreff: [mkgmap-dev] Squaring off of land outlines<br>
<br>
Hello,<br>
<br>
I am getting squaring off of the outline between land and sea at low zoom<br>
levels (less than 16) - see attached BaseCamp images of Gran Canaria at<br>
resolution 16 and at resolution 14 displayed at the same size. Obviously<br>
some reduction in accuracy is expected at lower zoom level, but not these<br>
artefacts. I'm not sure when this started happening but believe it was some<br>
time ago. I can't seem to find the old releases to try previous versions,<br>
<a href="http://svn.mkgmap.org.uk/mkgmap/releases/" rel="noreferrer" target="_blank">http://svn.mkgmap.org.uk/mkgmap/releases/</a> just shows me an empty folder. Can<br>
you point me to the correct download folder that contains the previous jar<br>
files, and/or let me know if this is a known problem, and if so whether<br>
there is a workaround?<br>
<br>
Thanks,<br>
Mike<br>
<br>
<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br>
<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div>Schusterbergweg 32/8<br></div><div>6020 Innsbruck<br></div></div>Austria - Österreich</div></div></div></div>