spatialthoughts / RandomDEMGenerator

An experiment to create random DEMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random DEM Generator

Honestly the outputs still look a bit ropey - would love some interesting patches to make the DEM's produced look more natural, with pronounced mountain ranges etc.

What is the point of this? Random DEMS could be useful for making fantasy maps, testing DEM processing routines, trying out cartographic approaches etc.

Setup

Make sure you have GDAL and GDAL Python bindings installed.

You need these pip packages:

pip3 install numpy scipy

Usage

./random_dem.py

Sample Output

Example Output

Issues

The GDAL Georeferencing is still broken so it does not open nicely in QGIS.

Other things to try

It seems (thanks Raymond for the hint!) that you can make nice procedurally generated landscapes in Blender:

https://docs.blender.org/manual/en/2.93/addons/add_mesh/ant_landscape.html

Credits

Assembled by Tim Sutton and Vctoria Neema 2021

License

Unknown, heavily derived from these two sources:

http://www2.geog.ucl.ac.uk/~plewis/geogg122-2011-12/dem1.html

and

https://gis.stackexchange.com/questions/290776/how-to-create-a-tiff-file-using-gdal-from-a-numpy-array-and-specifying-nodata-va

About

An experiment to create random DEMS


Languages

Language:Python 100.0%