opengeospatial / sensorthings

The official web site of the OGC SensorThings API standard specification.
132 stars 28 forks source link

Filter by external geometry reference #110

Open KathiSchleidt opened 3 years ago

KathiSchleidt commented 3 years ago

It would be really valuable when specifying a geometry filter not to have to include the entire geometry within the request (pretty messy and ugly), but instead be able to reference a geoJSON feature with this geometry (similar to #31 on absolute references in filtering, but more widely usable) via URL.

Potential use case: all measurements within the flood-plain described by that feature over there.

This way one could utilize geometries from both other STA endpoints as well as feature from OGC API - Features (or anything else that resolves to geoJSON)

ksonda commented 2 years ago

Just bumping this. Have an implementation that runs into the URL character limit when passing complex polygon geometries as filters

hylkevds commented 2 years ago

@ksonda: can you try if using batch requets (JSON or default) gets around the URL limit?

Allowing URLs in the geometry fields of queries may have security implications, since the server would be executing get requests on user-supplied URLs... It would require some robust filtering. (whitelisting? only relative URLs?)