Skip to content
Snippets Groups Projects
Commit 6dde2c39 authored by A Nilsen's avatar A Nilsen
Browse files

typo

parent 84fd5937
No related branches found
No related tags found
No related merge requests found
...@@ -509,7 +509,7 @@ class getnib: ...@@ -509,7 +509,7 @@ class getnib:
# substitute with your code. # substitute with your code.
# pass # pass
"""" Additional code""" """" Additional code"""
selectedLayer = '' # Initialise selectedLayer = '' # Initialize
reset = False reset = False
if self.dlg.checkBox_resetNib.isChecked(): # Empty the Nib-prosjekt group if self.dlg.checkBox_resetNib.isChecked(): # Empty the Nib-prosjekt group
...@@ -676,7 +676,7 @@ class getnib: ...@@ -676,7 +676,7 @@ class getnib:
self.iface.messageBar().pushMessage("Warning", "end-year must be >= start-year",level=Qgis.Warning, duration=3) self.iface.messageBar().pushMessage("Warning", "end-year must be >= start-year",level=Qgis.Warning, duration=3)
return return
lyr = '' # Initiate lyr = '' # Initialize
for nibprosjwms in nib_liste: # Loads WMS (raster layer) for each of-project within the bounding box in question 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' 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 rlayer = QgsRasterLayer(urlWithParams, nibprosjwms, 'wms') # Get the raster layer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment