GeoGeometryCollection Class

A set of geometries of any types.

public sealed class GeoGeometryCollection : GeoGeometry
Inheritance
GeoGeometry GeoGeometryCollection

Constructors

NameDescription
GeoGeometryCollection(IEnumerable<GeoGeometry>)Initializes a new instance of the GeoGeometryCollection class.

GeoGeometryCollection(IEnumerable<GeoGeometry>)

GeoGeometryCollection.cs

Initializes a new instance of the GeoGeometryCollection class.

public GeoGeometryCollection(IEnumerable<GeoGeometry> geometries)

Parameters

geometries IEnumerable<GeoGeometry>
The geometries.

Properties

NameDescription
GeometriesGets the geometries.
TypeGets the type of the geometry.

Gets the geometries.

public IReadOnlyList<GeoGeometry> Geometries { get; }

Gets the type of the geometry.

public override GeoGeometryType Type { get; }

Property value

GeoGeometryType

Methods

NameDescription
GetPositions()Gets the positions of the geometry: every position of every point, line and ring, in order.

Gets the positions of the geometry: every position of every point, line and ring, in order.

public override IEnumerable<GeoPosition> GetPositions()

Returns

IEnumerable<GeoPosition> The positions.