-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adapt styling of 3d tiles and web tiles based on values of an attribute of interest #9
Comments
Difference between aggregation and resampling
|
It would be interesting to implement a color palette with a wide range of values that represents a certain attribute of interest, such as lake size, in the 3D tile dataset.
The color palette of the Cesium 3D tiles on the web interface is determined by a Cesium map config, which is currently set to match the colors of the web tiles that represent the same data as the Cesium tiles. The web tiles are static PNG image files that are created from a pre-determined color palette assigned to pixels in the GeoTIFF version of the data. So we would need to change the config for the web tiles in a few ways, before we adjust the Cesium 3D tiles config to match the colors of the web tiles.
Currently, there are 2 statistics in the web tiles config:
polygon_count
andcoverage
. Here is an example config for thecoverage
statistic:This template should perhaps should be adjusted in the following ways to implement styling based on an attribute:
property
should be set to the attribute of interest ("property": "lake_size"
)"name"
should reflect the property ("name": "lake_size"
)"aggregation_method": "mode"
or something similar, Robyn noted that mode might be a good option here because a single pixel may contain several lakes, especially as we zoom out to lower resolution and aggregate more pixels, so the color of that pixel perhaps should represent the most common lake size present in the pixel, rather than the average lake size in that pixel. If it was set to the average, this might result in a misleading visualization."resampling_method": "mode"
or keep as the"average"
"palette"
can be defined as a list of colors, such as ~10 colors ranging from different intensities of red to different intensities of blue. Ingmar suggested a range of color values here for his lake change dataset.Robyn noted we might need to adjust Raster.py if we wanted to compute more complicated stats such as combining multiple attributes.
Thanks to Ingmar for this suggestion, and to Robyn for explaining how the different file types relate to the configs and the contents of the config shown above.
The text was updated successfully, but these errors were encountered: