How to turn a GeoTIFF or DEM into an STL
A GeoTIFF, DEM or elevation grid holds heights, not a shape you can print. TerraPrinter turns it into a closed, printable model with a base, right in your browser. And for most places you don't need a file at all.
Do you need your own file?
Often not. TerraPrinter already has elevation for the whole Earth, and uses the best it has for the size of your model:
- Standard terrain: Copernicus GLO-30, about 30 m, worldwide. It is newer than SRTM and also covers the far north, so loading SRTM tiles rarely adds anything.
- Laser terrain: LiDAR down to 1 m in the US, Canada and parts of Europe, on models up to about 8 km across at 200 mm. See LiDAR to STL.
- Satellite terrain: GEM-15, a 15 m bare-earth model, for small models in most other countries.
The chip at the bottom of the map shows which one your area gets, such as Standard terrain 30 m. Load your own file when you have something sharper or newer: a drone survey, a 1 m model from your national mapping agency, or a site that has changed since the data was made.
Files it can read
- GeoTIFF (.tif, .tiff), including cloud-optimised GeoTIFF (COG) and BigTIFF. The first band is read as the height.
- Esri ASCII grid (.asc, or .grd when it is an ASCII grid with ncols, nrows, xllcorner, yllcorner and cellsize lines).
- XYZ grid (.xyz, .csv, .txt): one point per line, x y z, separated by spaces, commas or semicolons. It has to be a regular grid. Scattered points are not read; save them as LAS instead.
- LAS and LAZ point clouds: see LiDAR to STL.
- .prj files, loaded together with the data, which say which map grid it uses.
SRTM .hgt tiles, ERDAS .img, .bil and NetCDF files can't be loaded as they are. Convert them to GeoTIFF first, for example with QGIS or GDAL's gdal_translate.
A greyscale heightmap picture (PNG or JPEG) has no position on the map, so it goes in the heightmap to STL converter instead.
Get the file ready
- Heights in metres or feet. The app reads the unit from the file when it says, and you can switch between metres, feet and US survey feet. Heights below −500 m or above 9,000 m are treated as no-data.
- No-data cells are skipped: the file's own no-data value, and common ones such as −9999 and −32768. Small gaps are filled from the data around them.
- North up. Rotated rasters are refused. Save them north-up first, for example with gdalwarp.
- Compression. Uncompressed, LZW and Deflate are safe. If a file uses a compression the app can't read, it says so.
- Size. A GeoTIFF is read in pieces straight from the file, so large files work. ASCII and XYZ grids over 36 million cells are thinned to fit in memory, so clip a huge survey to your area first to keep its full detail.
1. Load it in TerraPrinter
Open TerraPrinter, go to step 3, Features, and click Your own elevation data, just under Terrain. Or open the app with it ready. Click Load elevation files and pick your file, or drop it straight onto the map. Pick several tiles of one survey at once, with their .prj files if they have them.
The file is read in your browser and never uploaded. A dashed outline on the map shows where it lies, and the row shows its grid size, file size and map grid. Your own data works for places on Earth.
Click Fit the area to my data to draw the model area over it, or draw any area of your own. Inside it, the model uses your data, and around the edges of your data it eases into the normal elevation over about 120 m.
2. If it asks for the map grid
Most files say which map grid (coordinate system) they use, and the app reads it. When a file doesn't, the row asks Which map grid are its coordinates in? Type its EPSG code, which is usually in the data's notes, and click Use. Or load its .prj file.
Built in are longitude and latitude (4326), Web Mercator (3857), UTM zones, and national grids such as British National Grid (27700), Irish Transverse Mercator (2157), Lambert-93 (2154), RD New (28992), Swiss LV95 (2056), SWEREF99 TM (3006) and NZTM (2193). Other grids work when the file or its .prj describes them in full.
Files on the old NAD27 datum can't be used. Save them in NAD83 or WGS 84 (UTM, for example) and load them again.
3. Generate and check what your data did
Press Generate 3D Model. In the model window, the Terrain chip says Your own elevation data and its grid size, and the row in Features says how much of the model your data shaped.
- The last model didn't touch your data: the area is somewhere else. Click Fit the area to my data.
- Its heights sit about 30 m above the map's here: your data uses a different height reference, which is common in drone surveys with GPS heights. Tick Match its heights to the map so its edges meet the land around it, and generate again.
- If your data includes buildings and trees (a surface model, not bare ground), tick It includes buildings and trees. The app also guesses this from how bumpy the ground is. A button then turns off the map's own buildings and trees, so they don't print twice.
Then download the STL or 3MF as for any model. Vertical exaggeration works on your data too; see choosing vertical exaggeration.
How much detail will print
A print can only hold so much. On a 200 mm print, or anything bigger, the terrain surface has about 400 points along the longer side of the area; smaller prints have about 2.2 per millimetre. Divide the longer side of your area by 400 to see the finest step it can show:
- a 400 m site: about 1 m;
- a 2 km area: about 5 m;
- a 10 km area: about 25 m.
So a 0.5 m drone survey shows its full detail only on a small site. On a bigger area your data is averaged to the print's grid, which is still more accurate than coarser data, but the smallest bumps won't show.
Hyvä tietää
- Loaded files are kept on this device, so they are still there after a reload. GeoTIFFs over 2 GB are not kept; load them again next time.
- Links only say that you used your own data. Anyone else who opens the link sees a note and the model with the standard elevation.
- Your data is used for every model on Earth except Large project tiles and models with Flat model on.
- To get elevation out instead, Elevation (GeoTIFF) under More formats in the download window saves the model's heights in metres for GIS apps.