Learn

Polygon vs MultiPolygon

A Polygon represents one polygonal geometry, while a MultiPolygon groups several polygon parts into one geometry object.

Geobble
introductoryexplainerGeometry & Data Models

Explain the structural difference between Polygon and MultiPolygon, when multipart geometry is appropriate, and how it differs from multiple feature records.

Polygon vs MultiPolygon

A Polygon represents one polygonal geometry. A MultiPolygon represents several polygon parts grouped into one geometry object. The distinction is structural: a MultiPolygon allows one geometry to contain multiple disconnected polygon components while still belonging to one feature record.

An island country is a common example. Its national territory may consist of many separate islands, but the dataset may still treat the country as one feature with one identifier and one set of national attributes. A MultiPolygon expresses that idea directly.

A Polygon can still contain holes

A Polygon is not limited to one simple filled ring: it normally contains one exterior ring and may contain interior rings representing holes. A lake polygon, for example, could contain an island-shaped hole if the interior area is excluded from the feature.

That does not make it a MultiPolygon. The geometry remains one polygonal component with holes.

A MultiPolygon is needed when there are multiple distinct polygon components, each of which has its own exterior ring.

MultiPolygon is about geometry, not multiple records

The most common confusion is between a MultiPolygon and several polygon features.

Suppose a country contains five islands.

If the country is stored as one feature with one country code and a MultiPolygon geometry, the five islands are parts of one geographic entity.

If each island is stored as a separate feature, the dataset contains five records. They can have different names, populations, status fields or update histories.

The map may look identical, but the data model is different. Multipart Features vs Multiple Features explores that distinction in more detail.

When MultiPolygon is appropriate

Use a MultiPolygon when disconnected areas genuinely share one feature identity for the purpose of the dataset.

Examples can include:

  • countries with islands or exclaves;

  • municipalities made of several disconnected territories;

  • one protected area composed of several legally designated parcels;

  • one land-management unit containing several separate blocks.

The key criterion is not simply that the polygons share an attribute. It is that the dataset intends them to behave as one feature.

When separate Polygon features are better

Use separate features when each part needs independent identity or attributes.

Individual islands may belong to one country but still need separate names, populations and statistics. Separate forest patches may all belong to the same habitat class yet require individual area, condition and management records.

Putting those features into one MultiPolygon would make it harder to address each part independently and could encourage attributes that apply unevenly to be stored at the shared feature level.

Why software sometimes converts between them

GIS formats and tools often impose geometry-type expectations. A layer declared as MultiPolygon may store even single-part features as one-part MultiPolygons so that every row shares the same geometry type. Conversely, some workflows explode multipart features into single parts because a downstream algorithm expects simple polygons.

Those conversions can be technically harmless for shape but consequential for records and attributes. Exploding a MultiPolygon into several Polygon features, for example, duplicates the original feature's attributes unless the workflow deliberately redistributes them; a country-level population value copied onto every island would become dangerous if the exploded rows were later summed.

Dissolving several Polygon features into one MultiPolygon has the opposite risk: distinct attributes may be lost or aggregated in ways that erase meaningful differences.

GeoJSON makes the distinction explicit

In GeoJSON, a Polygon stores an array of linear rings. A MultiPolygon stores an array of Polygon coordinate arrays. Both can be used as the geometry of one Feature.

That structural difference matters for code that assumes a particular nesting depth. A parser written only for Polygon coordinates can fail or silently ignore parts when it receives a MultiPolygon.

Robust geospatial pipelines should therefore inspect geometry types rather than assuming that every polygonal feature uses the same structure.

Area and spatial predicates work across all parts

When a MultiPolygon is treated as one geometry, its total area includes all component polygons. A point intersecting any component can match the feature. A bounding box encloses the full collection of parts, including empty space between them.

That last detail can matter for performance because a country with distant islands may have a very large bounding box compared with the actual occupied area. Coarse spatial-index filtering can therefore return it as a candidate for locations far from any polygon part, although exact geometry testing still resolves the final relationship.

Do not use MultiPolygon to hide inconsistent boundaries

Multipart structure should represent real feature identity, not serve as a cleanup shortcut.

If a polygon unexpectedly splits into pieces because of invalid geometry, overlay artefacts or sliver creation, wrapping the pieces into a MultiPolygon may make the geometry technically acceptable without resolving why the split occurred.

First determine whether the parts are genuinely supposed to belong to one feature. Geometry structure should follow the domain model, not merely the easiest way to satisfy a file schema.

The decision comes down to identity

Use Polygon when the geometry is one polygonal component, possibly with holes. Use MultiPolygon when one feature legitimately consists of several disconnected polygon components.

If the parts need independent identities or attributes, use multiple features instead. The geometry type should express how many spatial parts one feature has; the feature model should express how many real-world entities the dataset is claiming to represent.

Related content

Polygon vs MultiPolygon | Geobble