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