Search Results for

    Show / Hide Table of Contents

    Class Coordinates

    Useful utility functions for handling Coordinate objects.

    Inheritance
    object
    Coordinates
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    public static class Coordinates

    Methods

    | Edit this page View Source

    Create(int)

    Factory method providing access to common Coordinate implementations.

    Declaration
    public static Coordinate Create(int dimension)
    Parameters
    Type Name Description
    int dimension
    Returns
    Type Description
    Coordinate

    created coordinate

    | Edit this page View Source

    Create(int, int)

    Factory method providing access to common Coordinate implementations.

    Declaration
    public static Coordinate Create(int dimension, int measures)
    Parameters
    Type Name Description
    int dimension
    int measures
    Returns
    Type Description
    Coordinate

    created coordinate

    | Edit this page View Source

    Dimension(Coordinate)

    Determine dimension based on subclass of Coordinate.

    Declaration
    public static int Dimension(Coordinate coordinate)
    Parameters
    Type Name Description
    Coordinate coordinate

    supplied coordinate

    Returns
    Type Description
    int

    number of ordinates recorded

    | Edit this page View Source

    HasZ(Coordinate)

    Check if coordinate can store a z-ordinate value, based on subclass of Coordinate.

    Declaration
    public static bool HasZ(Coordinate coordinate)
    Parameters
    Type Name Description
    Coordinate coordinate

    A coordinate

    Returns
    Type Description
    bool

    true if coordinate can carry a z-ordinate value

    | Edit this page View Source

    Measures(Coordinate)

    Determine number of measures based on subclass of Coordinate.

    Declaration
    public static int Measures(Coordinate coordinate)
    Parameters
    Type Name Description
    Coordinate coordinate

    supplied coordinate

    Returns
    Type Description
    int

    number of measures recorded

    | Edit this page View Source

    SpatialDimension(Coordinate)

    Evaluates the number of spatial dimensions (x, y, z) that a coordinate can carry.

    Declaration
    public static int SpatialDimension(Coordinate c)
    Parameters
    Type Name Description
    Coordinate c

    A coordinate

    Returns
    Type Description
    int

    The number of spatial dimensions

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX