[Dive4elements-commits] [PATCH] Add srid field

Wald Commits scm-commit at wald.intevation.org
Thu Feb 14 17:45:18 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1360860313 -3600
# Branch dami
# Node ID 71e1b96f47948a92a57cc93148912c21ebe7af33
# Parent  ecc6fd57b6300ef218e8a5416adce08c443ebd44
Add srid field

diff -r ecc6fd57b630 -r 71e1b96f4794 flys-backend/contrib/shpimporter/dgm.py
--- a/flys-backend/contrib/shpimporter/dgm.py	Thu Feb 14 17:38:34 2013 +0100
+++ b/flys-backend/contrib/shpimporter/dgm.py	Thu Feb 14 17:45:13 2013 +0100
@@ -20,12 +20,12 @@
         lambda x: True if x.lower() == "Ja" else False),
     "resolution"      : (latin("Auflösung"), lambda x: x),
 #   "description"     : 
-#                     : "SRID",
+    "srid"            : "SRID",
     "path"            : ("Pfad_Bestand", lambda x: x),
     }
 
 SQL_INSERT_DGT = "INSERT INTO dem (river_id, " + ", ".join(DGM_MAP.keys()) + \
-        ") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)"
+        ") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)"
 
 def insertRiverDgm(dbconn, dgmfile, river_name, dry_run):
     with codecs.open(dgmfile, "r", "latin1") as csvfile:


More information about the Dive4elements-commits mailing list