Class GeoJsonGeometryCollection<TCoordinates>
- Namespace
- MongoDB.Driver.GeoJsonObjectModel
- Assembly
- MongoDB.Driver.dll
Represents a GeoJson GeometryCollection object.
[BsonSerializer(typeof(GeoJsonGeometryCollectionSerializer<>))]
public class GeoJsonGeometryCollection<TCoordinates> : GeoJsonGeometry<TCoordinates> where TCoordinates : GeoJsonCoordinates
Type Parameters
TCoordinates
The type of the coordinates.
- Inheritance
-
GeoJsonObject<TCoordinates>GeoJsonGeometry<TCoordinates>GeoJsonGeometryCollection<TCoordinates>
- Inherited Members
Constructors
GeoJsonGeometryCollection(GeoJsonObjectArgs<TCoordinates>, IEnumerable<GeoJsonGeometry<TCoordinates>>)
Initializes a new instance of the GeoJsonGeometryCollection<TCoordinates> class.
public GeoJsonGeometryCollection(GeoJsonObjectArgs<TCoordinates> args, IEnumerable<GeoJsonGeometry<TCoordinates>> geometries)
Parameters
args
GeoJsonObjectArgs<TCoordinates>The additional args.
geometries
IEnumerable<GeoJsonGeometry<TCoordinates>>The geometries.
GeoJsonGeometryCollection(IEnumerable<GeoJsonGeometry<TCoordinates>>)
Initializes a new instance of the GeoJsonGeometryCollection<TCoordinates> class.
public GeoJsonGeometryCollection(IEnumerable<GeoJsonGeometry<TCoordinates>> geometries)
Parameters
geometries
IEnumerable<GeoJsonGeometry<TCoordinates>>The geometries.
Properties
Geometries
Gets the geometries.
public ReadOnlyCollection<GeoJsonGeometry<TCoordinates>> Geometries { get; }
Property Value
- ReadOnlyCollection<GeoJsonGeometry<TCoordinates>>
Type
Gets the type of the GeoJson object.
public override GeoJsonObjectType Type { get; }