hajkmap / Hajk

A modern, full-featured OpenLayers based map viewer and editor
MIT License
122 stars 45 forks source link

Raster rendering style - cumulative strech using extent and local values automatically for 2D and "3D" data #1040

Open JakubPelka opened 2 years ago

JakubPelka commented 2 years ago

Problem: Presenting height, slope or other analytic data for municipality region in raster format is now nearly impossible. It is due one style of a raster for whole extent of the region. While for example height map will look good for extent of whole municipality than after zooming in local details will be impossible to see due to small color range. It is a problem with all different data that in big geographic range will have values for ex. from 1-1000 but in some local scale for ex. only 50-55. Global gradient will be not enough to make those local values readible.

Solution: In QGIS there is a button that is streching color range based on local values in the visible extent. After clicking it - new color range (using same gradient as originally) is created and used. I believe that while zooming in and out in HAJK it is possible to run that calculation automatically. It could be a function connected to the single background layer - NOT for all backgrounds in the map. Whole_

Graphic shows how it looks today, and how it may look after rescaling - most to the right. Left- whole range, center - without recalculating, right after recalculating

jacobwod commented 2 years ago

The way I see this is that - although this is a valid problem - the solution to this issue is not part of Hajk as a webGIS platform, but rather each organisation's implementation of it (i.e. what content one decides to put into Hajk).

Isn't this something that can be set in the WMS service's settings on a per-layer-basis?