Skip to content
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

Terrain Visualization Offset in Mapbox DEM/RGB #13417

Open
nthh opened this issue Feb 26, 2025 · 0 comments
Open

Terrain Visualization Offset in Mapbox DEM/RGB #13417

nthh opened this issue Feb 26, 2025 · 0 comments

Comments

@nthh
Copy link

nthh commented Feb 26, 2025

mapbox-gl-js version: 3.9.1

browser: safari/chrome

When using Mapbox terrain data (both DEM and RGB formats), there appears to be a significant spatial offset in the terrain visualization. This offset can be up to 20 meters as observed in the Aspect terrain visualization.

Image

Ridge from OSM

Image

Aspect derived from USGS 3DEP products

The attached screenshot shows a clear misalignment between terrain features and their visualization
The red markers and line demonstrate the offset between where terrain features should be and where they are actually rendered

Reproduction Steps

Load a map with Mapbox terrain data (DEM or RGB)
Compare terrain visualization with known ground features or other reference data
Observe the spatial offset (approximately 20m in some cases)

Expected Behavior

Mapbox terrain data should accurately align with the actual geographic features on the map. Terrain visualizations like aspect, slope, and elevation should precisely match the underlying topography without any spatial offset.

Actual Behavior

Terrain visualizations are offset by approximately 20 meters from their true geographic positions. This misalignment is consistent across different locations and is observable in both DEM and RGB terrain formats. The offset creates inaccurate representations of terrain features, particularly noticeable when comparing with winter satellite imagery where snow patterns don't align with the expected terrain aspects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant