Azad Rasul
SmartRS

Follow

SmartRS

Follow

4- Loading a vector layer

Azad Rasul's photo
Azad Rasul
·Jun 25, 2021·

1 min read

Play this article

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 = iface.addVectorLayer(data_source, layer_name, provider_name)

iface.addVectorLayer(uri, "countries", "ogr")

If you like the content, please SUBSCRIBE to my channel for the future content

 
Share this