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

Inkluderer satellittbilder og Infrarødt

parent d794cf83
Branches
Tags
No related merge requests found
...@@ -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 LAEA 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment