Table of Contents

Class GeoJsonFeature<TCoordinates>

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

Represents a GeoJson Feature object.

[BsonSerializer(typeof(GeoJsonFeatureSerializer<>))]
public class GeoJsonFeature<TCoordinates> : GeoJsonObject<TCoordinates> where TCoordinates : GeoJsonCoordinates

Type Parameters

TCoordinates

The type of the coordinates.

Inheritance
GeoJsonObject<TCoordinates>
GeoJsonFeature<TCoordinates>
Inherited Members

Constructors

GeoJsonFeature(GeoJsonFeatureArgs<TCoordinates>, GeoJsonGeometry<TCoordinates>)

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

public GeoJsonFeature(GeoJsonFeatureArgs<TCoordinates> args, GeoJsonGeometry<TCoordinates> geometry)

Parameters

args GeoJsonFeatureArgs<TCoordinates>

The additional args.

geometry GeoJsonGeometry<TCoordinates>

The geometry.

GeoJsonFeature(GeoJsonGeometry<TCoordinates>)

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

public GeoJsonFeature(GeoJsonGeometry<TCoordinates> geometry)

Parameters

geometry GeoJsonGeometry<TCoordinates>

The geometry.

Properties

Geometry

Gets the geometry.

public GeoJsonGeometry<TCoordinates> Geometry { get; }

Property Value

GeoJsonGeometry<TCoordinates>

Id

Gets the id.

public BsonValue Id { get; }

Property Value

BsonValue

Properties

Gets the properties.

public BsonDocument Properties { get; }

Property Value

BsonDocument

Type

Gets the type of the GeoJson object.

public override GeoJsonObjectType Type { get; }

Property Value

GeoJsonObjectType