I am building a weather API that will respond with a JSON-formatted forecast when given a coordinate.
My input is a NetCDF store from which I generated a raster layer. I intended to use the WMS
GetFeatureInfo endpoint and draw an extremely small
bbox around the given coordinate. It looks like this approach would work fine if my user only cares about the weather forecast at a specific coordinate, but if my user wants to know the forecast at 10,000 coordinates he would have to make 10,000 requests.
I was wondering if it's possible to use a WPS service to retrieve the data for multiple coordinates simultaneously. It seems like perhaps the
gs:Query method with a
gs:RasterAsPointCollection subprocess might work, but how would I specify the filter?
A related question is - what if the 10,000 points that I want are in a vector layer? Can I use WPS to interrogate my NetCDF raster layer at the points specified in my vector layer?
An example of either solution would be amazing, but just links to relevant documentation would be much appreciated as well.