
satprint -- Satellite Terrain to 3D-Printable Models
Pick a place on a map. Get a watertight STL of its terrain and buildings, a multi-color 3MF ready for a multi-material printer, and a GLB with satellite imagery draped over it.
satprint turns real elevation data into a solid relief model scaled to your
printer: the terrain on top, four walls and a flat base. Cities can carry their
OpenStreetMap buildings, and the multi-color 3MF splits the model into land,
water, buildings, roads and a border frame on four filaments.
Documentation: suchanek.github.io/satprint
satellite elevation -> heightmap (meters) -> STL solid
AWS Terrain Tiles clamp sea, smooth, terrain + walls + base
(SRTM, ASTER, GMTED) scale to mm, exaggerate + OSM buildings
+ land/water/border 3MF

Mount Fuji from real elevation tiles, 120 mm wide with a 5 mm frame, 1.5x
exaggeration:

Features
- Real elevation, no API key. Elevation comes from the public
AWS Terrain Tiles set
(SRTM, ASTER, GMTED and others), cached under
~/.cache/satprint/tiles. You
can also upload a 16-bit PNG, TIFF or GeoTIFF heightmap, or use a procedural
demo terrain that needs no network.
- Print-aware output. True plan scale, vertical exaggeration or a fixed
relief height, base thickness, sea-level flattening, Gaussian smoothing and
grids up to 1024 columns. Each build reports model size, scale, triangle
count, volume and an estimated PLA weight.
- Watertight by construction. Every edge is shared by exactly two
outward-wound triangles, so slicers (Bambu Studio, PrusaSlicer, Cura,
Chitubox) load the STL without repair.
- Buildings from OpenStreetMap, as closed solids standing on the terrain.
Landmark towers keep their setbacks where OSM maps them as
building:part
shapes, domes, onion domes, cones and pyramids get their roof shapes, and
overlapping footprints are merged so no two solids pass through each other.
A few landmarks, such as the Sphere in Las Vegas, get exact shapes. Heights
are in true proportion by default, with a multiplier. OpenFreeMap, Overpass
or Overture Maps.
- Bridges over water from OpenStreetMap, as a raised deck on evenly spaced
piers, in the STL, GLB and 3MF. Deck heights are estimated from the banks.
- Roads from OpenStreetMap, as raised strips that follow the terrain, in
the STL, GLB and 3MF. Which roads are drawn depends on the model scale.
- Multi-color 3MF. Land, water, buildings, roads and an optional border
frame are separate parts of one object, already on filaments 1 to 4 in
Bambu Studio and centered on the plate. The border shares the land
filament, and bridges print with the roads.
Water is the OSM sea, rivers and lakes, plus the flattened sea.
- Border frame. A rectangular rim around the model, 1 mm above the base by
default, in the STL, GLB and 3MF.
- Textured GLB. Satellite imagery draped over the terrain and the roofs,
for viewing in Blender, macOS Quick Look or a web viewer. The web preview
shows it.
- Search and presets. Search any place by name, or pick one of 70 presets:
40 cities and landmarks, which turn buildings on, and 30 mountains and
landscapes.
- Web app, CLI and REST API. Builds run as background jobs, and the page
shows each stage with tile counts. Interactive API docs are at
/docs.
Install
satprint needs Python 3.12 or 3.13. It is on PyPI:
pipx install satprint # or: pip install satprint
pipx install "satprint[overture]" # with the Overture Maps building source
From a clone, for development:
git clone https://github.com/suchanek/satprint.git
cd satprint
poetry install # add --extras geotiff for GeoTIFF georeferencing
See Installation for Docker.
Run the web app
satprint serve # http://127.0.0.1:7417
satprint serve --host 0.0.0.0 --port 7417
- Choose an area. Search for a place, pick a preset, click Draw
rectangle and drag on the map, or type the bounds. Dragging the map
afterwards slides it under the rectangle, so you can move the area without
redrawing it. The hint line shows the
real size of the area and the model it makes.
- Set the print. Model width, base thickness, vertical exaggeration
(1.5x to 3x reads well for most landscapes; 1x is true scale) or a fixed
relief height. Resolution sets the grid columns: 256 is fine for FDM, 512
to 1024 for resin. Check Add buildings for a city, and Multi-color
3MF plus a Border frame width for a multi-material print.
- Generate. The textured model appears in the 3D preview. Download the
STL to print in one color, the 3MF to print in several, or the GLB to view.
After you change the code, restart satprint serve to pick up the change.
Print in several colors
The multi-color 3MF holds up to five parts on up to four filaments, so it
fits an AMS lite:
| Filament |
Part |
Display color |
| 1 |
land |
green |
| 2 |
water |
blue |
| 3 |
buildings |
white |
| 4 |
roads |
dark gray |
| 1 |
border |
green |
The border prints in the land filament, and bridges are in the roads part. Parts without geometry are left out, and the filaments after them move
up one.
To print it on a Bambu printer with an AMS:
- In Bambu Studio, set up one filament per color, up to four, in the left
sidebar, or sync them from the AMS.
- Open the 3MF. Bambu Studio reports that it loads "geometry only", as it does
for any 3MF it did not write; the part names and filaments still come
through. The model lands centered on the plate you chose: 256 mm (A1, P1, X1) or
180 mm (A1 mini).
- To check or change a part's filament, open the object list: in the left
sidebar, under Process, click Objects and expand the model.
- Slice. The preview shows each part in its filament's color.
Other slicers open the same parts with every part on filament 1; assign the
filaments by hand. If Bambu Studio says a G-code path goes beyond the plate
boundaries, drag the prime tower inward; see
Print in several colors.
Command line
# Matterhorn, 120 mm wide, 2x exaggeration
satprint build --bbox 45.93 7.58 46.02 7.72 --width 120 --exaggeration 2 -o matterhorn.stl
# Fixed 15 mm relief, smoothed, with a hillshade preview PNG
satprint build --bbox 36.02 -112.25 36.20 -111.95 --relief 15 --smoothing 1 \
--preview canyon.png -o grand-canyon.stl
# Midtown Manhattan with buildings, plus a textured GLB
satprint build --bbox 40.7414 -73.9997 40.7684 -73.9683 --width 150 \
--buildings --glb midtown.glb -o midtown.stl
# The Golden Gate Bridge, with piers at most 20 mm apart
satprint build --bbox 37.805 -122.490 37.835 -122.465 --bridges -o golden-gate.stl
# San Francisco with buildings and roads, roads as their own 3MF part
satprint build --bbox 37.745 -122.45 37.775 -122.41 --width 150 --buildings \
--roads --3mf sf.3mf -o sf.stl
# Venice as a four-color 3MF: land, water, buildings and a 5 mm border frame
satprint build --bbox 45.43 12.32 45.446 12.343 --buildings --frame 5 \
--3mf venice.3mf -o venice.stl
# From your own DEM in meters, 12 km across
satprint build --file dem.tif --ground-width 12000 -o dem.stl
# Offline demo terrain
satprint build --synthetic -o demo.stl
Bounds are SOUTH WEST NORTH EAST in decimal degrees. The command prints a
JSON summary: elevation range, scale, triangle count, volume and a watertight
check. satprint build --help lists every option.
REST API
| Method |
Path |
Purpose |
GET |
/api/presets |
Named example areas, grouped |
GET |
/api/search?q=... |
Place search; each hit has a bbox |
POST |
/api/upload |
Multipart heightmap upload; returns an upload_id |
POST |
/api/model |
Build a model; returns stats, a preview PNG and download URLs |
POST |
/api/jobs |
Same body as /api/model, built in the background; returns a job_id |
GET |
/api/jobs/{id} |
Job status, current stage with done and total, and the /api/model response as result when done |
GET |
/api/model/{id}/{name}.stl |
Binary STL |
GET |
/api/model/{id}/{name}.glb |
Textured GLB, when glb_url is set |
GET |
/api/model/{id}/{name}.3mf |
Multi-color 3MF, when threemf_url is set ("multicolor": true) |
GET |
/api/model/{id}/heightmap.png |
Hillshade preview |
curl -s localhost:7417/api/model -H 'content-type: application/json' -d '{
"source": "terrarium",
"bbox": {"south": 35.28, "west": 138.65, "north": 35.45, "east": 138.82},
"width_mm": 150, "exaggeration": 1.2, "resolution": 512, "name": "fuji"
}' | python -c 'import json,sys; j=json.load(sys.stdin); print(j["stl_url"], j["info"]["height_mm"])'
How the scaling works
- Plan scale is
width_mm / ground_width_m. The depth follows the true
aspect ratio of the area, from great-circle distances along the center lines
of the bounding box.
- Vertical scale is the plan scale times the exaggeration, so
exaggeration = 1 is a true-scale model. With relief_mm set, the vertical
scale puts the highest point exactly that far above the base, and the
effective exaggeration is reported back.
- Lakes. Water bodies are set to the lower shore of their outline, since
elevation data over water is noisy and can print a lake as a raised plateau.
- Sea level. Samples below 0 m (bathymetry in the source data) are clamped
to 0 by default, so coastlines print as a flat plane.
- Buildings use the plan scale for their heights, so
building_scale = 1
keeps them in true proportion to the map.
Data sources
| Data |
Source |
Cache |
| Elevation |
AWS Terrain Tiles |
~/.cache/satprint/tiles |
| Imagery (GLB texture) |
Esri World Imagery |
~/.cache/satprint/imagery |
| Buildings, bridges, roads and water |
OpenFreeMap vector tiles, zoom 14, rebuilt from OSM about weekly |
~/.cache/satprint/vtiles |
| Buildings, fallback; roof shapes |
Overpass API, 0.01° tiles |
~/.cache/satprint/osm |
| Buildings, optional |
Overture Maps GeoParquet on S3, per release |
~/.cache/satprint/overture |
| Place search |
Nominatim, one request per second |
in memory |