Geospatial · Build and fix geometry

Remove Holes

Fills in the holes inside polygons, keeping only the outer boundary.

Also known as: Fill holes

How it works

Pick the Geometry column. Each polygon is rebuilt from its outer ring only, in place. A MultiPolygon is treated part by part and the parts are unioned again, so a part that sat inside another part's hole merges correctly. Points, lines and other non-area shapes pass through unchanged.

Inputs and outputs

Inputs

  • data — Table

Outputs

  • data — Table

Settings

The Attributes panel of Remove Holes, as in the app: the controls work, but nothing runs — there is no data behind it.

The same settings, as the Assistant writes them
{
  geometryColumn: string
}

rebuilds each polygon from its exterior ring (MultiPolygons de-holed part-wise and re-unioned); non-areal geometry passes through

Example

A park outline has a lake cut out and you want the footprint including the lake: geometry column geom. Follow with Spatial Measure to get the gross area.