Share via


GeographyPosition Class

Represents one position in the geographical coordinate system.

Inheritance Hierarchy

System.Object
  System.Spatial.GeographyPosition

Namespace:  System.Spatial
Assembly:  System.Spatial (in System.Spatial.dll)

Syntax

'Declaration
Public Class GeographyPosition _
    Implements IEquatable(Of GeographyPosition)
'Usage
Dim instance As GeographyPosition
public class GeographyPosition : IEquatable<GeographyPosition>
public ref class GeographyPosition : IEquatable<GeographyPosition^>
type GeographyPosition =  
    class 
        interface IEquatable<GeographyPosition>
    end
public class GeographyPosition implements IEquatable<GeographyPosition>

The GeographyPosition type exposes the following members.

Constructors

  Name Description
Public method GeographyPosition(Double, Double) Creates a new instance of the GeographyPosition class from components.
Public method GeographyPosition(Double, Double, Nullable<Double>, Nullable<Double>) Creates a new instance of the GeographyPosition class from components.

Top

Properties

  Name Description
Public property Latitude Gets the latitude portion of a position.
Public property Longitude Gets the longitude portion of a position.
Public property M Gets the arbitrary measure associated with a position.
Public property Z Gets the altitude portion of a position.

Top

Methods

  Name Description
Public method Equals(Object) Performs equality comparison on an object. (Overrides Object.Equals(Object).)
Public method Equals(GeographyPosition) Performs equality comparison on a spatial geographic position.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Computes a hash code. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Formats this instance to a readable string. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Performs equality comparison.
Public operatorStatic member Inequality Performs inequality comparison.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Spatial Namespace