From c0c71f64d4b898ea678bdfdc3b67a52e0f4cb37c Mon Sep 17 00:00:00 2001
From: A Nilsen <ban@nibio.no>
Date: Thu, 16 Feb 2023 19:46:45 +0000
Subject: [PATCH] =?UTF-8?q?Inkluderer=20satellittbilder=20og=20Infrar?=
 =?UTF-8?q?=C3=B8dt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 get_nib.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/get_nib.py b/get_nib.py
index 44efc65..ff12409 100644
--- a/get_nib.py
+++ b/get_nib.py
@@ -535,7 +535,7 @@ class getnib:
                     e = iface.mapCanvas().extent().center()
                     # Debugging
                     # 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
                     xmax = e.x() + int(l)*1000/2
                     ymin = e.y() - int(h)*1000/2
@@ -641,7 +641,8 @@ class getnib:
 
             # Load Norge i bilder-project based on the bounding box (geojson-format x1,y1;x2,y2;x3,y3;...)
             # 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
             nib_liste = js['ProjectList']
             # Debugging
-- 
GitLab