官术网_书友最值得收藏!

About the QGIS Python APIs

The QGIS system itself is written in C++, and has its own set of APIs that are also written in C++. The Python APIs are implemented as wrappers around these C++ APIs. For example, there is a Python class named QgisInterface that acts as a wrapper around a C++ class of the same name. All the methods, class variables, and the like that are implemented by the C++ version of QgisInterface are made available through the Python wrapper.

What this means is that when you access the Python QGIS APIs, you aren't accessing the API directly. Instead, the wrapper connects your code to the underlying C++ objects and methods, as follows:

About the QGIS Python APIs

Fortunately, in most cases, the QGIS Python wrappers simply hide away the complexity of the underlying C++ code, so the PyQGIS libraries work as you would expect them to. There are some gotchas, however, and we will cover these as they come up.

主站蜘蛛池模板: 英山县| 海晏县| 枣阳市| 顺昌县| 合水县| 兴海县| 普定县| 普兰县| 麦盖提县| 临夏市| 乐山市| 腾冲县| 德庆县| 缙云县| 贵南县| 韶关市| 芒康县| 邹平县| 托克托县| 黄龙县| 柳江县| 宝坻区| 当涂县| 高阳县| 双牌县| 中超| 扶风县| 莲花县| 屯门区| 依安县| 资兴市| 伊通| 邵武市| 安岳县| 西城区| 凤城市| 洪泽县| 满洲里市| 屯昌县| 聂拉木县| 邢台市|