-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new Earth Engine format and functions
Implement: https://dhis2.atlassian.net/browse/DHIS2-16097 Update to the EarthEngineWorker - `format` now needs to be passed explicitly ("Image", "ImageCollection" and "FeatureCollection" are supported) - `periodReducer` can be specified to reduce an ImageCollection to a single Image (eg. get a monthly image from a daily dataset) - `cloudScore` can be specified to mask clouds on ImageCollection - `style` now: - replaces `params` (object with min, max and palette - eg, elevation) - replaces `legend` (array of classification - eg. landcover) - supports FeatureCollection styling (object with color and strokeWidth - eg. buildings) - `unmaskAggregation` gives a default value to NULL pixels for aggregation - `useCentroid` to only count pixels if their centroid is in the region, otherwise most pixels are counted and weighted by the fraction of the pixel within the region - `mask` is replaced by `maskOperator` (eg. gt, gte or false) and takes the min style value or 0 if not specified Upgrade to latest version for Earth Engine JavaScript API (custom build for web worker usage) Some code refactoring BREAKING CHANGE: Update to the EarthEngineWorker
- Loading branch information
Showing
9 changed files
with
1,651 additions
and
1,337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.