mapbox / mapbox/mapbox-gl-js

Preserve precision of raster-dem source when rendering hillshade layers

Open
#6,027 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

cross-platform :tv: refactoring :building_construction:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

When zooming far in, it looks like both the mapbox.terrain-rgb and my own bathymetry based terrain rgb tiles have only meter vertical resolution. However, at least my bathymetry data set has higher resolution.

Here is an example with the bathymetry tiles.
screen shot 2018-01-19 at 23 29 30

Here is an example with mapbox.terrain-rgb.
screen shot 2018-01-19 at 23 31 40

Do you have an example where mapbox.terrain-rgb shows shadows from vertical sub-meter resolution?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported zoomed-in hillshade behavior using the bathymetry and mapbox.terrain-rgb examples, then trace raster-dem precision through hillshade rendering. Done means sub-meter vertical detail is preserved in the rendered shadows for both sources.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.