Show / Hide Table of Contents

    Struct GpxLongitude

    Represents a longitude value.

    Implements
    IEquatable<GpxLongitude>
    IComparable<GpxLongitude>
    IComparable
    IFormattable
    IConvertible
    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: NetTopologySuite.IO
    Assembly: NetTopologySuite.IO.GPX.dll
    Syntax
    public struct GpxLongitude : IEquatable<GpxLongitude>, IComparable<GpxLongitude>, IComparable, IFormattable, IConvertible
    Remarks

    In the official XSD schema for GPX 1.1, this corresponds to the simple type "longitudeType".

    Constructors

    | Improve this Doc View Source

    GpxLongitude(Double)

    Initializes a new instance of the GpxLongitude struct.

    Declaration
    public GpxLongitude(double val)
    Parameters
    Type Name Description
    Double val

    The value to store in Value.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown when val is:

    • not a number,
    • less than -180, or
    • equal to 180, or
    • greater than 180

    Fields

    | Improve this Doc View Source

    MaxValue

    The maximum legal value of GpxLongitude (a value very slightly smaller than 180).

    Declaration
    public static readonly GpxLongitude MaxValue
    Field Value
    Type Description
    GpxLongitude
    | Improve this Doc View Source

    MinValue

    The minimum legal value of GpxLongitude (-180).

    Declaration
    public static readonly GpxLongitude MinValue
    Field Value
    Type Description
    GpxLongitude
    | Improve this Doc View Source

    Value

    The value stored in this instance. Guaranteed to be between -180 (inclusive) and 180 (exclusive) under normal circumstances.

    Declaration
    public readonly double Value
    Field Value
    Type Description
    Double
    Remarks

    This value is not completely round-trip safe. In GPX 1.1, its base type is "decimal", which supports arbitrary levels of precision. Here, it's Double, which will only faithfully store a few more than a dozen significant digits.

    Methods

    | Improve this Doc View Source

    CompareTo(GpxLongitude)

    Declaration
    public int CompareTo(GpxLongitude other)
    Parameters
    Type Name Description
    GpxLongitude other
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    CompareTo(Object)

    Declaration
    public int CompareTo(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    Equals(GpxLongitude)

    Declaration
    public bool Equals(GpxLongitude other)
    Parameters
    Type Name Description
    GpxLongitude other
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()
    | Improve this Doc View Source

    GetTypeCode()

    Declaration
    public TypeCode GetTypeCode()
    Returns
    Type Description
    TypeCode
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()
    | Improve this Doc View Source

    ToString(IFormatProvider)

    Declaration
    public string ToString(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    String
    | Improve this Doc View Source

    ToString(String, IFormatProvider)

    Declaration
    public string ToString(string format, IFormatProvider formatProvider)
    Parameters
    Type Name Description
    String format
    IFormatProvider formatProvider
    Returns
    Type Description
    String

    Operators

    | Improve this Doc View Source

    Equality(GpxLongitude, GpxLongitude)

    Declaration
    public static bool operator ==(GpxLongitude lat1, GpxLongitude lat2)
    Parameters
    Type Name Description
    GpxLongitude lat1
    GpxLongitude lat2
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Explicit(Double to GpxLongitude)

    Declaration
    public static explicit operator GpxLongitude(double val)
    Parameters
    Type Name Description
    Double val
    Returns
    Type Description
    GpxLongitude
    | Improve this Doc View Source

    GreaterThan(GpxLongitude, GpxLongitude)

    Declaration
    public static bool operator>(GpxLongitude lat1, GpxLongitude lat2)
    Parameters
    Type Name Description
    GpxLongitude lat1
    GpxLongitude lat2
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    GreaterThanOrEqual(GpxLongitude, GpxLongitude)

    Declaration
    public static bool operator >=(GpxLongitude lat1, GpxLongitude lat2)
    Parameters
    Type Name Description
    GpxLongitude lat1
    GpxLongitude lat2
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Implicit(GpxLongitude to Double)

    Declaration
    public static implicit operator double (GpxLongitude lat)
    Parameters
    Type Name Description
    GpxLongitude lat
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    Inequality(GpxLongitude, GpxLongitude)

    Declaration
    public static bool operator !=(GpxLongitude lat1, GpxLongitude lat2)
    Parameters
    Type Name Description
    GpxLongitude lat1
    GpxLongitude lat2
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    LessThan(GpxLongitude, GpxLongitude)

    Declaration
    public static bool operator <(GpxLongitude lat1, GpxLongitude lat2)
    Parameters
    Type Name Description
    GpxLongitude lat1
    GpxLongitude lat2
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    LessThanOrEqual(GpxLongitude, GpxLongitude)

    Declaration
    public static bool operator <=(GpxLongitude lat1, GpxLongitude lat2)
    Parameters
    Type Name Description
    GpxLongitude lat1
    GpxLongitude lat2
    Returns
    Type Description
    Boolean

    Explicit Interface Implementations

    | Improve this Doc View Source

    IConvertible.ToBoolean(IFormatProvider)

    Declaration
    bool IConvertible.ToBoolean(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    IConvertible.ToByte(IFormatProvider)

    Declaration
    byte IConvertible.ToByte(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Byte
    | Improve this Doc View Source

    IConvertible.ToChar(IFormatProvider)

    Declaration
    char IConvertible.ToChar(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Char
    | Improve this Doc View Source

    IConvertible.ToDateTime(IFormatProvider)

    Declaration
    DateTime IConvertible.ToDateTime(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    DateTime
    | Improve this Doc View Source

    IConvertible.ToDecimal(IFormatProvider)

    Declaration
    decimal IConvertible.ToDecimal(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Decimal
    | Improve this Doc View Source

    IConvertible.ToDouble(IFormatProvider)

    Declaration
    double IConvertible.ToDouble(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    IConvertible.ToInt16(IFormatProvider)

    Declaration
    short IConvertible.ToInt16(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Int16
    | Improve this Doc View Source

    IConvertible.ToInt32(IFormatProvider)

    Declaration
    int IConvertible.ToInt32(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    IConvertible.ToInt64(IFormatProvider)

    Declaration
    long IConvertible.ToInt64(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Int64
    | Improve this Doc View Source

    IConvertible.ToSByte(IFormatProvider)

    Declaration
    sbyte IConvertible.ToSByte(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    SByte
    | Improve this Doc View Source

    IConvertible.ToSingle(IFormatProvider)

    Declaration
    float IConvertible.ToSingle(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    Single
    | Improve this Doc View Source

    IConvertible.ToType(Type, IFormatProvider)

    Declaration
    object IConvertible.ToType(Type conversionType, IFormatProvider provider)
    Parameters
    Type Name Description
    Type conversionType
    IFormatProvider provider
    Returns
    Type Description
    Object
    | Improve this Doc View Source

    IConvertible.ToUInt16(IFormatProvider)

    Declaration
    ushort IConvertible.ToUInt16(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    UInt16
    | Improve this Doc View Source

    IConvertible.ToUInt32(IFormatProvider)

    Declaration
    uint IConvertible.ToUInt32(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    UInt32
    | Improve this Doc View Source

    IConvertible.ToUInt64(IFormatProvider)

    Declaration
    ulong IConvertible.ToUInt64(IFormatProvider provider)
    Parameters
    Type Name Description
    IFormatProvider provider
    Returns
    Type Description
    UInt64

    Implements

    System.IEquatable<T>
    System.IComparable<T>
    System.IComparable
    System.IFormattable
    System.IConvertible
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX