Articles in this series
QGIS provides PyQGIS (Python API). It allows developers to built new tools and automates work. QGIS provides Python console for scripting. You can...
In the Python console use print() function to write. Print("Hello My Dear Learner!") Then click "Enter" If you like the content, please SUBSCRIBE to...
For long scripts, you can use Script editor. To open it, click on 'Show Editor". If you like the content, please SUBSCRIBE to my channel for the...
You can download the data that we are using. Then, get the path of the shapefile uri = "D:/Python_QGIS/data/Countries.shp" The format is: vlayer =...
For loading raster files, GDAL library is used. Firstly, download the data. Then, get the path of the raster file: uri =...
We use fields() on a QgsVectorLayer to retrieve information about the fields of a vector layer. uri = "D:/Python_QGIS/data/Countries.shp" vlayer =...