changeset 7646:f603a53e45dc

issue1020: Cosmetics.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 05 Dec 2013 15:35:53 +0100
parents 7e5d4a0d9bad
children 786ff139de5e
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;

http://dive4elements.wald.intevation.org