ropensci-archive / scrubr

:warning: ARCHIVED :warning: Clean species occurrence records
Other
34 stars 10 forks source link

Extend coord_within for use with any polygon? #28

Closed maelle closed 2 years ago

maelle commented 6 years ago

I.e. wrapping something like sf::st_within (or whatever the wkt tool is if that's better) in order to allow to filter observations within a given polygon.

One might need to do that when getting data from APIs that only accept a bounding box or circle as filter.

sckott commented 6 years ago

good idea. we do already use sp in this pkg, so we can leverage that to do this i think