mirror of
https://github.com/django/django.git
synced 2025-03-13 10:50:55 +00:00
https://github.com/psf/black/releases/tag/24.1.0 Backport of 305757aec19c9d5111e4d76095ae0acd66163e4b from main
26 lines
683 B
Python
26 lines
683 B
Python
"""
|
|
This module contains useful utilities for GeoDjango.
|
|
"""
|
|
|
|
from django.contrib.gis.utils.ogrinfo import ogrinfo
|
|
from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect
|
|
from django.contrib.gis.utils.srs import add_srs_entry
|
|
from django.core.exceptions import ImproperlyConfigured
|
|
|
|
__all__ = [
|
|
"add_srs_entry",
|
|
"mapping",
|
|
"ogrinfo",
|
|
"ogrinspect",
|
|
]
|
|
|
|
try:
|
|
# LayerMapping requires DJANGO_SETTINGS_MODULE to be set,
|
|
# and ImproperlyConfigured is raised if that's not the case.
|
|
from django.contrib.gis.utils.layermapping import LayerMapError, LayerMapping
|
|
|
|
__all__ += ["LayerMapError", "LayerMapping"]
|
|
|
|
except ImproperlyConfigured:
|
|
pass
|