changeset 5357:776427b5aa76

Add updated type mapping for jetties
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 21 Mar 2013 09:21:58 +0100
parents a5291a126e24
children 59f9760e8b7f
files flys-backend/contrib/shpimporter/jetties.py
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/jetties.py	Wed Mar 20 19:02:42 2013 +0100
+++ b/flys-backend/contrib/shpimporter/jetties.py	Thu Mar 21 09:21:58 2013 +0100
@@ -16,10 +16,16 @@
 NAME="Jetties"
 
 # strings need to be lowercase
+# buhnenkopf 0
+# buhnenfuß 1
+# buhnenwurzel 2
 JETTY_KIND = {
-        "buhnenkopf" : 0,
-        "buhnenfuß" : 1,
-        "buhnenwurzel" : 2,
+        "bkl" : 0,
+        "bkr" : 0,
+        "bfl" : 1,
+        "bfr" : 1,
+        "bwl" : 2,
+        "bwr" : 2,
     }
 
 class Jetties(Importer):
@@ -59,7 +65,7 @@
         if self.IsFieldSet(feat, artname):
             self.handled(artname)
             kind_id = JETTY_KIND.get(feat.GetField(artname).lower())
-            if not kind_id:
+            if kind_id == None:
                 logger.warn("Unknown Type: %s" % \
                         feat.GetField(artname))
             else:

http://dive4elements.wald.intevation.org