MultiPolygon: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Maxim@tygron.com (talk | contribs)
Created page with "A MultiPolygon is a geometry type that represents multiple Polygons at once."
 
Maxim@tygron.com (talk | contribs)
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
A MultiPolygon is a geometry type that represents multiple [[Polygon]]s at once.
A MultiPolygon is a geometry type that represents multiple [[Polygon]]s at once.
In [[GeoJSON]], a MultiPolygon looks like this:
<pre>
{
  "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]]
      ]
    ]
  }
}
</pre>
{{article end
|seealso=
* [[Point]]
* [[Polygon]]
* [[GeoJSON]]
}}

Latest revision as of 13:53, 15 July 2026

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]]
      ]
    ]
  }
}