changeset 860:f5855350fc03

Set WSPLGEN specific 'type' attributes after digitizing new geometries. flys-client/trunk@2655 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 06 Sep 2011 17:35:43 +0000
parents 6b047887855b
children 65204f30877b
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java
diffstat 2 files changed, 22 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Sep 06 11:43:47 2011 +0000
+++ b/flys-client/ChangeLog	Tue Sep 06 17:35:43 2011 +0000
@@ -1,3 +1,9 @@
+2011-09-06  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java:
+	  Set WSPLGEN specific names for the 'type' attribute after digitizing new
+	  geometries.
+
 2011-09-06	Felix Wolfsteller	<felix.wolfsteller@intevation.de> 
 
 	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java	Tue Sep 06 11:43:47 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java	Tue Sep 06 17:35:43 2011 +0000
@@ -137,7 +137,22 @@
 
         if (type == null || type.length() == 0) {
             type = getSelectedType();
-            attrs.setAttribute("typ", type);
+
+            if (type.equals(BARRIER_PIPE1)) {
+                attrs.setAttribute("typ", "Rohr 1");
+            }
+            else if (type.equals(BARRIER_PIPE2)) {
+                attrs.setAttribute("typ", "Rohr 2");
+            }
+            else if (type.equals(BARRIER_DAM)) {
+                attrs.setAttribute("typ", "Damm");
+            }
+            else if (type.equals(BARRIER_DITCH)) {
+                attrs.setAttribute("typ", "Graben");
+            }
+            else if (type.equals(BARRIER_RINGDIKE)) {
+                attrs.setAttribute("typ", "Ringdeich");
+            }
         }
     }
 

http://dive4elements.wald.intevation.org