Skip to content
EN

Upload a Shapefile

A Shapefile isn’t one file — it’s a set of sidecar files that must travel together. CollMap accepts them as a single .zip.

  • Directoryyour-shapefile.zip
    • roads.shp the geometry
    • roads.shx the shape index
    • roads.dbf the attributes
    • roads.prj the coordinate system

Uploading a bare .shp on its own is rejected — the .dbf and .prj are required for attributes and projection.

  1. Open the Upload Layer tab and choose your .zip.

  2. Name the layer and upload. Large shapefiles process in the background with a progress bar.

    The Upload Layer panel showing an in-progress upload.

  3. When it finishes you’ll see a success confirmation, and the features render on the map.

    The Upload Layer panel showing the “Layer uploaded successfully” confirmation.

The map after uploading a waterways shapefile, with the lines rendered.

The test suite uses a real OpenStreetMap extract — gis_osm_waterways_07_1.zip (a ~355 KB archive of about 2,200 waterway lines) — as its shapefile example; any well-formed zip works the same way.

Terminal window
curl -X POST "$API/api/layers/upload" -H "Authorization: Bearer $TOKEN" \
-F "roomName=$ROOM" -F "layerName=waterways" -F "file=@gis_osm_waterways_07_1.zip"
# → { "jobId": "job-…" } — poll GET /api/layers/jobs/<jobId> until complete