diff flys-backend/contrib/shpimporter/dgm.py @ 4993:71e1b96f4794 dami

Add srid field
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 14 Feb 2013 17:45:13 +0100
parents 9eea3cd22ee7
children d6860fca89e4
line wrap: on
line diff
--- 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:

http://dive4elements.wald.intevation.org