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

feat: aggregate earth engine feature collection (DHIS2-11963) #428

Merged
merged 63 commits into from
Feb 28, 2022

Conversation

turban
Copy link
Collaborator

@turban turban commented Jan 11, 2022

To support the new "building footprints" dataset from Google Earth Engine we need to be able to count the number of building features within an area polygon. This is different than the other EE layers we have which are all raster/pixel based.

Partly fixes: https://jira.dhis2.org/browse/DHIS2-11963

The issue was solved by adding a new format layer option. If format is FeatureCollection we will count the number of features within an area.

Number of buildings within 100 m from a health facility:
Screenshot 2022-02-28 at 15 51 24

It also works for multiple (catchment) areas:

Screenshot 2022-02-28 at 15 54 30

Buildings that are only partly within the boundary will also be counted.

There will be a bigger PR in maps-app to support the new building footprints layer.

@turban turban marked this pull request as draft January 11, 2022 11:22
@turban turban marked this pull request as ready for review February 28, 2022 14:57
@turban turban merged commit 187e2c9 into master Feb 28, 2022
@turban turban deleted the feat/DHIS2-11963 branch February 28, 2022 15:12
dhis2-bot added a commit that referenced this pull request Feb 28, 2022
# [3.4.0](v3.3.0...v3.4.0) (2022-02-28)

### Features

* aggregate earth engine feature collection (DHIS2-11963) ([#428](#428)) ([187e2c9](187e2c9))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 3.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants