Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add polygons and multipolygons support #6

Open
leonardovida opened this issue Feb 11, 2021 · 1 comment
Open

Add polygons and multipolygons support #6

leonardovida opened this issue Feb 11, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@leonardovida
Copy link
Contributor

From @vankesteren
"If the base sf contains polygons, we can enrich using the polygon directly, no kernel needed, not even a bounding box would need to be supplied by the user. This makes things simple!
Steps would be:

  1. query features using the bounding box of the sf dataset (sf::st_bbox(sf_data))
  2. for each polygon, count the number of occurrences/overlaps with the requested features (sf::st_within() and friends)
  3. return the count per row (this could also be a summary of a property of the feature, such as average building surface area, but that's for the future)
  4. 🥳"
@leonardovida leonardovida added the enhancement New feature or request label Feb 11, 2021
@leonardovida leonardovida self-assigned this Feb 11, 2021
@vankesteren
Copy link
Member

oh yeah this is still a good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants