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

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.

主站蜘蛛池模板: 五家渠市| 岗巴县| 廉江市| 华蓥市| 林口县| 高唐县| 三穗县| 佛教| 阜南县| 囊谦县| 安仁县| 湟源县| 巴彦县| 宿松县| 安义县| 慈溪市| 金华市| 汕尾市| 岑溪市| 通江县| 温泉县| 丰镇市| 介休市| 迁西县| 澜沧| 汶上县| 怀化市| 凌海市| 本溪市| 乡城县| 扎鲁特旗| 阿拉善左旗| 九江市| 恭城| 麟游县| 上高县| 三穗县| 通河县| 焦作市| 新闻| 宣恩县|