[PATCH v1] add close-gaps option to generate-sea

With all the excitement due to mp recently, I had completely forgotten about this little addition to the sea generation code I did a while back. It adds a new generate-sea option called close-gaps which takes a distance (in metres). Gaps in the coastline less than this distance, will be closed with a straight line. Not yet proven so please test. Typical usage: --generate-sea=polygons,no-sea-sectors,close-gaps=1000 Mark

I don't understand why we still need 0x4b polygon in case of using --generate-sea=polygons if we have a polygons for land and one for see. Isn't this enough? The problem is that 0x4b behaves a bit strange, so I would prefer to neither map sea, nor land to it as in that case flooding or land over sea may happen. I think some people simply replaced 0x4b by other polygon types. Maybe we would have less problems if when polygons is used, no 0x4b background polygon were generated. On 19.01.2010 19:50, Mark Burton wrote:
With all the excitement due to mp recently, I had completely forgotten about this little addition to the sea generation code I did a while back. It adds a new generate-sea option called close-gaps which takes a distance (in metres). Gaps in the coastline less than this distance, will be closed with a straight line. Not yet proven so please test.
Typical usage: --generate-sea=polygons,no-sea-sectors,close-gaps=1000
Mark
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

I generally have nearly no gaps when using =polygons. The gaps I see are more that land is inside the see (but not background inside see). Patch did not seem to help. On 19.01.2010 19:50, Mark Burton wrote:
With all the excitement due to mp recently, I had completely forgotten about this little addition to the sea generation code I did a while back. It adds a new generate-sea option called close-gaps which takes a distance (in metres). Gaps in the coastline less than this distance, will be closed with a straight line. Not yet proven so please test.
Typical usage: --generate-sea=polygons,no-sea-sectors,close-gaps=1000
Mark
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (2)
-
Felix Hartmann
-
Mark Burton