diff flys-backend/contrib/shpimporter/buildings.py @ 5540:25c2505df28f

Merged
author Christian Lins <christian.lins@intevation.de>
date Wed, 03 Apr 2013 16:00:21 +0200
parents ff11b178f152
children b91cc44312b7
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/buildings.py	Wed Apr 03 15:59:01 2013 +0200
+++ b/flys-backend/contrib/shpimporter/buildings.py	Wed Apr 03 16:00:21 2013 +0200
@@ -62,9 +62,13 @@
                 return BUILDING_KINDS["pegel"]
 
         # Now it gets ugly when we search all attributes
-        if self.searchValue(feat, "^br[ueü]{0,2}cke[n]{0,1}$"):
+        ret = self.searchValue(feat, "^br[ueü]{0,2}cke[n]{0,1}$")
+        if ret:
+            self.handled(ret)
             return BUILDING_KINDS["brücken"]
-        if self.searchValue(feat, "^wehr[e]{0,1}$"):
+        ret = self.searchValue(feat, "^wehr[e]{0,1}$")
+        if ret:
+            self.handled(ret)
             return BUILDING_KINDS["wehre"]
 
         return BUILDING_KINDS["sonstige"]

http://dive4elements.wald.intevation.org