From c07c23e3054bbaeac10776b9e526fe65c4a49ae0 Mon Sep 17 00:00:00 2001 From: Nick Underwood Date: Fri, 20 Sep 2019 13:57:00 -0500 Subject: [PATCH] Update readme --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c71263d..318e235 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ Script to expedite preparing DEM's for Blender. -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. \ No newline at end of file +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 \ No newline at end of file