Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
get_nib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
A Nilsen
get_nib
Commits
6dde2c39
Commit
6dde2c39
authored
2 years ago
by
A Nilsen
Browse files
Options
Downloads
Patches
Plain Diff
typo
parent
84fd5937
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get_nib.py
+2
-2
2 additions, 2 deletions
get_nib.py
with
2 additions
and
2 deletions
get_nib.py
+
2
−
2
View file @
6dde2c39
...
@@ -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
=
''
# Initiali
s
e
selectedLayer
=
''
# Initiali
z
e
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
=
''
# Initia
t
e
lyr
=
''
# Initia
liz
e
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment