GeoJSON import and export
GeoJSON is Siter's preferred interchange format for ad-hoc data movement. Imports and exports both round-trip cleanly, making GeoJSON the right format when you need to script transformations, move data through QGIS, or hand off a layer to a developer who'll work with it programmatically.
By the end of this lesson you should be able to:
- Export a GeoJSON file from a project
- Import a GeoJSON file into an existing project
- Recognize the geometry and attribute conventions Siter expects
Why GeoJSON over shapefile
| GeoJSON | Shapefile | |
|---|---|---|
| File count | One | Four-plus sidecars in a zip |
| Attribute names | No length limit | 10-character limit |
| Encoding | UTF-8 always | Encoding-dependent (.cpg) |
| Coordinate system | Embedded in the file | Separate .prj sidecar |
| Human-readable | Yes (it's JSON) | No (binary) |
| Round-trip in Siter | Cleanest | Lossy on attribute names |
For anything Siter-to-Siter or Siter-via-script, prefer GeoJSON. Shapefile remains relevant only for legacy interop with tools that don't speak GeoJSON.
Export
[TODO: FILL IN — GeoJSON export UI flow: layer or project scope → export menu → file save. Note whether the export includes Siter-specific extensions (custom properties for type code, attributes, explosives) and whether those survive a round-trip.]
A Siter GeoJSON export typically includes:
- Geometry per feature
- Type code as a property
- Attributes as properties (one per attribute)
- Explosives as nested properties (one entry per hazard division)
- Relationship metadata where applicable
[TODO: FILL IN — exact property naming conventions Siter uses on export and whether any data is dropped vs. preserved.]
Import
[TODO: FILL IN — GeoJSON import UI flow: layer panel or import menu → file picker → preview → confirm. Note the layer flavor default and any attribute-mapping step.]
After import:
- Verify the layer flavor matches your intent (see QD-visible vs background layers)
- Confirm type codes and attributes survived the import correctly
- Run analysis to verify the features participate as expected
Round-trip fidelity
A GeoJSON exported from Siter and re-imported into Siter should round-trip cleanly:
- Geometry is preserved exactly
- Type codes survive
- Attributes survive
- Explosives survive
- Relationships within the export survive (relationships to features outside the export are dropped)
This is the format to use when you want the destination Siter project to look identical to the source project's relevant subset.
CRS conventions
GeoJSON is conventionally in WGS84 (EPSG:4326) latitude/longitude. Siter expects this — if your source data is in a projected coordinate system, transform to WGS84 before importing.
[TODO: FILL IN — Siter's exact CRS expectations for GeoJSON, and any tolerance for non-WGS84 inputs.]
Try it
Round-trip a layer:
- Export a QD-visible layer from one project as GeoJSON
- Open the exported file in a text editor and inspect the structure — note the type codes and attributes as JSON properties
- Import the same file into a different project
- Confirm the imported features have the same type codes, attributes, and explosives as the source
Related
- Shapefile import — alternative for legacy interop
- QGIS — common upstream tool for GeoJSON prep
- Layer export — Siter-side export workflow
- Capability reference: Importing and exporting