Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
5003:563ff8893d47 | 5004:f1c01fecf194 |
---|---|
1 try: | 1 try: |
2 from osgeo import ogr | 2 from osgeo import ogr, osr |
3 except ImportErrror: | 3 except ImportErrror: |
4 import ogr | 4 import ogr, osr |
5 import osr | |
6 import shpimporter | |
7 import utils | 5 import utils |
8 import re | 6 import re |
9 | 7 |
10 class Importer: | 8 class Importer: |
11 | 9 |