Skip to content

Conversation

@blacha
Copy link
Member

@blacha blacha commented Oct 12, 2025

Motivation

The current igor hillshades are one band uint8 these work great inside of GIS tools like QGIS where users can configure these hillshades to "mulitply" the underlying layers,

For web based tools like maplibre it does not have the same level of layering options and only really allows "overlay" where a one band greyscale image does not work.

The goal here is to convert the one band uint8 into a transparency based layer so it can be overlayed inside maplibre and qgis with a standard overlay function.

To do this the colors are mapped from 0 to RGBA 0,0,0,255 (black) and 255 to 0,0,0,0 (transparent)

0   -> 0 0 0 255
255 -> 0 0 0 0

Using QGIS with the base layer and "multiply" vs QGIS with the opacity output

Multiply Overlay
bq32-multiply bq32-basemaps-simple

Modifications

Adding an additional color ramp for one band hillshades to make a opacity based hillshade

Verification

@github-actions
Copy link
Contributor

Individual Updates

new-zealand_dem_hillshade_igor

Vector Style Update

Vector Style updated for st_topolite-hillshade-v2

@github-actions
Copy link
Contributor

Individual Updates

new-zealand_dem_hillshade_igor

Vector Style Update

Vector Style updated for st_topolite-hillshade-v2

@github-actions
Copy link
Contributor

Individual Updates

new-zealand_dem_hillshade_igor

Vector Style Update

Vector Style updated for st_topolite-hillshade-v2

@github-actions
Copy link
Contributor

Individual Updates

new-zealand_dem_hillshade_igor

Vector Style Update

Vector Style updated for st_topolite-hillshade-v2

@github-actions
Copy link
Contributor

Individual Updates

new-zealand_dem_hillshade_igor

Vector Style Update

Vector Style updated for st_topolite-hillshade-v2

@blacha blacha marked this pull request as ready for review October 27, 2025 22:56
@blacha blacha requested review from a team as code owners October 27, 2025 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant