Mercurial > dive4elements > river
diff backend/contrib/shpimporter/shpimporter.py @ 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 | e331a5ad2554 |
children |
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)