Skip to content
EN

Upload a GeoTIFF

A GeoTIFF (.tif / .tiff) brings raster data onto the map — satellite imagery, elevation models, land-cover masks, and so on. After the file uploads, CollMap asks how to display it.

  1. Open the Upload Layer tab and choose your .tif / .tiff file. Name it and upload.

  2. When processing finishes, the band / colormap chooser appears:

    • Single-band rasters (elevation, an index, a mask) — pick a band and a colormap (for example viridis or terrain), and optionally a value range.

      The GeoTIFF band selector: a single-band raster with a band chooser and colormap picker.

    • Multi-band scenes (e.g. satellite imagery) — choose an RGB composite by assigning three bands to red, green, and blue.

  3. Apply. The raster renders on the map; you can change its display later from the Layers panel.

An elevation GeoTIFF rendered over Lisbon with a colormap.

The test suite uses two representative rasters: LisbonElevation.tif (~905 KB, single-band elevation → colormap) and a Sentinel-2 true-color scene of Basel (~14 MB, multi-band → RGB composite).

Set the display up front in a display field — for a token upload every key is honored and renders immediately.

Terminal window
curl -X POST "$API/api/layers/upload" -H "Authorization: Bearer $TOKEN" \
-F "roomName=$ROOM" -F "layerName=elevation" -F "file=@LisbonElevation.tif" \
-F 'display={"colormap":"terrain","band":1,"vmin":0,"vmax":1500,"opacity":0.8}'

Change the display later with PATCH /api/rooms/$ROOM/raster-layers/<id>/display (see the Raster Layers reference).