MultiPolygon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
<br> | <br> | ||
<code> | <code> | ||
{ | {"type": "Feature", | ||
"properties": { "name": "Two separate squares" }, | "properties": { "name": "Two separate squares" }, | ||
"geometry": { | "geometry": { | ||
| Line 23: | Line 22: | ||
} | } | ||
} | } | ||
</code> | </code> | ||
Revision as of 13:08, 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]
]
]
]
}
}