[PATCH 1 of 3] Upgrade importer to GDAL 1.11

Wald Commits scm-commit at wald.intevation.org
Tue May 16 17:21:46 CEST 2017


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1494946799 -7200
# Node ID 4a13535ed94910589d567651599d5805c2c3cc78
# Parent  2ba30caa557117239a7051ee9ebe829912b214a9
Upgrade importer to GDAL 1.11.

This implies opening connections to PostgreSQL
explicitly in read mode.

diff -r 2ba30caa5571 -r 4a13535ed949 backend/contrib/shpimporter/shpimporter.py
--- a/backend/contrib/shpimporter/shpimporter.py	Tue May 16 16:00:55 2017 +0200
+++ b/backend/contrib/shpimporter/shpimporter.py	Tue May 16 16:59:59 2017 +0200
@@ -177,7 +177,7 @@
             return -1
 
     dbconn_raw = dbapi.connect(raw_connstr)
-    dbconn = ogr.Open(connstr)
+    dbconn = ogr.Open(connstr, 1)
 
     if dbconn == None:
         logger.error("Could not connect to database %s" % connstr)
diff -r 2ba30caa5571 -r 4a13535ed949 backend/doc/documentation/de/overview.tex
--- a/backend/doc/documentation/de/overview.tex	Tue May 16 16:00:55 2017 +0200
+++ b/backend/doc/documentation/de/overview.tex	Tue May 16 16:59:59 2017 +0200
@@ -53,7 +53,7 @@
 \begin{itemize}
   \item Oracle- oder PosgreSQL-Datenbank bzw. entsprechende Client-Bibliotheken
     inkl. Schema für FLYS
-  \item Java, Python, GDAL (mit GDAL-Python-API)
+  \item Java, Python, GDAL 1.11 (mit GDAL-Python-API)
 \end{itemize}
 
 \subsection{Installationsanleitung}


More information about the Dive4Elements-commits mailing list