Class GeoJson2DCoordinates
- Namespace
- MongoDB.Driver.GeoJsonObjectModel
- Assembly
- MongoDB.Driver.dll
Represents a GeoJson 2D position (x, y).
[BsonSerializer(typeof(GeoJson2DCoordinatesSerializer))]
public class GeoJson2DCoordinates : GeoJsonCoordinates, IEquatable<GeoJsonCoordinates>
- Inheritance
-
GeoJson2DCoordinates
- Implements
- Inherited Members
Constructors
GeoJson2DCoordinates(double, double)
Initializes a new instance of the GeoJson2DCoordinates class.
public GeoJson2DCoordinates(double x, double y)
Parameters
Properties
Values
Gets the coordinate values.
public override ReadOnlyCollection<double> Values { get; }
Property Value
X
Gets the X coordinate.
public double X { get; }
Property Value
Y
Gets the Y coordinate.
public double Y { get; }