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

read_habitatsprings(): provide argument 'units_7220' #70

Merged
merged 5 commits into from
Apr 10, 2020

Conversation

florisvdh
Copy link
Member

An aggregated points object can now be returned (FYI @Patrikoosterlynck):

units_7220 If TRUE, an sf object of type-7220-locations is
returned at the population unit level.
To accomplish this, the data source is aggregated by unit_id.
Multiple points belonging to the same unit are replaced by their
centroid, their area attribute is summed (if all values are known)
and for other attributes the maximum value is returned.

With units_7220 = TRUE, variable point_id is dropped and
an extra attribute variable nr_of_points is added.
It represents the number of points that belong to each unit.

This will be merged in the release candidate for version 0.2.0 (branch rc0.2)

@florisvdh florisvdh merged commit b06f24f into rc0.2 Apr 10, 2020
@florisvdh florisvdh deleted the habitatsprings branch April 10, 2020 19:37
@florisvdh florisvdh mentioned this pull request Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant