[mkgmap-dev] Squaring off of land outlines
From Mike Baggaley mike at tvage.co.uk on Tue Jan 28 15:51:17 GMT 2020
Hi Gerd, the problem I have is not the one in the to do list. If I add the polygon fill for natural=coastline, this does produce a different outline than the one for the line, but both are reasonable approximations and neither contains unexpected artefacts. The sea generation approximation is wildly different and contains unwanted artefacts. Please see the attached image that contains land in brown, sea in blue and an area of white that is not filled by either. I believe this is a bug in the sea generation code. I would expect sea generation to use the same algorithm as for filled areas so that holes are not left. I'm not too worried about the line being slightly different. Regards, Mike -----Original Message----- From: Gerd Petermann [mailto:gpetermann_muenchen at hotmail.com] Sent: 28 January 2020 14:59 To: Mike Baggaley <mike at tvage.co.uk>; 'Development list for mkgmap' <mkgmap-dev at lists.mkgmap.org.uk> Subject: AW: [mkgmap-dev] Squaring off of land outlines Hi Mike, See last point in the todo list: http://www.mkgmap.org.uk/dev/todo I think what you see is exactly the result of the two different algos. I can only suggest to omit the rendering of polygon outlines at resolutions below 24. ________________________________________ Von: Mike Baggaley <mike at tvage.co.uk> Gesendet: Dienstag, 28. Januar 2020 15:23 An: 'Gerd Petermann'; 'Development list for mkgmap' Betreff: RE: [mkgmap-dev] Squaring off of land outlines Hi Gerd, I have produced a small sample which demonstrates the problem. It contains one very small island. I have cut down the style to a bare minimum with just two resolutions: 24 and 14 containing just sea and a coastline outline. At resolution 24 the sea and coastline are coincident. At 14, they are wildly different. The coastline at low resolution includes a spur which is a complication. The ideal sea boundary would be the same as the coastline, but with the spur removed (or perhaps the spur should not be on the coastline either). I have included the style, typ file, command line in a batch file and osm data in the attached zip. Please let me know if you need anything else. Cheers, Mike -----Original Message----- From: Gerd Petermann [mailto:gpetermann_muenchen at hotmail.com] Sent: 28 January 2020 08:26 To: Mike Baggaley <mike at tvage.co.uk>; 'Development list for mkgmap' <mkgmap-dev at lists.mkgmap.org.uk> Subject: AW: [mkgmap-dev] Squaring off of land outlines Hi Mike, I can try to find out what's wrong but I would need a lot more details about your map creation process. Could be an error in mkgmap or in the OSM data or in the --levels option or in the --min-size-polygon option or --polygon-size-limits or ... Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Mike Baggaley <mike at tvage.co.uk> Gesendet: Montag, 27. Januar 2020 19:07 An: 'Development list for mkgmap' Betreff: Re: [mkgmap-dev] Squaring off of land outlines HI Gerd, I don't have an old map, but this has been happening for some time - I am not sure whether it has always done this, but thought it would be worth trying a few old versions to see whether it is bug that got introduced, or is one that has always been there. It looks similar to the problem reported on Feb 18 2017 with "Terraced/pixellated coastline with --precomp-sea" as the title. I am not using --precomp-sea, but the problem I am getting is also in the sea outline. NopMap indicated that his problem was fixed in r3819, however, I have downloaded the source to that version and compiled it, and it exhibits the same problem for me. Regards, Mike -----Original Message----- From: Gerd Petermann [mailto:gpetermann_muenchen at hotmail.com] Sent: 27 January 2020 08:36 To: 'Development list for mkgmap' <mkgmap-dev at lists.mkgmap.org.uk> Subject: Re: [mkgmap-dev] Squaring off of land outlines Hi Mike, I am not aware of a folder that keeps all older releases or an error that would be related to this. Are you sure that you didn't change mgkmap options like --levels or the style or the typ file? Do you still have a map which looks better? In that case you should find the string mkgmap in the img file, e.g. "mkgmap-r4431" Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Mike Baggaley <mike at tvage.co.uk> Gesendet: Montag, 27. Januar 2020 01:43 An: 'Development list for mkgmap' Betreff: [mkgmap-dev] Squaring off of land outlines Hello, I am getting squaring off of the outline between land and sea at low zoom levels (less than 16) - see attached BaseCamp images of Gran Canaria at resolution 16 and at resolution 14 displayed at the same size. Obviously some reduction in accuracy is expected at lower zoom level, but not these artefacts. I'm not sure when this started happening but believe it was some time ago. I can't seem to find the old releases to try previous versions, http://svn.mkgmap.org.uk/mkgmap/releases/ just shows me an empty folder. Can you point me to the correct download folder that contains the previous jar files, and/or let me know if this is a known problem, and if so whether there is a workaround? Thanks, Mike _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- A non-text attachment was scrubbed... Name: landfill.jpg Type: image/jpeg Size: 143746 bytes Desc: not available URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20200128/d2d5966f/attachment-0001.jpg>
- Previous message: [mkgmap-dev] Squaring off of land outlines
- Next message: [mkgmap-dev] Squaring off of land outlines
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list