Learn R Programming

geoops (version 0.3.0)

Polygon: Polygon

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.

Arguments

See Also

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

Examples

Run this code
# NOT RUN {
'{
"type": "Polygon",
"coordinates": [
  [
    [100.0, 0.0],
    [101.0, 0.0],
    [101.0, 1.0],
    [100.0, 1.0],
    [100.0, 0.0]
   ]
 ]
}'
# }

Run the code above in your browser using DataLab