Table of Contents

Class GeoJsonFeatureCollection<TCoordinates>

Namespace
MongoDB.Driver.GeoJsonObjectModel
Assembly
MongoDB.Driver.dll

Represents a GeoJson FeatureCollection.

[BsonSerializer(typeof(GeoJsonFeatureCollectionSerializer<>))]
public class GeoJsonFeatureCollection<TCoordinates> : GeoJsonObject<TCoordinates> where TCoordinates : GeoJsonCoordinates

Type Parameters

TCoordinates

The type of the coordinates.

Inheritance
GeoJsonObject<TCoordinates>
GeoJsonFeatureCollection<TCoordinates>
Inherited Members

Constructors

GeoJsonFeatureCollection(GeoJsonObjectArgs<TCoordinates>, IEnumerable<GeoJsonFeature<TCoordinates>>)

Initializes a new instance of the GeoJsonFeatureCollection<TCoordinates> class.

public GeoJsonFeatureCollection(GeoJsonObjectArgs<TCoordinates> args, IEnumerable<GeoJsonFeature<TCoordinates>> features)

Parameters

args GeoJsonObjectArgs<TCoordinates>

The additional args.

features IEnumerable<GeoJsonFeature<TCoordinates>>

The features.

GeoJsonFeatureCollection(IEnumerable<GeoJsonFeature<TCoordinates>>)

Initializes a new instance of the GeoJsonFeatureCollection<TCoordinates> class.

public GeoJsonFeatureCollection(IEnumerable<GeoJsonFeature<TCoordinates>> features)

Parameters

features IEnumerable<GeoJsonFeature<TCoordinates>>

The features.

Properties

Features

Gets the features.

public ReadOnlyCollection<GeoJsonFeature<TCoordinates>> Features { get; }

Property Value

ReadOnlyCollection<GeoJsonFeature<TCoordinates>>

Type

Gets the type of the GeoJson object.

public override GeoJsonObjectType Type { get; }

Property Value

GeoJsonObjectType