changeset 8827:4a13535ed949

Upgrade importer to GDAL 1.11. This implies opening connections to PostgreSQL explicitly in read mode.
author Tom Gottfried <tom@intevation.de>
date Tue, 16 May 2017 16:59:59 +0200
parents 2ba30caa5571
children 4d73d87563ab
files backend/contrib/shpimporter/shpimporter.py backend/doc/documentation/de/overview.tex
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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}

http://dive4elements.wald.intevation.org