You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 579B

1234567891011121314
  1. """
  2. This module contains useful utilities for GeoDjango.
  3. """
  4. from django.contrib.gis.utils.ogrinfo import ogrinfo # NOQA
  5. from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect # NOQA
  6. from django.contrib.gis.utils.srs import add_srs_entry # NOQA
  7. from django.core.exceptions import ImproperlyConfigured
  8. try:
  9. # LayerMapping requires DJANGO_SETTINGS_MODULE to be set,
  10. # and ImproperlyConfigured is raised if that's not the case.
  11. from django.contrib.gis.utils.layermapping import LayerMapping, LayerMapError # NOQA
  12. except ImproperlyConfigured:
  13. pass