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-05-03 09:27:11 +08:00
|
|
|
try:
|
|
|
|
# LayerMapping requires DJANGO_SETTINGS_MODULE to be set,
|
|
|
|
# so this needs to be in try/except.
|
|
|
|
from django.contrib.gis.utils.layermapping import LayerMapping, LayerMapError # NOQA
|
|
|
|
except ImproperlyConfigured:
|
|
|
|
pass
|