Skip to content

Commit 8c4d0bb

Browse files
committed
added rescale to be picked up
1 parent efe3d50 commit 8c4d0bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eoapi_maps_plugin/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,14 @@ def _get_render_data(self, collection: dict, style: str = "default") -> dict:
9999
colormap_name = collection["renders"][style].get("colormap_name")
100100
resampling = collection["renders"][style].get("resampling")
101101
expression = collection["renders"][style].get("expression")
102+
rescale = collection["renders"][style].get("rescale")
102103
render_data = {
103104
"colormap_name": colormap_name,
104105
"resampling": resampling,
106+
"rescale": rescale,
105107
}
106108
if expression:
107109
render_data["expression"] = expression
108-
render_data["asset_as_band"] = "True"
109110
else:
110111
render_data["assets"] = assets
111112
elif collection.get("item_assets", {}).get(self.FALLBACK_ASSET):

0 commit comments

Comments
 (0)