Slide 61
Slide 61 text
MultiPolygon (a collection of Polygons)
Polygon
Mainland-only municipality (one
closed shape)
"type": "Polygon",
"coordinates": [
[ [lon,lat], [lon,lat], ... ]
]
→ One ring = one polygon
MultiPolygon
Municipality with islands
(multiple closed shapes)
"type": "MultiPolygon",
"coordinates": [
[ [ [lon,lat], ... ] ], ← Mainland
[ [ [lon,lat], ... ] ], ← Island A
[ [ [lon,lat], ... ] ] ← Island B
]
→ Multiple rings = multiple polygons
vs
Goto = MultiPolygon → must check type and extract all polygons
61
© ZOZO, Inc.