nst-guide / terrain Goto Github PK
View Code? Open in Web Editor NEWGenerate contours, hillshade, Terrain RGB, slope-angle shading tiles from elevation data.
Home Page: https://nst.guide
License: MIT License
Generate contours, hillshade, Terrain RGB, slope-angle shading tiles from elevation data.
Home Page: https://nst.guide
License: MIT License
https://github.com/tmnnrs/terrain-rgb
gdalbuildvrt -vrtnodata -9999 -input_file_list terrain50_filelist.txt terrain50.vrt
gdalwarp -r cubicspline -s_srs EPSG:4269 -t_srs EPSG:3857 -dstnodata 0 -co COMPRESS=DEFLATE USGS_NED_13_n34w117_IMG.img terrain_cubicspline.tif
rio rgbify -b -10000 -i 0.1 --max-z 9 --min-z 5 --format png terrain_cubicspline.tif terrain.mbtiles
Use gdaldem contour
to create a 10m contour dataset, then export to GeoJSON seq, run through Tippecanoe with the same layer name as the USGS 40' contours (also make sure that the 50m lines have the right key so they can be made bold).
Then it should be possible to switch effortlessly between an imperial and metric basemap, where the imperial basemap isn't just 40' converted into meters.
Instead of using gdaldem color-relief
to generate a raster with colors, you should investigate vectorizing the slope-angle (non-color-relief) raster. Then you only have to store the vector polygons of given slope angles.
So vectorize polygons while binning into whole-degrees? Or bin into Caltopo's color scheme bins?
Since we have to download DEM to generate slope, what if we need to generate a slope degrees layer of the entire U.S. with a 1-mater resolution?
the size of the needed DEM is very very huge. how do we download and store it to start working on it using GDAL?
I think the size of this DEM will be +700 TB !!!!
download.py
isn't working any more. I think it is because the nationalmap.gov
guys have changed their website/download links.
https://viewer.nationalmap.gov/tnmaccess/api/products
I've created a very similar tutorial terrain-rgb but still have issues with no-data regions. We both set the value of rgb(0,0,0)
to -10000
and I expected rio to omit all regions with this value. Unfortunately this does not work and my mbtiles container is full of tiles with an elevation of 0.
Do you see the same results and if not can you please give me a hint where to pay attention to?
Thank you for your help!
Best regards, Thomas
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.