xpublish-community / xpublish-edr

OGC EDR router for xpublish
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

GeoJSON format breaks for single point position queries with 'parameter-name' specified #56

Closed mpiannucci closed 2 weeks ago

mpiannucci commented 2 weeks ago

When parameters are used for subsetting after the dataset has been subset to a single point, the x and y axes are filtered out of the dataset. This breaks geojson because x and y are required to serialize the geometry.

There are two options here:

  1. Filter the query by parameters after the position selection so the axes are not squeezed
  2. Always include the relevant axes in the responses, in addition to any specified parameter subsetting.

I am leaning towards 1 because it is less code but I'm open to suggestions.