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

Add Endpoint to Extract BGS LOCA ID #98

Closed KoalaGeo closed 1 year ago

KoalaGeo commented 1 year ago

Add a simplified endpoint to extract BGS Loca ID from the ogcapi endpoint

https://ogcapi.bgs.ac.uk/collections/onshoreboreholeindex/items?f=json&filter=INTERSECTS%28shape,POLYGON%28%28-4.724%2050.238,-5.021%2050.351,-5.394%2050.393,-5.735%2050.238,-5.812%2050.041,-5.416%2049.921,-4.988%2049.886,-4.724%2050.238%29%29%29%20AND%20ags_log_url%20IS%20NOT%20NULL&limit=10

Input:

Result: The Loca ID extracted from the ags_log_url property: "ags_log_url": "https://webservices.bgs.ac.uk/GWBV/viewborehole?loca_id=201905021419087432"

KoalaGeo commented 1 year ago

No longer required - ags index added to ogcapi

https://ogcapi.bgs.ac.uk/collections/agsboreholeindex/items?f=json&properties=bgs_loca_id&filter=INTERSECTS%28shape,POLYGON((-1.168%2052.398,-1.208%2052.383,-1.191%2052.360,-1.159%2052.336,-1.114%2052.340,-1.137%2052.395,-1.168%2052.398))%29&limit=10