Get topography data from any part of the world and trasforms it in a 3D STL file ready to be printed. Improve resolution beyond the ooriginal Geotiff file.
The National Geospatial-Intelligence Agency (NGA) and NASA. Created the most complete, high-resolution topographic map of Earth, which is very useful for many scientific and practical purposes. The Shuttle Radar Topography Mission (SRTM) collected detailed elevation data for almost the entire Earth. It used a special radar system flying on the Space Shuttle Endeavour. This project data is open source and free.
Convert Digital Elevation Model (DEM) files into 3D printable mountain models with proper scaling and automatic sizing.
- Go to the website: Visit the specific OpenTopography link for the Shuttle Radar Topography Mission data.
- Choose your area: Use the map or tools on the site to select the exact area you want the elevation data from.
- Select data format: Make sure to pick the GeoTIFF format if there’s an option, as this is a standard file type for elevation and raster data. (do not add any vizualization extra features)
The script does four main modifications (1) Change all units to meters. (2) Scale height for vizualization (3) Improves resolution (only for vizualization not real data) (4) Trasforms GeoTiff to STL (5) Adds a base and walls to make it 3D compatible.
pip install numpy rasterio numpy-stl raw_geotiff = "path/yourfiles/terrain.tif"
output_stl = "path/yourfiles/model.stl" python geotiff_to_stl.pyplease colaborate to make it easier to new users
Enjoy!

