diff --git a/get_nib.py b/get_nib.py index 1bbc9960f843a71b960affd82173b253e236d204..4ad90d94400229c93f8752e4b91287835747e48a 100644 --- a/get_nib.py +++ b/get_nib.py @@ -641,9 +641,8 @@ class getnib: group = root.addGroup('Nib-prosjekt') # add the group and name it "Nib-prosjekt" # group.setExpanded(False) # Collapse the layer group - # Load Norge i bilder-project based on active layer's bounding box - # (geojson-format x1,y1;x2,y2;x3,y3;...) - # https://stackoverflow.com/questions/50337388/how-to-use-special-character-%c3%a6-%c3%b8-or-%c3%a5-in-a-urllib-request-urlopen-in-python-3 + # Load Norge i bilder-project based on active layer's 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}') js = requests.get('https://tjenester.norgeibilder.no/rest/projectMetadata.ashx?request='+para).json() #list with current of-project on json-format print(js) # {Success:true,ErrorMessage:null,ProjectList:[Sør-Varanger 2019,Sør-Varanger veg 2016,Sør-Varanger 2013,Sør-Varanger 2011],ProjectMetadata:null}