BritishGeologicalSurvey / pyagsapi

pyagsapi - An AGS Utilities API with AGS v4.x Schema Validation & Converter for .ags<-->.xslx files
https://britishgeologicalsurvey.github.io/pyagsapi/
GNU Lesser General Public License v3.0
12 stars 2 forks source link

Using http instead of https for download #130

Closed KoalaGeo closed 4 months ago

KoalaGeo commented 5 months ago

User reported getting error trying to download ags data - the spatial search download link appears to be pointing at http instead of https

image

If I copy the link it's using http://agsapi.bgs.ac.uk/ags_export_by_polygon/?polygon=POLYGON((-6.856%2052.755,-6.856%2053.126,-6.285%2053.126,-6.285%2052.755,-6.856%2052.755))

KoalaGeo commented 5 months ago

API ags_export_by_polygon is returning self: "http://...." which is what's used to make the link in the popup.

https://agsapi.bgs.ac.uk/ags_export_by_polygon/?polygon=POLYGON((0.204%2052.029,0.203%2052.029,0.203%2052.028,0.204%2052.028,0.204%2052.028,0.204%2052.029,0.204%2052.029))&count_only=True

image

Needs fixing in the python, not the .js.