equal
deleted
inserted
replaced
4 # Importing the utilities that depend on GDAL, if available. |
4 # Importing the utilities that depend on GDAL, if available. |
5 from django.contrib.gis.gdal import HAS_GDAL |
5 from django.contrib.gis.gdal import HAS_GDAL |
6 if HAS_GDAL: |
6 if HAS_GDAL: |
7 from django.contrib.gis.utils.ogrinfo import ogrinfo, sample |
7 from django.contrib.gis.utils.ogrinfo import ogrinfo, sample |
8 from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect |
8 from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect |
9 from django.contrib.gis.utils.srs import add_postgis_srs |
9 from django.contrib.gis.utils.srs import add_postgis_srs, add_srs_entry |
10 try: |
10 try: |
11 # LayerMapping requires DJANGO_SETTINGS_MODULE to be set, |
11 # LayerMapping requires DJANGO_SETTINGS_MODULE to be set, |
12 # so this needs to be in try/except. |
12 # so this needs to be in try/except. |
13 from django.contrib.gis.utils.layermapping import LayerMapping |
13 from django.contrib.gis.utils.layermapping import LayerMapping, LayerMapError |
14 except: |
14 except: |
15 pass |
15 pass |
16 |
16 |
17 # Attempting to import the GeoIP class. |
17 # Attempting to import the GeoIP class. |
18 try: |
18 try: |