Skip to content

Get topography data from any part of the world and trasforms it in a 3D STL file ready to be printed. This code with also help you to improve resolución and make propotion ajustments for ideal visualization !!

License

Notifications You must be signed in to change notification settings

Usuy-Leon/Topo3D-world

Repository files navigation

Topo3D-world

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.

Screenshot From 2025-07-25 15-05-38

Convert Digital Elevation Model (DEM) files into 3D printable mountain models with proper scaling and automatic sizing.

output


How to Download a GeoTIFF from OpenTopography

  1. Go to the website: Visit the specific OpenTopography link for the Shuttle Radar Topography Mission data.
  1. Choose your area: Use the map or tools on the site to select the exact area you want the elevation data from.
  2. 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)

Use the Script

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.

Install required Python packages

  pip install numpy rasterio numpy-stl

2.Path to file

Modify these paths in the script

 raw_geotiff = "path/yourfiles/terrain.tif"
  output_stl = "path/yourfiles/model.stl"

3. Run the script

  python geotiff_to_stl.py

please colaborate to make it easier to new users

Enjoy!

Feel free to add or chage this repo, for spanish version check the LEEME.md

About

Get topography data from any part of the world and trasforms it in a 3D STL file ready to be printed. This code with also help you to improve resolución and make propotion ajustments for ideal visualization !!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages