Hello there,
Lets use QGIS python scripting (PyQGIS) to create a text file of attributes from a shapefile.
Here I loaded onto QGIS a point layer representing capitals of Nigeria states with four attributes namely: "State_name", "Capital", "Area" and "Population".
Open the python console and with the point layer selected on the layers panel, enter the code below on the console to create an active layer object.
Lets use QGIS python scripting (PyQGIS) to create a text file of attributes from a shapefile.
Here I loaded onto QGIS a point layer representing capitals of Nigeria states with four attributes namely: "State_name", "Capital", "Area" and "Population".
Open the python console and with the point layer selected on the layers panel, enter the code below on the console to create an active layer object.
layer = iface.activeLayer()