Represents a heterogeneous collection of Geometry objects.
A GeometryCollection can contain any mix of geometry types, including other GeometryCollections.
const gc: GeometryCollection = { type: 'GeometryCollection', hasZ: false, hasM: false, geometries: [ { type: 'Point', hasZ: false, hasM: false, coordinates: [0, 0] }, { type: 'LineString', hasZ: false, hasM: false, coordinates: [0, 0, 1, 1] }, ],}; Copy
const gc: GeometryCollection = { type: 'GeometryCollection', hasZ: false, hasM: false, geometries: [ { type: 'Point', hasZ: false, hasM: false, coordinates: [0, 0] }, { type: 'LineString', hasZ: false, hasM: false, coordinates: [0, 0, 1, 1] }, ],};
The array of child Geometry objects in this collection.
Whether the geometry includes M (measure) values.
Whether the geometry includes Z (elevation/altitude) values.
Discriminant literal identifying this geometry as a GeometryCollection.
Represents a heterogeneous collection of Geometry objects.
A GeometryCollection can contain any mix of geometry types, including other GeometryCollections.
Example