[Qgis-user] WFS: Change symbolization (outline color/thickness and fill) using Python in QGIS.
Elstermann, Mike
Mike.Elstermann at itc-halle.de
Tue Apr 9 06:28:12 PDT 2024
Hello everyone,
I have a code snippet to load a WFS, how can I easily change the symbolization (outline color/thickness and fill) using Python in QGIS?.
def addWFS14(self):
uri = 'https://www.geodatenportal.sachsen-anhalt.de/wss/service/ST_LVermGeo_ALKIS_WFS_OpenData/guest?&service=WFS&BBOX=1332412,6708967,1333423,6709355&restrictToRequestBBOX=1&VERSION=auto&typename=ave:GebaeudeBauwerk&srsname=EPSG:25832&preferCoordinatesForWfsT11=false&pagingEnabled=true'
lyr14 = QgsVectorLayer(uri, "LSA: ALKIS Gebäude (WFS)" , ‚WFS')
QgsProject.instance().addMapLayer(lyr14)
Thanks & best regards, mikeE.
More information about the QGIS-User
mailing list