GeoJSON filter after_accept plugin #1043
Labels
enhancement
New feature or request
good first issue
Good for newcomers
NewUseCase
needed to address a use case, we can't yet support.
Priority 4 - Strategic
would benefit multiple use cases if resolved
We already support including GeoJSON in messages.
One poll plugin I wrote adds GeoJSON information, because I noticed the API provided it, and I thought it would be interesting to use it. https://github.com/MetPX/sarracenia/blob/development/sarracenia/flowcb/poll/eumetsat.py
Now we need an after_accept plugin that can filter based on the GeoJSON in the message.
i.e. if a region defined in a config file overlaps with the region in the message, accept it. Otherwise, reject the message and don't bother downloading the file.
This after_accept plugin could be used either in a poll (to prevent messages from being posted) or in a sarra/subscribe (to filter messages before downloading).
There are multiple non-Sarracenia polls in use at CIS that do region filtering and only download files that cover the region they want. Implementing this plugin would be one step in the process of replacing these custom polls with sr3.
The text was updated successfully, but these errors were encountered: