blender_prep/README.md

17 wiersze
1.5 KiB
Markdown
Czysty Zwykły widok Historia

2019-09-20 17:56:55 +00:00
Script to expedite preparing DEM's for Blender.
2019-09-20 18:57:00 +00:00
As described in Daniel Huffman's [Creating Shaded Relief in Blender](https://somethingaboutmaps.wordpress.com/2017/11/16/creating-shaded-relief-in-blender/), significant work is necessary to find and prepare elevation data prior to using it in Blender. This work often includes mosaicing, reprojecting, clipping, resampling, rescaling, and translating DEM's(digital elevation models). While some of these steps require decisions specific to the project, many are repetitive. This repo contains a bash script which utilizes open source command line tools to expedite this work.
Requirements: [GDAL/OGR](https://gdal.org/)
#How to Use
1) Clone/download the repo.
2) Make sure GDAL/OGR is installed. (gdalinfo --version)
3) Create a vector specifying your area of interest and add to the project folder. Default points to "box.geojson", to update open "blenderize.sh" with your text editor of choice and update the "bounding_box" variable.
4) Find and download DEM(s) which cover at least your area of interest. Err on the side of including more than you think you might need. Add your DEM's to the project folder.
5) Specify your target projection by updating the "target_projection" variable in "blenderize.sh". EPSG codes or proj4 strings are acceptable.
6)Open a command line window, navigate to the project folder, and run:
sh blenderize.sh [space-separated list of DEM's]
For example:
sh blenderize.sh my_dem.tif //just one DEM
sh blenderize.sh *.tif //all DEM's in project folder