Module gdal
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
OGR-supported 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 `GDAL_LIBRARY_PATH` in your settings with the path to the GDAL C
library on your system.
source linkRe-exported Classes
-
[django.contrib.gis.gdal.srs.AxisOrder]
-
The coordinate system transformation object.
[django.contrib.gis.gdal.srs.CoordTransform]
-
Wraps an OGR Data Source object.
[django.contrib.gis.gdal.datasource.DataSource]
-
Wrap a GDAL/OGR Data Source Driver. For more information, see the C API source code: https://www.gdal.org/gdal_8h.html - https://www.gdal.org/ogr__api_8h.html
[django.contrib.gis.gdal.driver.Driver]
-
The Envelope object is a C structure that contains the minimum and maximum X, Y coordinates for a rectangle bounding box. The naming of the variables is compatible with the OGR Envelope structure.
[django.contrib.gis.gdal.envelope.Envelope]
-
[django.contrib.gis.gdal.error.GDALException]
-
Wrap a raster GDAL Data Source object.
[django.contrib.gis.gdal.raster.source.GDALRaster]
-
Encapsulate OGR Geometry Types.
[django.contrib.gis.gdal.geomtype.OGRGeomType]
-
Encapsulate an OGR geometry.
[django.contrib.gis.gdal.geometries.OGRGeometry]
-
[django.contrib.gis.gdal.error.SRSException]
-
A wrapper for the OGRSpatialReference object. According to the GDAL Web site, the SpatialReference object "provide[s] services to represent coordinate systems (projections and datums) and to transform between them."
[django.contrib.gis.gdal.srs.SpatialReference]
Re-exported Functions
Check the given CPL/OGRERR and raise an exception where appropriate.
[django.contrib.gis.gdal.error.check_err]
Return the full GDAL version information.
[django.contrib.gis.gdal.libgdal.gdal_full_version]
Return only the GDAL version number information.
[django.contrib.gis.gdal.libgdal.gdal_version]
Submodules
DataSource is a wrapper for the OGR Data Source object, which provides an interface for reading vector geometry data from many different file formats (including ESRI shapefiles).
The GDAL/OGR library uses an Envelope structure to hold the bounding
This module houses the GDAL & SRS Exception objects, and the check_err() routine which checks the status code returned by GDAL/OGR methods.
The OGRGeometry is a wrapper for using the OGR Geometry class
The Spatial Reference class, represents OGR Spatial Reference objects.