this module houses ctypes interfaces for gdal objects the following gdal objects are supported coordtransform used for coordinate transformations from one spatial reference system to another driver wraps an ogr data source driver datasource wrapper for the ogr data source object supports ogrsupported data sources envelope a ctypes structure for bounding boxes gdal library not required ogrgeometry object for accessing ogr geometry functionality ogrgeomtype a class for representing the different ogr geometry types gdal library not required spatialreference represents osr spatial reference objects the gdal library will be imported from the system path using the default library name for the current os the default library path may be overridden by setting gdallibrarypath in your settings with the path to the gdal c library on your system
from django.contrib.gis.gdal.datasource import DataSource
from django.contrib.gis.gdal.driver import Driver
from django.contrib.gis.gdal.envelope import Envelope
from django.contrib.gis.gdal.error import GDALException, SRSException, check_err
from django.contrib.gis.gdal.geometries import OGRGeometry
from django.contrib.gis.gdal.geomtype import OGRGeomType
from django.contrib.gis.gdal.libgdal import (
    GDAL_VERSION,
    gdal_full_version,
    gdal_version,
)
from django.contrib.gis.gdal.raster.source import GDALRaster
from django.contrib.gis.gdal.srs import AxisOrder, CoordTransform, SpatialReference

__all__ = (
    "AxisOrder",
    "Driver",
    "DataSource",
    "CoordTransform",
    "Envelope",
    "GDALException",
    "GDALRaster",
    "GDAL_VERSION",
    "OGRGeometry",
    "OGRGeomType",
    "SpatialReference",
    "SRSException",
    "check_err",
    "gdal_version",
    "gdal_full_version",
)