📜  pyqgis - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:28.970000             🧑  作者: Mango

代码示例1
uri = "E:/Geodata/NaturalEarth/vector_v4/natural_earth_vector.gpkg_v4.1.0/packages/natural_earth_vector.gpkg|layername=ne_10m_admin_0_countries"
iface.addVectorLayer(uri, "countries", "ogr")