2008-08-06 02:13:06 +08:00
|
|
|
"""
|
|
|
|
This module contains useful utilities for GeoDjango.
|
|
|
|
"""
|
2017-05-03 09:27:11 +08:00
|
|
|
from django.contrib.gis.utils.ogrinfo import ogrinfo # NOQA
|
|
|
|
from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect # NOQA
|
|
|
|
from django.contrib.gis.utils.srs import add_srs_entry # NOQA
|
2017-01-17 01:48:41 +08:00
|
|
|
from django.core.exceptions import ImproperlyConfigured
|
2015-06-16 02:07:31 +08:00
|
|
|
|
2017-09-07 20:16:21 +08:00
|
|
|
try:
|
2017-05-03 09:27:11 +08:00
|
|
|
# LayerMapping requires DJANGO_SETTINGS_MODULE to be set,
|
2017-03-09 23:17:41 +08:00
|
|
|
# and ImproperlyConfigured is raised if that's not the case.
|
2017-05-03 09:27:11 +08:00
|
|
|
from django.contrib.gis.utils.layermapping import LayerMapping, LayerMapError # NOQA
|
2017-09-07 20:16:21 +08:00
|
|
|
except ImproperlyConfigured:
|
|
|
|
pass
|