[Dive4elements-commits] [PATCH 2 of 5] Importer act according to specs when importing jetties

Wald Commits scm-commit at wald.intevation.org
Fri Mar 22 17:32:15 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1363968022 -3600
# Node ID 5a42ca06b93e756d9dc5e0456fc0ef68d2b6905a
# Parent  c841eac484741cefc20e7f8ff4429375a4a7c9d0
Importer act according to specs when importing jetties

diff -r c841eac48474 -r 5a42ca06b93e flys-backend/contrib/shpimporter/jetties.py
--- a/flys-backend/contrib/shpimporter/jetties.py	Fri Mar 22 16:59:34 2013 +0100
+++ b/flys-backend/contrib/shpimporter/jetties.py	Fri Mar 22 17:00:22 2013 +0100
@@ -22,16 +22,23 @@
 JETTY_KIND = {
         "bkl" : 0,
         "bkr" : 0,
+        "bk"  : 0,
         "bfl" : 1,
         "bfr" : 1,
+        "bf"  : 1,
         "bwl" : 2,
         "bwr" : 2,
+        "bw"  : 2,
     }
 
 class Jetties(Importer):
     fieldmap = {
-            "^station$" : "km",
-            "^z$" : "z",
+            "^station$"       : "km",
+            "^km$"            : "km",
+            "^wsv-km$"        : "km",
+            "^z$"             : "z",
+            "^H[oeö]{0,2}he$" : "z",
+            "^m+NHN$"         : "z",
         }
 
     def getPath(self, base):


More information about the Dive4elements-commits mailing list