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
c0c71f64
Commit
c0c71f64
authored
2 years ago
by
A Nilsen
Browse files
Options
Downloads
Patches
Plain Diff
Inkluderer satellittbilder og Infrarødt
parent
d794cf83
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get_nib.py
+3
-2
3 additions, 2 deletions
get_nib.py
with
3 additions
and
2 deletions
get_nib.py
+
3
−
2
View file @
c0c71f64
...
@@ -535,7 +535,7 @@ class getnib:
...
@@ -535,7 +535,7 @@ class getnib:
e
=
iface
.
mapCanvas
().
extent
().
center
()
e
=
iface
.
mapCanvas
().
extent
().
center
()
# Debugging
# Debugging
# self.iface.messageBar().pushMessage("Info", "Centre x, y: " + str(e.x()) +", "+ str(e.y())+", "+crs_proj_str, level=Qgis.Info, duration=5)
# self.iface.messageBar().pushMessage("Info", "Centre x, y: " + str(e.x()) +", "+ str(e.y())+", "+crs_proj_str, level=Qgis.Info, duration=5)
# Computes corner coordinates in LAE regardless input crs
# Computes corner coordinates in LAE
A
regardless input crs
xmin
=
e
.
x
()
-
int
(
l
)
*
1000
/
2
xmin
=
e
.
x
()
-
int
(
l
)
*
1000
/
2
xmax
=
e
.
x
()
+
int
(
l
)
*
1000
/
2
xmax
=
e
.
x
()
+
int
(
l
)
*
1000
/
2
ymin
=
e
.
y
()
-
int
(
h
)
*
1000
/
2
ymin
=
e
.
y
()
-
int
(
h
)
*
1000
/
2
...
@@ -641,7 +641,8 @@ class getnib:
...
@@ -641,7 +641,8 @@ class getnib:
# Load Norge i bilder-project based on the bounding box (geojson-format x1,y1;x2,y2;x3,y3;...)
# Load Norge i bilder-project based on the bounding box (geojson-format x1,y1;x2,y2;x3,y3;...)
# https://norgeibilder.no/dok/webtjenester.pdf
# https://norgeibilder.no/dok/webtjenester.pdf
para
=
parse
.
quote
(
'
{Filter:
"
ortofototype in (1,2,3,4,8,9,12)
"
,Coordinates:
"'
+
coords
+
'"
,InputWKID:
'
+
str
(
crs_proj_int
)
+
'
,StopOnCover:false}
'
)
# 1 = Ortofoto 10, 2 = Ortofoto 20, 3 = Ortofoto 50, 4 = Ortofoto N50, 5 = Ortofoto Skog, 6 = Satellittbilde, 7 = Infrarødt, 8 = Rektifiserte flybilder
para
=
parse
.
quote
(
'
{Filter:
"
ortofototype in (1,2,3,4,5,6,7,8)
"
,Coordinates:
"'
+
coords
+
'"
,InputWKID:
'
+
str
(
crs_proj_int
)
+
'
,StopOnCover:false}
'
)
js
=
requests
.
get
(
'
https://tjenester.norgeibilder.no/rest/projectMetadata.ashx?request=
'
+
para
).
json
()
#list with current of-project on json-format
js
=
requests
.
get
(
'
https://tjenester.norgeibilder.no/rest/projectMetadata.ashx?request=
'
+
para
).
json
()
#list with current of-project on json-format
nib_liste
=
js
[
'
ProjectList
'
]
nib_liste
=
js
[
'
ProjectList
'
]
# Debugging
# Debugging
...
...
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