diff flys-backend/contrib/shpimporter/importer.py @ 5004:f1c01fecf194 dami

Fix imports of ogr, this removes a warning in gdal 1.9 but keeps compatibility with older versions
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 15 Feb 2013 16:18:34 +0100
parents fed74592a2ba
children 769593a84606
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/importer.py	Fri Feb 15 15:03:48 2013 +0100
+++ b/flys-backend/contrib/shpimporter/importer.py	Fri Feb 15 16:18:34 2013 +0100
@@ -1,9 +1,7 @@
 try:
-    from osgeo import ogr
+    from osgeo import ogr, osr
 except ImportErrror:
-    import ogr
-import osr
-import shpimporter
+    import ogr, osr
 import utils
 import re
 

http://dive4elements.wald.intevation.org