[PATCH 5 of 6] issue1020: Cosmetics

Wald Commits scm-commit at wald.intevation.org
Thu Dec 5 15:38:47 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1386254153 -3600
# Node ID f603a53e45dca2378b97e986f056dadaae19da08
# Parent  7e5d4a0d9bad4b5e696ae446bdf7b10e8fa66b2e
issue1020: Cosmetics.

diff -r 7e5d4a0d9bad -r f603a53e45dc artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java	Thu Dec 05 15:35:04 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java	Thu Dec 05 15:35:53 2013 +0100
@@ -406,7 +406,7 @@
             successLines = GeometryUtils.writeShapefile(
                 shapeLines, lineType, collectionLines);
         }
-       if (successLines) {
+        if (successLines) {
             createMapfile(
                 artifact,
                 artifactDir,
@@ -420,6 +420,7 @@
                 MapfileGenerator.MS_LAYER_PREFIX + HWS_LINES,
                 FLOODMAP_HWS_LINES,2);
         }
+        else logger.warn("no lines written");
     }
 
 
@@ -918,8 +919,10 @@
     }
 
 
+    /** Gets the Waterlevel of chosen artifact as base for flooding. */
+    // Challenge equals WaterlevelSelectState#getLabel
     protected WQKms getWQKms(D4EArtifact flys, CallContext cc) {
-        String   wspString = flys.getDataAsString(WSP_ARTIFACT);
+        String wspString = flys.getDataAsString(WSP_ARTIFACT);
         if (wspString == null) {
             logger.debug("getWQKms(): wspString == null");
             return null;


More information about the Dive4elements-commits mailing list