Kirra imports Surpac surface files as triangulated 3D surfaces. The Surpac format uses a paired-file system: an STR file containing vertex coordinates and a DTM file containing triangle topology.
Screenshot coming soon
.dtm and .str files togetherterrain.dtm + terrain.str)| File | Contains | Example |
|---|---|---|
.str (String) |
Unique vertex coordinates (X, Y, Z) | terrain.str |
.dtm (Digital Terrain Model) |
Triangle connectivity (which vertices form each triangle) | terrain.dtm |
Both files are required – the DTM references vertex positions defined in the STR.
Important: Surpac files store coordinates as Northing (Y), Easting (X), Elevation (Z) – the opposite of the typical X, Y, Z convention. Kirra handles this swap automatically on import and export.
The STR file stores unique 3D vertices with 1-based indexing:
filename, dd-Mmm-yy,,description
0, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000
32000, Y1, X1, Z1,
32000, Y2, X2, Z2,
...
0, 0.000, 0.000, 0.000, END
32000 indicates surface verticesThe DTM file defines how vertices connect to form triangles:
filename.str,
0, 0.000, 0.000, 0.000, END
OBJECT, 1,
TRISOLATION, 1, neighbours=no,validated=true,closed=no
1, 2, 3, 1, 0, 0, 0,
2, 3, 4, 1, 0, 0, 0,
...
END
Each triangle line contains: Triangle ID, Vertex 1, Vertex 2, Vertex 3, and three neighbour references (0 = boundary edge).
Once imported, the surface is available for:
You can export surfaces back to Surpac format via File > Export > Surpac DTM (Surfaces). Kirra generates both .dtm and .str files with vertex deduplication and proper 1-based indexing.
| Problem | Solution |
|---|---|
| “Missing files” error | Both .dtm and .str files must be selected together and share the same base filename |
| Surface appears empty | Check that the DTM file references valid vertex indices from the STR file |
| Coordinates look wrong | Verify your Surpac files use the expected Northing/Easting order |