Shapefile import
Shapefiles are the most common interchange format for legacy GIS data — GIS departments at most installations have shapefile archives going back decades. Siter accepts shapefiles packaged as a .zip archive containing the full set of sidecar files, and converts the contained features into Siter features on import.
By the end of this lesson you should be able to:
- Package a shapefile correctly for import
- Run the shapefile import and verify the resulting features
- Recognize common import failures and how to recover
What a shapefile actually is
The term "shapefile" is misleading — it's not a single file but a bundle of sidecar files that together describe one dataset. The minimum required set:
| File | Purpose |
|---|---|
.shp | The geometry (the actual feature shapes) |
.shx | An index into the geometry |
.dbf | The attribute table (one row per feature) |
.prj | The coordinate reference system |
Optional but commonly present: .cpg (character encoding), .sbn/.sbx (spatial index), .shp.xml (metadata).
For Siter, package all of these into a single .zip archive. Loose individual files will not import.
[TODO: FILL IN — confirm Siter's exact required-vs-optional file list and any size or feature-count limits.]
Packaging the zip
The zip should contain the sidecar files at the root, not in a subdirectory:
my-shapefile.zip
├── magazines.shp
├── magazines.shx
├── magazines.dbf
└── magazines.prj
Not:
my-shapefile.zip
└── magazines/
├── magazines.shp
└── ...
[TODO: FILL IN — verify Siter's zip-structure expectations against actual import behavior.]
Running the import
[TODO: FILL IN — exact import UI flow: layer panel or settings menu → import shapefile → file picker → preview → commit. Note any per-import options for layer assignment, coordinate transformation, attribute mapping.]
After import, the features land on a new layer. Verify the layer flavor — shapefile imports often default to a particular flavor (typically background) that may not be what you intend. See Adding layers and Changing a feature's layer if the imported features need to participate in analysis.
Attribute mapping
Shapefile attributes do not automatically map to Siter attributes — the columns in the .dbf are typically named for the source GIS system, not for Siter's type-code or attribute taxonomy. After import:
- Review the imported features' Siter attributes — they will likely be at default values
- Use bulk attribute editing to apply the correct values where the source data implies them
- Set type codes appropriately (bulk type-code edit)
This step is unavoidable for any non-trivial import. Plan time for it.
Common failures
| Symptom | Cause | Fix |
|---|---|---|
"Missing .prj" error | Coordinate reference system not declared | Add a .prj file matching the source CRS |
| Features appear in the wrong location | CRS mismatch with project | Set the project's spatial reference correctly, or transform the shapefile in QGIS first |
| Attribute names truncated | Shapefile DBF format limits column names to 10 characters | Source-side issue; Siter cannot recover the full names |
| Garbled text in attributes | Character encoding mismatch | Add or correct the .cpg sidecar file |
| Geometry rejected | Self-intersecting polygons or other validity issues | Repair in QGIS before re-zipping |
[TODO: FILL IN — Siter-specific error messages for each case.]
Try it
Take any shapefile (or generate one in QGIS) representing a few facility footprints:
- Package the sidecars into a single zip with files at the root
- Import into a Siter project
- Verify the features land on a layer with the correct flavor (move them if not)
- Bulk-edit the type codes and attributes to match the actual facilities
- Run analysis and confirm the imported features participate as expected
Related
- GeoJSON import and export — alternative format with cleaner round-trip
- QGIS — for prepping shapefiles before import
- QD-visible vs background layers — verify the import's layer flavor
- Bulk feature editing — for post-import attribute and type cleanup
- Capability reference: Importing and exporting