From 74c8b27402cba1765ec65b826956961497d94254 Mon Sep 17 00:00:00 2001 From: Rob Emanuele Date: Tue, 18 Jan 2022 14:34:23 -0500 Subject: [PATCH] Add configuration for IO LULC 9 class (#34) * Add configuration for IO LULC 9 class * Update CHANGELOG --- CHANGELOG.md | 1 + pccommon/render.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4b375c8..8c0c86e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Errors are logged using exceptions and including request metadata [#14](https://github.com/microsoft/planetary-computer-apis/pull/14) +- Configuration for io-lulc-9-class [#34](https://github.com/microsoft/planetary-computer-apis/pull/34) ### Fixed - Updated search limit constraints to avoid 500s [#15](https://github.com/microsoft/planetary-computer-apis/pull/15) - Fixed STAC `describedby` and `preview` links [#33](https://github.com/microsoft/planetary-computer-apis/pull/33) diff --git a/pccommon/render.py b/pccommon/render.py index 6f936da9..05705d97 100644 --- a/pccommon/render.py +++ b/pccommon/render.py @@ -160,6 +160,13 @@ def should_add_item_links(self) -> bool: mosaic_preview_coords=[-0.8749, 109.8456], minzoom=4, ), + "io-lulc-9-class": DefaultRenderConfig( + assets=["data"], + render_params={"colormap_name": "io-lulc-9-class"}, + mosaic_preview_zoom=4, + mosaic_preview_coords=[-0.8749, 109.8456], + minzoom=4, + ), "jrc-gsw": DefaultRenderConfig( assets=["occurrence"], render_params={"colormap_name": "jrc-occurrence", "nodata": 0},