Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/DrawControl.java @ 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 | d02c3835df28 |
children | 22dc88b17253 |
comparison
equal
deleted
inserted
replaced
859:6b047887855b | 860:f5855350fc03 |
---|---|
135 Attributes attrs = feature.getAttributes(); | 135 Attributes attrs = feature.getAttributes(); |
136 String type = attrs.getAttributeAsString("typ"); | 136 String type = attrs.getAttributeAsString("typ"); |
137 | 137 |
138 if (type == null || type.length() == 0) { | 138 if (type == null || type.length() == 0) { |
139 type = getSelectedType(); | 139 type = getSelectedType(); |
140 attrs.setAttribute("typ", type); | 140 |
141 if (type.equals(BARRIER_PIPE1)) { | |
142 attrs.setAttribute("typ", "Rohr 1"); | |
143 } | |
144 else if (type.equals(BARRIER_PIPE2)) { | |
145 attrs.setAttribute("typ", "Rohr 2"); | |
146 } | |
147 else if (type.equals(BARRIER_DAM)) { | |
148 attrs.setAttribute("typ", "Damm"); | |
149 } | |
150 else if (type.equals(BARRIER_DITCH)) { | |
151 attrs.setAttribute("typ", "Graben"); | |
152 } | |
153 else if (type.equals(BARRIER_RINGDIKE)) { | |
154 attrs.setAttribute("typ", "Ringdeich"); | |
155 } | |
141 } | 156 } |
142 } | 157 } |
143 | 158 |
144 | 159 |
145 protected void removeControl() { | 160 protected void removeControl() { |