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

new url to nib

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