Organizing the QGIS Python libraries
Now that we can understand the C++-oriented documentation, let's see how the PyQGIS libraries are structured. All of the PyQGIS libraries are organized under a package named qgis
. You wouldn't normally import qgis
directly, however, as all the interesting libraries are subpackages within this main package; here are the five packages that make up the PyQGIS library:
|
This provides access to the core GIS functionality used throughout QGIS. |
|
This defines a range of GUI widgets that you can include in your own programs. |
|
This provides spatial analysis tools to analyze vector and raster format data. |
|
This provides tools to build and analyze topologies. |
|
This implements miscellaneous functions that allow you to work with the QGIS application using Python. |
The first two packages (qgis.core
and qgis.gui
) implement the most important parts of the PyQGIS library, and it&apos...