syncpoint / terrain-rgb Goto Github PK
View Code? Open in Web Editor NEWA detailed tutorial about how to convert geo-tiff files containing Digital Elevation Model (DEM) data into a pyramid of png tiles
A detailed tutorial about how to convert geo-tiff files containing Digital Elevation Model (DEM) data into a pyramid of png tiles
Hey I just stumbled upon this repository and wanted to say that the artefacts in the alps are actually intended behavior. As far as I see it the dark areas are just elevations with heights that exceed what can be stored in the green channel (I guess > ~3300m) and therefore they appear darker.
If you compare it with the official documentation you can see the same effect in the alps there: https://docs.mapbox.com/data/tilesets/reference/mapbox-terrain-dem-v1/
According to https://github.com/mapbox/mbtiles-spec/blob/master/1.3/spec.md a MBTiles
The metadata table is used as a key/value store for settings. It MUST contain these two rows:
name (string): The human-readable name of the tileset.
format (string): The file format of the tile data: pbf, jpg, png, webp, or an IETF media type for other formats.
format
is currently missing
I'm a absolute newbie when it comes to docker, but I've been stuck with the docker create . -t rio
command.
HOWEVER docker build . -t rio
WORKED for me. I guess this is me suggesting an edit? ๐ฌ
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 });
A huge amount of tiles do not contain any data. In order to speed up the process of tile creation and to save lots of space we should skip all areas that do not contain any elevation data.
rasterio has been updated to a new version, so we should update all tools to their current version.
thanks for the great tutorial!
it helped me greatly to implement https://github.com/mhaberler/embedded-DEM-lookup
Michael
Since MapBox also provides tiles with a size of 512x512 pixels we should also show how to create those.
By default, 256x256 tiles are returned. You can use @2x to request 512x512 tiles. Requesting 512x512 tiles is sometimes preferable as it means fewer total requests over a given area.
Source: MapBox Terrain RGB
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.