Geometry Primitives
| Data Type | Example | Notes |
|---|---|---|
| Point | { “type”: “Point”, “coordinates”: [30.0, 10.0] } | format includes type and two coordinates (latitude/longitude) |
| LineString | { “type”: “LineString”, “coordinates”: [ [30.0, 10.0], [10.0, 30.0], [40.0, 40.0] ] } | format includes type and at least two coordinates |
| Polygon | { “type”: “Polygon”, “coordinates”: [ [ [30.0, 10.0], [40.0, 40.0], [20.0, 40.0], [10.0, 20.0], [30.0, 10.0] ] ] } | format includes type and at least three coordinates. Critically, the first and last coordinate must be identical (point 1, point 2, point 3, point 4) |
Multipart Geometries
| Data Type | Example | Notes |
|---|---|---|
| MultiPoint | { “type”: “MultiPoint”, “coordinates”: [ [10.0, 40.0], [40.0, 30.0], [20.0, 20.0], [30.0, 10.0] ] } | |
| MultiLineString | { “type”: “MultiLineString”, “coordinates”: [ [ [10.0, 10.0], [20.0, 20.0], [10.0, 40.0] ], [ [40.0, 40.0], [30.0, 30.0], [40.0, 20.0], [30.0, 10.0] ] ] } | |
| MultiPolygon | { “type”: “MultiPolygon”, “coordinates”: [ [ [ [30.0, 20.0], [45.0, 40.0], [10.0, 40.0], [30.0, 20.0] ] ], [ [ [15.0, 5.0], [40.0, 10.0], [10.0, 20.0], [5.0, 10.0], [15.0, 5.0] ] ] ] } |