nst-guide / terrain

Generate contours, hillshade, Terrain RGB, slope-angle shading tiles from elevation data.
https://nst.guide
MIT License
88 stars 14 forks source link

Vectorize slope-angle shading polygons? #2

Open kylebarron opened 4 years ago

kylebarron commented 4 years ago

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?

kylebarron commented 4 years ago

I ran out of memory on my mac while trying to run gdal_polygonize.py on the binned color-ramp file.