April 2018
Beginner to intermediate
440 pages
11h 36m
English
To add data to a layer, you first need to load the layer. Start by loading a subset of some SeeClickFix data for Albuquerque as shown in the following code:
scf = iface.addVectorLayer(r'C:\Users\Paul\Desktop\PythonBook\CHP8\SCF.shp', "SeeClickFix","ogr")
The previous code loads and displays the layer on the map. It is the same code from the first section of this chapter.
Now that you have the layer loaded you can use capabilitiesString() to see what operations the provider allows on the data. The following code shows the ...