mapbox / mapbox/rio-rgbify

Error occurred over-altitude terrain RGB raster tileset in Mapbox GL JS

Open
#33 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
125
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Hi, I use my DEM generate from Drone using OpenDroneMap. After that, I use gdal_warp to re-project my DSM to EPSG:3857 and transform the greyscale data into the RGB data using rio-rgbify and last step i use gdal2tiles.py to generate xyz tiles. But i got error when add tiles layer to Mapbox GL JS as the picture shown below.

        this.map.addSource("mydem", {
          type: "raster-dem",
          tiles: [
            "https://url/tiles/dem-rgb-v2/{z}/{x}/{y}.png",
          ],
          tileSize: 512,
          maxzoom: 18
        });
        this.map.setTerrain({ source: "mydem", exaggeration: 0.7 });

image

image

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

The issue names rio-rgbify, gdal_warp, gdal2tiles.py, and a Mapbox GL JS raster-dem source, but no repository file or test. Start by reproducing the described tile-generation and Mapbox setup and inspect the reported error; done means the terrain rendering problem is explained and a verified resolution or compatibility requirement is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
data, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.