2008-08-06 02:13:06 +08:00
|
|
|
"""
|
|
|
|
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.
|
2012-06-17 04:57:33 +08:00
|
|
|
|
2008-08-06 02:13:06 +08:00
|
|
|
DataSource: Wrapper for the OGR data source object, supports
|
|
|
|
OGR-supported data sources.
|
|
|
|
|
|
|
|
Envelope: A ctypes structure for bounding boxes (GDAL library
|
|
|
|
not required).
|
|
|
|
|
2010-01-27 11:01:13 +08:00
|
|
|
OGRGeometry: Object for accessing OGR Geometry functionality.
|
2008-08-06 02:13:06 +08:00
|
|
|
|
|
|
|
OGRGeomType: A class for representing the different OGR Geometry
|
|
|
|
types (GDAL library not required).
|
|
|
|
|
|
|
|
SpatialReference: Represents OSR Spatial Reference objects.
|
|
|
|
|
2012-06-17 04:57:33 +08:00
|
|
|
The GDAL library will be imported from the system path using the default
|
2008-08-06 02:13:06 +08:00
|
|
|
library name for the current OS. The default library path may be overridden
|
2012-06-17 04:57:33 +08:00
|
|
|
by setting `GDAL_LIBRARY_PATH` in your settings with the path to the GDAL C
|
|
|
|
library on your system.
|
2008-08-06 02:13:06 +08:00
|
|
|
"""
|
2017-05-03 09:27:11 +08:00
|
|
|
from django.contrib.gis.gdal.datasource import DataSource
|
|
|
|
from django.contrib.gis.gdal.driver import Driver
|
2015-12-12 18:26:17 +08:00
|
|
|
from django.contrib.gis.gdal.envelope import Envelope
|
2017-05-03 09:27:11 +08:00
|
|
|
from django.contrib.gis.gdal.error import (
|
2017-09-04 09:19:37 +08:00
|
|
|
GDALException, SRSException, check_err,
|
2015-06-16 02:07:31 +08:00
|
|
|
)
|
2017-05-03 09:27:11 +08:00
|
|
|
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
|
2020-05-08 17:28:52 +08:00
|
|
|
from django.contrib.gis.gdal.srs import (
|
|
|
|
AxisOrder, CoordTransform, SpatialReference,
|
|
|
|
)
|
2017-05-03 09:27:11 +08:00
|
|
|
|
|
|
|
__all__ = (
|
2020-05-08 17:28:52 +08:00
|
|
|
'AxisOrder', 'Driver', 'DataSource', 'CoordTransform', 'Envelope',
|
|
|
|
'GDALException', 'GDALRaster', 'GDAL_VERSION', 'OGRGeometry',
|
|
|
|
'OGRGeomType', 'SpatialReference', 'SRSException', 'check_err',
|
|
|
|
'gdal_version', 'gdal_full_version',
|
2017-05-03 09:27:11 +08:00
|
|
|
)
|