GeometryCollection: GeometryCollection

Description See Also Examples

Description

Each element in the geometries array of a GeometryCollection is one of the geometry objects described above.

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
'{
   "type": "GeometryCollection",
   "geometries": [ {
     "type": "Point",
     "coordinates": [100.0, 0.0]
   }, {
   "type": "LineString",
   "coordinates": [ [101.0, 0.0], [102.0, 1.0] ]
   }
 ]
}'

Example output

[1] "{\n   \"type\": \"GeometryCollection\",\n   \"geometries\": [ {\n     \"type\": \"Point\",\n     \"coordinates\": [100.0, 0.0]\n   }, {\n   \"type\": \"LineString\",\n   \"coordinates\": [ [101.0, 0.0], [102.0, 1.0] ]\n   }\n ]\n}"

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