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 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. """
  2. This module houses ctypes interfaces for GDAL objects. The following GDAL
  3. objects are supported:
  4. CoordTransform: Used for coordinate transformations from one spatial
  5. reference system to another.
  6. Driver: Wraps an OGR data source driver.
  7. DataSource: Wrapper for the OGR data source object, supports
  8. OGR-supported data sources.
  9. Envelope: A ctypes structure for bounding boxes (GDAL library
  10. not required).
  11. OGRGeometry: Object for accessing OGR Geometry functionality.
  12. OGRGeomType: A class for representing the different OGR Geometry
  13. types (GDAL library not required).
  14. SpatialReference: Represents OSR Spatial Reference objects.
  15. The GDAL library will be imported from the system path using the default
  16. library name for the current OS. The default library path may be overridden
  17. by setting `GDAL_LIBRARY_PATH` in your settings with the path to the GDAL C
  18. library on your system.
  19. """
  20. from django.contrib.gis.gdal.datasource import DataSource
  21. from django.contrib.gis.gdal.driver import Driver
  22. from django.contrib.gis.gdal.envelope import Envelope
  23. from django.contrib.gis.gdal.error import (
  24. GDALException, SRSException, check_err,
  25. )
  26. from django.contrib.gis.gdal.geometries import OGRGeometry
  27. from django.contrib.gis.gdal.geomtype import OGRGeomType
  28. from django.contrib.gis.gdal.libgdal import (
  29. GDAL_VERSION, gdal_full_version, gdal_version,
  30. )
  31. from django.contrib.gis.gdal.raster.source import GDALRaster
  32. from django.contrib.gis.gdal.srs import CoordTransform, SpatialReference
  33. __all__ = (
  34. 'Driver', 'DataSource', 'CoordTransform', 'Envelope', 'GDALException',
  35. 'GDALRaster', 'GDAL_VERSION', 'OGRGeometry', 'OGRGeomType',
  36. 'SpatialReference', 'SRSException', 'check_err', 'gdal_version',
  37. 'gdal_full_version',
  38. )