comparison flys-backend/contrib/shpimporter/fixpoints.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, osr 1 try:
2 from osgeo import ogr, osr
3 except ImportErrror:
4 import ogr, osr
2 5
3 from importer import Importer 6 from importer import Importer
4 7
5 TABLE_NAME="fixpoints" 8 TABLE_NAME="fixpoints"
6 PATH="Geodaesie/Festpunkte" 9 PATH="Geodaesie/Festpunkte"

http://dive4elements.wald.intevation.org