The referred patch is much too old to be used now.
I have created a new patch. Please test it and if it finds enough supporters on the list I will commit it.

WanMil

Charlie Ferrero<charlie<at>  cferrero.net>  writes:


On 22/02/2011 23:50, WanMil wrote:
Hi Bill,

which patch do you mean? Can you give a link to it?

WanMil

This might be what he's referring to:
http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2010q1/007920.html



Yes, that looks like the one, although in the thread referred to, I think that
'--generate-coastline' should read '--generate-sea'.

I have no experience of compiling Windows programs from source code so cannot
try the patch myself.  Are there any archived builds that contain this patch I
could try?.

Bill.

Index: src/uk/me/parabola/mkgmap/reader/osm/SeaGenerator.java
===================================================================
--- src/uk/me/parabola/mkgmap/reader/osm/SeaGenerator.java	(revision 1860)
+++ src/uk/me/parabola/mkgmap/reader/osm/SeaGenerator.java	(working copy)
@@ -270,6 +270,18 @@
 			log.info("Shorelines from extra file:", shoreline.size());
 		}
 
+		if (generateSeaUsingMP == false) {
+			// create a copy of the natural=coastline ways so that a line can be 
+			// drawn for the coastline
+			for (Way way : shoreline) {
+				Way coastWay = new Way(FakeIdGenerator.makeFakeId(), new ArrayList<Coord>(way.getPoints()));
+				coastWay.addTag("natural", "coastline");
+				// use this way only for the line style
+				coastWay.addTag(MultiPolygonRelation.STYLE_FILTER_TAG, MultiPolygonRelation.STYLE_FILTER_LINE);
+				saver.addWay(coastWay);
+			}
+		}
+		
 		int closedS = 0;
 		int unclosedS = 0;
 		for (Way w : shoreline) {
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to