diff --git a/get_nib.py b/get_nib.py index a94797b582d813c05cec38635b47ca7e7dc39195..6adde9257992901a4220a67886081b567e4b1e31 100644 --- a/get_nib.py +++ b/get_nib.py @@ -509,7 +509,7 @@ class getnib: # substitute with your code. # pass """" Additional code""" - selectedLayer = '' # Initialise + selectedLayer = '' # Initialize reset = False if self.dlg.checkBox_resetNib.isChecked(): # Empty the Nib-prosjekt group @@ -676,7 +676,7 @@ class getnib: self.iface.messageBar().pushMessage("Warning", "end-year must be >= start-year",level=Qgis.Warning, duration=3) return - lyr = '' # Initiate + lyr = '' # Initialize for nibprosjwms in nib_liste: # Loads WMS (raster layer) for each of-project within the bounding box in question urlWithParams = 'contextualWMSLegend=0&crs=EPSG:'+str(crs_proj_int)+'&dpiMode=7&featureCount=10&format=image/png&layers='+nibprosjwms+'&styles&url=https://wms.geonorge.no/skwms1/wms.nib-prosjekter' rlayer = QgsRasterLayer(urlWithParams, nibprosjwms, 'wms') # Get the raster layer