Blog › Map an Exact Boundary: Importing Your Own GeoJSON Area
Map an Exact Boundary: Importing Your Own GeoJSON Area
Dropdowns list official regions and a box tool draws rectangles — but sometimes the area you need is neither. A project boundary, a national park drawn exactly to its gate lines, a watershed clipped to a gauge station: when the shape matters, the terrain app takes the boundary from you, as a GeoJSON file.
What the importer accepts
Press Import GeoJSON area in the Region panel and pick a .json or .geojson file (up to 20 MB). The parser is forgiving about the wrapper — all of these load:
| Your file contains | Accepted |
|---|---|
A bare Polygon geometry | Yes |
A bare MultiPolygon geometry | Yes |
A Feature with a polygon geometry | Yes |
A FeatureCollection (first feature used) | Yes |
A GeometryCollection with polygons | Yes |
The minimal file is exactly what the spec suggests — coordinates in [longitude, latitude] order:
{
"type": "Polygon",
"coordinates": [[
[7.58, 45.93],
[7.73, 45.93],
[7.73, 46.03],
[7.58, 46.03],
[7.58, 45.93]
]]
}
That rectangle is the Matterhorn box from the case study — five corners, one closed ring, first point repeated at the end. MultiPolygon files work too: every polygon becomes part of the same map, which is how you map an archipelago or a protected area with two disjoint zones.
Where the boundary goes
Once imported, the polygon becomes the map's edge — the same edge a country would have. Every product of the app follows it:
- The 3D relief clips to the polygon; terrain outside the line is gone.
- Every export — PNG, poster, STL, OBJ, GLB, heightmap, texture, GeoTIFF — produces your shape, not a bounding rectangle.
- The heightmap covers exactly the polygon, ready for a game landscape whose playable area is your real boundary.
Two naming details worth knowing: if your GeoJSON features carry a properties.name, the map uses it as the region title; otherwise the file's name is used. And the import is local like everything else — the file is read in your browser and never uploaded.
Where it beats a box
A drawn box includes everything inside the rectangle — neighbours, coastline, the wrong side of a border. For a terrain poster of a national park whose boundary is a published polygon, the difference is the whole image: the park's real edge versus a rectangle with the park somewhere inside it. Watersheds, planning areas, municipal limits, heritage-site perimeters — wherever a precise line exists as GeoJSON, the map can take the shape from the file and keep it through every export.
Getting a polygon in the first place
Most open-data portals publish boundaries as GeoJSON or Shapefile (convert Shapefiles with any GIS tool). If your polygon is in another projection, convert it to WGS84 longitude/latitude first — the map's coordinates are plain WGS84, so the file needs no CRS header. Close every ring (first coordinate repeated at the end) and keep coordinates ordered [lng, lat]: those two are the only formatting rules that catch people out.
Try it while it's fresh
The whole tool runs in your browser — pick a region, shape the relief, export. No account, nothing to install.
Open the terrain app