Table of Contents

Class GeoJsonCoordinates

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

Represents a GeoJson position in some coordinate system (see subclasses).

[BsonSerializer(typeof(GeoJsonCoordinatesSerializer))]
public abstract class GeoJsonCoordinates : IEquatable<GeoJsonCoordinates>
Inheritance
GeoJsonCoordinates
Implements
Derived
Inherited Members

Properties

Values

Gets the coordinate values.

public abstract ReadOnlyCollection<double> Values { get; }

Property Value

ReadOnlyCollection<double>

Methods

Equals(GeoJsonCoordinates)

Determines whether the specified GeoJsonCoordinates is equal to this instance.

public bool Equals(GeoJsonCoordinates obj)

Parameters

obj GeoJsonCoordinates

The GeoJsonCoordinates to compare with this instance.

Returns

bool

true if the specified GeoJsonCoordinates is equal to this instance; otherwise, false.

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Operators

operator ==(GeoJsonCoordinates, GeoJsonCoordinates)

Determines whether two GeoJsonCoordinates instances are equal.

public static bool operator ==(GeoJsonCoordinates lhs, GeoJsonCoordinates rhs)

Parameters

lhs GeoJsonCoordinates

The LHS.

rhs GeoJsonCoordinates

The RHS.

Returns

bool

true if the left hand side is equal to the right hand side; otherwise, false.

operator !=(GeoJsonCoordinates, GeoJsonCoordinates)

Determines whether two GeoJsonCoordinates instances are not equal.

public static bool operator !=(GeoJsonCoordinates lhs, GeoJsonCoordinates rhs)

Parameters

lhs GeoJsonCoordinates

The LHS.

rhs GeoJsonCoordinates

The RHS.

Returns

bool

true if the left hand side is not equal to the right hand side; otherwise, false.