comparison flys-backend/contrib/shpimporter/axis.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 23a090b41543
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 import shpimporter
5 7
6 NAME="Axis" 8 NAME="Axis"
7 TABLE_NAME="river_axes" 9 TABLE_NAME="river_axes"
8 PATH="Geodaesie/Flussachse+km" 10 PATH="Geodaesie/Flussachse+km"
9 11

http://dive4elements.wald.intevation.org