November 2018
Beginner to intermediate
272 pages
5h 36m
English
Since we now know how to load data, we can continue by styling the layers. The simplest option here is to load a premade style (.qml file):
v_layer.loadNamedStyle('D:/QGIS_3_4/airports_style.qml')
This will return True if the .qml file is found:
('', True)
Use the following command to set the market style:
v_layer.triggerRepaint()
Make sure that you call triggerRepaint() to ensure that the map is redrawn to reflect your changes.
We can also create a QGIS style using the console. ...
Read now
Unlock full access