Debian Codegraph @

django/contrib/gis/gdal/__init__.py

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