> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/documentation/annotations/geospatial-annotation.md). Agents can also search and read this documentation through its [MCP server](https://docs.unitlab.ai/~gitbook/mcp).

# Geospatial annotation

Label satellite, aerial, drone, multispectral, hyperspectral, thermal and SAR rasters with polygons, holes, lines and boxes, up to gigapixel size.

Label large satellite, aerial and drone rasters at full resolution, from a city-scale orthophoto to a 30-gigapixel orthomosaic. You pan and zoom like a web map, switch band views to see water, vegetation or heat clearly, and draw polygons, lines and boxes that keep their position on the map.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2Fx4QtqcNFwV1MPVxzluAW%2Fgeospatial-large-raster-reset.webp?alt=media" alt="A 9,580 × 12,320 px aerial orthophoto near Salt Lake City with 43,800 building polygons and the Layer Information panel open" width="800"><figcaption><p>A 9,580 × 12,320 px aerial orthophoto with 43,800 labeled buildings, shown whole after a zoom reset.</p></figcaption></figure>

## When to use it

* Building footprints, field boundaries and shorelines that need exact outlines.
* Land cover and land use maps: water, vegetation, built-up areas, bare ground.
* Heat islands, irrigation and industrial hot spots from thermal bands.
* Road and utility networks traced as lines.
* Ships, vehicles and other assets that only need a box.

## See it in action

Building footprints outlined on an aerial orthophoto, from the whole raster down to single roofs.

{% embed url="<https://homepage-files.s3.us-east-2.amazonaws.com/hero-videos/hero/geospatial-1.mp4>" %}

## Before you begin

* Upload GeoTIFF, Cloud Optimized GeoTIFF, JPEG 2000, ERDAS IMG, NITF or another supported raster. A JPEG, PNG or WebP wider or taller than 6,000 px also opens here, in its own pixel space without map coordinates.
* Give each class the geometry it needs in the ontology: polygon for areas, line for roads, box for objects.
* Agree on a minimum mapping unit and how to treat shadows, trees over roofs and objects cut by the image edge.

## Supported imagery

The Workbench reads the bands in the file, decides what kind of raster it is, and opens it in the matching view. You can switch views at any time in **View settings**.

| Imagery               | What the Workbench does                                                                                                                       | Example                                                |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| **RGB and grayscale** | Opens in natural color, or as a single band.                                                                                                  | Aerial orthophotos, drone mosaics                      |
| **Multispectral**     | Builds any three-band composite and computes band indices (NDVI, NDWI, NDBI, NBR or your own pair).                                           | Sentinel-2, Landsat, PlanetScope, multispectral drones |
| **Hyperspectral**     | Reads up to 1,024 bands and shows each band's wavelength in the band list. **Spectral Profile** plots pinned pixels against wavelength in nm. | Airborne imaging spectrometers                         |
| **Thermal**           | Shows temperature on a color ramp in °C, K or °F, with a min and max you set.                                                                 | Landsat TIRS, calibrated drone thermal GeoTIFFs        |
| **SAR**               | Shows backscatter on a dB curve, with VV/VH or HH/HV dual-pol composites and a speckle filter.                                                | Sentinel-1 GRD, other detected SAR                     |
| **Gigapixel**         | Converts the upload to a Cloud Optimized GeoTIFF with overviews and streams only the tiles in view.                                           | The 30-gigapixel Trento orthomosaic below              |

A file opens as thermal when its bands carry temperature units (K, °C, °F) or sit at thermal infrared wavelengths. Any other single-band raster can still use the thermal view with **Use anyway**. Radiometric JPEGs from FLIR or DJI cameras must be converted to a temperature GeoTIFF first. For SAR, upload detected products (amplitude, power or dB); complex SLC files are not accepted.

## Example: map every building in a city tile

This example is a 0.6 m aerial orthophoto of a suburb near Salt Lake City, Utah: 9,580 × 12,320 px, about 118 megapixels. The ontology has one polygon class, **House**. The tile holds 43,800 building polygons, and the Workbench draws all of them at every zoom level.

{% stepper %}
{% step %}

### See the whole raster

Press `0` to reset the zoom and fit the whole tile on screen. At this level each building is drawn as a small marker, so you can see where labels are dense and where they are missing.
{% endstep %}

{% step %}

### Zoom into a district

Scroll, or press `+`, over the area you want. The minimap in the bottom-right corner shows the part you are looking at as a rectangle. Click anywhere on the minimap to jump there.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2Fc74sjvYWvKAbfXWEkMcQ%2Fgeospatial-large-raster-zoom1.webp?alt=media" alt="Mid zoom on the orthophoto: several blocks with every roof outlined as a House polygon, and the minimap showing the current view" width="800"><figcaption><p>A few blocks at mid zoom. Every roof is its own <strong>House</strong> polygon.</p></figcaption></figure>
{% endstep %}

{% step %}

### Zoom to roof level and draw

Keep zooming until one screen pixel is close to one raster pixel. Press `P` for **Polygon** and trace a roof, or turn on **Right angles** (`R`) for straight building edges. Press `-` to step back out, or `0` to see the whole tile again.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FTzeTaAP3J2y4SCRjZ1Ay%2Fgeospatial-large-raster-zoom2.webp?alt=media" alt="Roof-level zoom with individual house polygons following each roof outline" width="800"><figcaption><p>Roof level: outlines follow each roof edge.</p></figcaption></figure>
{% endstep %}

{% step %}

### Let AI find the rest

Select one finished roof and press `Shift+S` for **Find similar** to find more roofs like it, or press `S` for **Detect all objects** of the class in view. Check the results at roof level before you accept them.
{% endstep %}

{% step %}

### Check and send

Press `0`, look for districts with no markers, fix the gaps, then click **Send to Review**.
{% endstep %}
{% endstepper %}

## Example: land cover from multispectral bands

A 4-band Sentinel-2 scene (blue, green, red, near infrared, 10 m pixels) of the Dubai coast uses seven classes: **Water**, **Artificial island**, **Vegetation**, **Built-up area**, **Bare sand**, **Major road** (line) and **Vessel** (box).

* Open **View settings** > **Spectral View**, set **Render** to **Index** and choose **NDVI** to make vegetation stand out, or **NDWI** for water.
* Draw the sea as one **Water** polygon and cut each island out of it with **Polygon Slice** (`Shift+4`). The cut-out becomes a hole, so water and land never overlap.
* Draw each island, park and built-up block as its own polygon, and set its properties in the inspector, for example **Vegetation type: Golf course**.

## Example: surface temperature from a thermal band

This example is the Landsat 8 thermal infrared band (TIRS band 10, 10.9 µm) over Phoenix, Arizona, on 7 July 2020: 3,000 × 2,400 px at 30 m, stored as brightness temperature in kelvin. Two classes mark the extremes: **Irrigated field** for the coolest surfaces and **Hot surface** for the hottest roofs, lots and bare ground. The tile holds 430 polygons.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2Fwo067F4PZbEDSYtTpAl9%2Fcap-geo-thermal-phoenix.webp?alt=media" alt="Landsat 8 thermal band over Phoenix in the Ironbow color ramp, with cool irrigated fields and hot surfaces outlined, and the Thermal section of View settings showing Active, Ironbow, °C and a 38.3 to 53.5 °C range" width="800"><figcaption><p>Thermal view in °C. Cool fields show dark, hot surfaces bright yellow. Landsat imagery courtesy of the U.S. Geological Survey.</p></figcaption></figure>

{% stepper %}
{% step %}

### Turn on the thermal view

Open **View settings** > **Thermal**. The section shows **Active** when the file is thermal. Otherwise click **Use Thermal**. The **Band** field names the temperature band, here **Brightness temperature, TIRS band 10**, and notes that it is calibrated and stored in K.

<div align="left"><figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FOOpqX6QUT2AJlIuR0VxX%2Fcap-geo-thermal-settings.webp?alt=media" alt="View settings with the Thermal section marked Active: Band set to Brightness temperature TIRS band 10, calibrated and stored in K, Ironbow color ramp, Unit °C, Min 38.3 and Max 53.5, Keep range for next items and Fit to band range" width="300"><figcaption><p>The <strong>Thermal</strong> section, active for this file.</p></figcaption></figure></div>
{% endstep %}

{% step %}

### Check the file in Layer information

Click **Layer information** (the info button in the header). For a thermal file, **Spectral** reads **Thermal · 1 band** and **Temperature** shows the band's range, here 311.5 to 326.6 K between the 2nd and 98th percentiles. The panel also lists the raster size and the coordinate reference system (EPSG:32612).

<div align="left"><figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2Fs5407BtGRfTVlvce4w2G%2Fcap-geo-thermal-layer-info.webp?alt=media" alt="Layer Information for the Phoenix Landsat 8 file: raster size 3,000 × 2,400 px, Spectral Thermal · 1 band, Temperature 311.5–326.6 K (2–98%), EPSG:32612 and the coverage bounds" width="320"><figcaption><p><strong>Layer information</strong> confirms the thermal band and its temperature range.</p></figcaption></figure></div>
{% endstep %}

{% step %}

### Pick the unit and range

Set **Unit** to **°C**, **K** or **°F**. The file stays in kelvin; only the display changes. Click **Fit to band range**, or type **Min** and **Max** to stretch the colors over the temperatures you care about. Turn on **Keep range for next items** so every scene uses the same scale.
{% endstep %}

{% step %}

### Label by temperature

Draw polygons around the areas the range makes obvious. To read exact values, open **Spectral Profile** (`Shift+P`), click **Pick a pixel** and click the pixels you want: the chart shows their temperature in the unit you chose.
{% endstep %}
{% endstepper %}

## Use the canvas menu

Right-click a selected shape to open its menu.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2Fe4kUlTW1SNRUlhV0DRPT%2Fgeospatial-canvas-action-menu.webp?alt=media" alt="Right-click menu on the Water polygon with Geometric Refine, Smart Refine, Simplify, Remove small holes, Find similar, order, Hide and Delete object" width="380"><figcaption><p>The menu of the <strong>Water</strong> polygon, which has a hole for each island.</p></figcaption></figure>

| Menu item                                                                     | What it does                                                              |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| Class dropdown                                                                | Moves the shape to another class.                                         |
| **Geometric Refine**                                                          | Straightens box-like outlines, such as building footprints.               |
| **Smart Refine**                                                              | Snaps the outline to visible edges in the imagery.                        |
| **Simplify**                                                                  | Removes extra points with a slider. Preview, then **Apply**.              |
| **Remove small holes**                                                        | Drops holes from the smallest up, for example specks left inside a field. |
| **Find similar** (`Shift+S`)                                                  | Finds more shapes like this one in the raster.                            |
| **Bring to front** / **Bring forward** / **Send backward** / **Send to back** | Changes which overlapping shape is on top (`W`, `O`, `I`, `Q`).           |
| **Hide** / **Delete object**                                                  | Hides the shape while you work, or deletes it.                            |

Right-click inside a hole of the selected polygon to get **Delete hole**.

## Work at gigapixel scale

The Workbench is built for very large rasters and for 10 million objects and more in one file. Large rasters open as fast as small ones: each upload is converted to a tiled Cloud Optimized GeoTIFF with overviews, and the Workbench requests only the tiles in view at the current zoom. There is no fixed file size limit; processing a single file can take up to 6 hours, and usage is counted in megapixels.

* **Imagery streams by tile.** The Trento orthomosaic below is 141,000 × 211,000 px, about 30 gigapixels, and pans like a web map.
* **Objects are drawn by zoom level.** At overview zoom each object is drawn as a dot, so millions of objects stay visible and the view stays fast. The Salt Lake City tile above holds 43,800 polygons, all shown at every zoom.
* **Saves stay small.** Annotations are stored in buckets of up to 5,000 objects, so saving one edit does not rewrite the whole file, however many objects it holds.

## Check where the raster sits on the map

Click **Layer information** (the info button in the header) to see the file name, the center location in WGS84 with an **Open in map** link, the raster size and the bands. **Technical Details** lists the coordinate reference system, the WGS84 coverage bounds and the native bounds.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2Ftr6WdYDf4EXds7MezrCp%2Fgeospatial-layer-information.webp?alt=media" alt="Layer Information for 02_Trento_Italy.tif showing location 46.07° N, 11.11° E, raster size 141,000 × 211,000 px and RGB with 3 bands" width="420"><figcaption><p>An aerial orthomosaic of Trento, Italy: 141,000 × 211,000 px, about 30 gigapixels, opened in the same Workbench.</p></figcaption></figure>

If the panel says geographic metadata is unavailable or invalid, fix the source file before you treat the labels as map data. You can still label it in pixel space.

## Measure distance

Click **Measure distance** in the left toolbar. Click once to set the start, once more to set the end. The length shows in meters, or kilometers above 1,000 m. Hover any shape to see its length, width, height, area or perimeter. Press `Esc` to stop measuring.

## View settings

Open **View settings** from the left toolbar. Every setting here changes only how the raster looks, never the source pixels or your annotations.

<figure><img src="https://292810646-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGjVLUz4wthGkGlRKM6rM%2Fuploads%2FzJpi8tXer0HzyoBuUOvv%2Fgeospatial-view-settings-ndvi.webp?alt=media" alt="View settings with Spectral View in Index mode showing NDVI on the Dubai scene" width="640"><figcaption><p><strong>Spectral View</strong> in <strong>Index</strong> mode with NDVI on the Sentinel-2 scene.</p></figcaption></figure>

| Section                | What you can change                                                                                                                                                        |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Annotation Display** | **Object label font size** (8 to 24, default 11), **Selected object opacity** and **Object edge opacity** (default 100%), **Show minimap**, **Show object info on hover**. |
| **Annotation Tools**   | **Handle size**, shared edges, **Right angles**, **Keep inside image**.                                                                                                    |
| **Auto zoom**          | **Auto zoom on object list click** (off by default) brings the selected object into view.                                                                                  |
| **Spectral View**      | **Render** as **Composite** (three bands as red, green, blue), **Single** (one band) or **Index**. See below.                                                              |
| **Thermal**            | Shows one band on a temperature color ramp in K, °C or °F. Click **Use Thermal**.                                                                                          |
| **SAR**                | Shows radar backscatter in dB with an optional dual-pol composite and **Speckle filter** (Off, 3×3, 5×5). Click **Use SAR**.                                               |
| **Raster Adjustments** | **Brightness**, **Contrast**, **Saturation** and **Gamma**. Kept as you move to the next item.                                                                             |
| **Spectral Profile**   | Click **Pick a pixel**, then click pixels to compare their spectra in a chart (`Shift+P`).                                                                                 |

<details>

<summary>Spectral View options in detail</summary>

| Option                        | What it does                                                                                                                                                                                                         |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Preset** (Composite)        | **Natural Color** (red, green, blue), **False Color (NIR)** (NIR, red, green) or **Custom** (any three bands). A preset is off when the file does not say which band is which. Composite needs at least three bands. |
| **Display Min / Display Max** | Stretch each band's 0 to 255 display range.                                                                                                                                                                          |
| **Index**                     | **NDVI** vegetation, **NDWI** water, **NDBI** built-up, **NBR** burn severity, or **Custom** with your own Band A and Band B. The value is (A − B) / (A + B) after each band's scale and offset.                     |
| **Color ramp**                | Red–Yellow–Green, Blues, Viridis, Ironbow, Inferno, Grayscale or SAR Ice.                                                                                                                                            |
| **Index Min / Index Max**     | The value range the ramp covers, default −1 to 1.                                                                                                                                                                    |

A file with one band opens as **Single**. A file that does not name its red, green and blue bands also opens as a single band; choose **Composite** to pick bands yourself.

</details>

## Speed up with AI

* **Auto Select** (`A`) and **Magic Touch** (`M`) turn a click or box into an outline.
* **Find Similar** (`Shift+S`) finds more objects like the selected one, such as every roof in a district.
* **Detect all objects** (`S`) labels every object of a class in view.
* **Geometric Refine** and **Smart Refine** clean up outlines from the canvas menu.

Always check AI results against the imagery, especially under trees and shadows.

## Keyboard shortcuts

| Action                            | Shortcut                      |
| --------------------------------- | ----------------------------- |
| Pan                               | `V`, or hold `Space` and drag |
| Zoom in / out / reset             | `+` / `-` / `0`               |
| Polygon / Polyline / Bounding box | `P` / `L` / `B`               |
| Brush / Eraser                    | `F` / `E`                     |
| Polygon Slice                     | `Shift+4`                     |
| Right angles                      | `R`                           |
| Spectral Profile                  | `Shift+P`                     |
| Hide or show annotations          | `Shift+V`                     |
| Merge selected objects            | `Shift+M`                     |
| Next / previous item              | `→` / `←`                     |
| All shortcuts                     | `H`                           |

## Tips

* Draw big areas first and smaller features inside them. Holes keep classes from overlapping.
* Label at a zoom level where one screen pixel is close to one raster pixel. Boxes drawn from the overview are often too loose.
* Use an index view to decide hard edges, then switch back to **Natural Color** to check what you labeled.
* Turn on **Keep range for next items** in **Thermal** or **SAR** so every scene in a batch is shown on the same scale.

## Related

* [Pathology annotation](https://docs.unitlab.ai/documentation/annotations/pathology-annotation.md) · [Detect Anything](https://docs.unitlab.ai/documentation/auto-labeling/detect-anything-sam-1-sam-3.md) · [Model stages](https://docs.unitlab.ai/documentation/workflows/model-stages.md) · [Multimodal overview](https://docs.unitlab.ai/documentation/multimodal-annotations/multimodal-overview.md)
