comparison flys-backend/contrib/shpimporter/catchments.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 59ca5dab2782
children c5187ab9f571
comparison
equal deleted inserted replaced
5003:563ff8893d47 5004:f1c01fecf194
1 import ogr 1 try:
2 from osgeo import ogr
3 except ImportErrror:
4 import ogr
2 5
3 from importer import Importer 6 from importer import Importer
4 7
5 TABLE_NAME="catchment" 8 TABLE_NAME="catchment"
6 PATH="Hydrologie/Einzugsgebiet" 9 PATH="Hydrologie/Einzugsgebiet"

http://dive4elements.wald.intevation.org