Polygon: Polygon

Description See Also Examples

Description

For type "Polygon", the "coordinates" member must be an array of LinearRing coordinate arrays. For Polygons with multiple rings, the first must be the exterior ring and any others must be interior rings or holes.

See Also

Other geo types: FeatureCollection, Feature, GeometryCollection, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, geojson-types

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
'{
"type": "Polygon",
"coordinates": [
  [
    [100.0, 0.0],
    [101.0, 0.0],
    [101.0, 1.0],
    [100.0, 1.0],
    [100.0, 0.0]
   ]
 ]
}'

Example output

sh: 1: cannot create /dev/null: Permission denied
[1] "{\n\"type\": \"Polygon\",\n\"coordinates\": [\n  [\n    [100.0, 0.0],\n    [101.0, 0.0],\n    [101.0, 1.0],\n    [100.0, 1.0],\n    [100.0, 0.0]\n   ]\n ]\n}"

geoops documentation built on July 1, 2020, 10:39 p.m.