[mkgmap] 01/04: Imported Upstream version 0.0.0+svn3393

Bas Couwenberg sebastic at xs4all.nl
Wed Jan 7 19:19:23 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch master
in repository mkgmap.

commit 8b58f0ded36341ae3312c09ab177d9f14c2ab5e1
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Jan 7 18:57:26 2015 +0100

    Imported Upstream version 0.0.0+svn3393
---
 resources/mkgmap-version.properties                |  4 +--
 .../parabola/mkgmap/reader/osm/SeaGenerator.java   | 42 +++++++++++++++-------
 2 files changed, 31 insertions(+), 15 deletions(-)

diff --git a/resources/mkgmap-version.properties b/resources/mkgmap-version.properties
index 494b950..ee9dcac 100644
--- a/resources/mkgmap-version.properties
+++ b/resources/mkgmap-version.properties
@@ -1,2 +1,2 @@
-svn.version: 3392
-build.timestamp: 2014-12-24T17:03:01+0000
+svn.version: 3393
+build.timestamp: 2015-01-06T10:40:50+0000
diff --git a/src/uk/me/parabola/mkgmap/reader/osm/SeaGenerator.java b/src/uk/me/parabola/mkgmap/reader/osm/SeaGenerator.java
index c27e221..eaec776 100644
--- a/src/uk/me/parabola/mkgmap/reader/osm/SeaGenerator.java
+++ b/src/uk/me/parabola/mkgmap/reader/osm/SeaGenerator.java
@@ -244,23 +244,14 @@ public class SeaGenerator extends OsmReadingHooksAdaptor {
 						fbThreshold = (int)Double.parseDouble(o.substring("fbthres=".length()));
 					else if("fbdebug".equals(o)) 
 						fbDebug = true;
+					else {
+						printOptionHelpMsg(precompSea != null, o);
+					}
 				}
 				else if(o.isEmpty())
 					continue;
 				else {
-					if(!"help".equals(o))
-						System.err.println("Unknown sea generation option '" + o + "'");
-					System.err.println("Known sea generation options are:");
-					System.err.println("  multipolygon        use a multipolygon (default)");
-					System.err.println("  polygons | no-mp    use polygons rather than a multipolygon");
-					System.err.println("  no-sea-sectors      disable use of \"sea sectors\"");
-					System.err.println("  extend-sea-sectors  extend coastline to reach border");
-					System.err.println("  land-tag=TAG=VAL    tag to use for land polygons (default natural=land)");
-					System.err.println("  close-gaps=NUM      close gaps in coastline that are less than this distance (metres)");
-					System.err.println("  floodblocker        enable the floodblocker (for multipolgon only)");
-					System.err.println("  fbgap=NUM           points closer to the coastline are ignored for flood blocking (default 40)");
-					System.err.println("  fbthres=NUM         min points contained in a polygon to be flood blocked (default 20)");
-					System.err.println("  fbratio=NUM         min ratio (points/area size) for flood blocking (default 0.5)");
+					printOptionHelpMsg(precompSea != null, o);
 				}
 			}
 			
@@ -292,6 +283,31 @@ public class SeaGenerator extends OsmReadingHooksAdaptor {
 		return generateSea;
 	}
 	
+	/**
+	 * Show valid generate-sea options
+	 * @param forPrecompSea  set to true if --precomp-sea is used 
+	 * @param o either "help" or an option that was not recognized
+	 */
+	void printOptionHelpMsg (boolean forPrecompSea, String o){
+		
+		if(!"help".equals(o))
+			System.err.println("Unknown sea generation option '" + o + "'");
+		
+		System.err.println("Known sea generation options " + (forPrecompSea ? "with" : "without") + " --precomp-sea  are:");
+		System.err.println("  multipolygon        use a multipolygon (default)");
+		System.err.println("  polygons | no-mp    use polygons rather than a multipolygon");
+		System.err.println("  land-tag=TAG=VAL    tag to use for land polygons (default natural=land)");
+		if (forPrecompSea)
+			return;
+		System.err.println("  no-sea-sectors      disable use of \"sea sectors\"");
+		System.err.println("  extend-sea-sectors  extend coastline to reach border");
+		System.err.println("  close-gaps=NUM      close gaps in coastline that are less than this distance (metres)");
+		System.err.println("  floodblocker        enable the floodblocker (for multipolgon only)");
+		System.err.println("  fbgap=NUM           points closer to the coastline are ignored for flood blocking (default 40)");
+		System.err.println("  fbthres=NUM         min points contained in a polygon to be flood blocked (default 20)");
+		System.err.println("  fbratio=NUM         min ratio (points/area size) for flood blocking (default 0.5)");
+		
+	}
     /**
      * Read the index from stream and populate the index grid. 
      * @param fileStream already opened stream

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mkgmap.git



More information about the Pkg-grass-devel mailing list