Graphics Reference
In-Depth Information
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 librar-
ies 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.
qgis.core
This defines a range of GUI widgets that you can include in your own programs.
qgis.gui
This provides spatial analysis tools to analyze vector and raster format data.
qgis.analysis
qgis.networkanalysis This provides tools to build and analyze topologies.
This implements miscellaneous functions that allow you to work with the QGIS application using Python.
qgis.utils
The first two packages ( qgis.core and qgis.gui ) implement the most important parts
of the PyQGIS library, and it's worth spending some time to become more familiar with the
concepts and classes they define. Let's take a closer look at these two packages now.
Search WWH ::




Custom Search