Skip to content

Add polygons and multipolygons support #6

@leonardovida

Description

@leonardovida

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. 🥳"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions