Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
8826:2ba30caa5571 | 8827:4a13535ed949 |
---|---|
175 "Please refer to the installation " | 175 "Please refer to the installation " |
176 "documentation." % sys.path) | 176 "documentation." % sys.path) |
177 return -1 | 177 return -1 |
178 | 178 |
179 dbconn_raw = dbapi.connect(raw_connstr) | 179 dbconn_raw = dbapi.connect(raw_connstr) |
180 dbconn = ogr.Open(connstr) | 180 dbconn = ogr.Open(connstr, 1) |
181 | 181 |
182 if dbconn == None: | 182 if dbconn == None: |
183 logger.error("Could not connect to database %s" % connstr) | 183 logger.error("Could not connect to database %s" % connstr) |
184 return -1 | 184 return -1 |
185 | 185 |