MultiPolygon

From Tygron Support wiki
Revision as of 13:53, 15 July 2026 by Maxim@tygron.com (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A MultiPolygon is a geometry type that represents multiple Polygons at once.

In GeoJSON, a MultiPolygon looks like this:

{
  "type": "Feature",
  "properties": {
    "name": "Two separate squares"
  },
  "geometry": {
    "type": "MultiPolygon",
    "coordinates": [
      [
        [[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]]
      ],
      [
        [[2, 2], [3, 2], [3, 3], [2, 3], [2, 2]]
      ]
    ]
  }
}