Mercurial > dive4elements > river
comparison flys-backend/contrib/shpimporter/boundaries.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 | 5a0225ddae2b |
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="hydr_boundaries" | 8 TABLE_NAME="hydr_boundaries" |
6 TABLE_NAME_POLY="hydr_boundaries_poly" | 9 TABLE_NAME_POLY="hydr_boundaries_poly" |