diff gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java @ 459:9c2767fcb388

Added the possibility to enter a Polygon represented by an WKT into the Workflow of the HorizontalCrossSections gnv-artifacts/trunk@513 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 08 Jan 2010 10:01:35 +0000
parents 8975de9d7483
children 3ddc22aab764
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java	Wed Jan 06 10:09:51 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java	Fri Jan 08 10:01:35 2010 +0000
@@ -19,6 +19,7 @@
 import de.intevation.gnv.chart.Chart;
 import de.intevation.gnv.chart.ChartLabels;
 import de.intevation.gnv.geobackend.base.Result;
+import de.intevation.gnv.state.InputData;
 import de.intevation.gnv.state.exception.StateException;
 import de.intevation.gnv.state.timeseries.TimeSeriesOutputState;
 import de.intevation.gnv.statistics.Statistics;
@@ -92,6 +93,14 @@
             purifyChart(chart, uuid);
         }
         */
+        
+        InputData meshPolygon = inputData.get("mesh_polygon");
+        String meshPolygonWkt = null;
+        if (meshPolygon != null){
+            meshPolygonWkt = meshPolygon.getValue();
+            
+        }
+        log.debug("Used Polygon: "+meshPolygonWkt);
 
         return chart;
     }

http://dive4elements.wald.intevation.org