Search Results for

    Show / Hide Table of Contents

    Class CoordinateList

    A list of Coordinates, which may be set to prevent repeated coordinates from occurring in the list.

    Inheritance
    object
    List<Coordinate>
    CoordinateList
    Implements
    IList<Coordinate>
    ICollection<Coordinate>
    IReadOnlyList<Coordinate>
    IReadOnlyCollection<Coordinate>
    IEnumerable<Coordinate>
    IList
    ICollection
    IEnumerable
    ICloneable
    Inherited Members
    List<Coordinate>.Add(Coordinate)
    List<Coordinate>.AddRange(IEnumerable<Coordinate>)
    List<Coordinate>.AsReadOnly()
    List<Coordinate>.BinarySearch(Coordinate)
    List<Coordinate>.BinarySearch(Coordinate, IComparer<Coordinate>)
    List<Coordinate>.BinarySearch(int, int, Coordinate, IComparer<Coordinate>)
    List<Coordinate>.Clear()
    List<Coordinate>.Contains(Coordinate)
    List<Coordinate>.ConvertAll<TOutput>(Converter<Coordinate, TOutput>)
    List<Coordinate>.CopyTo(Coordinate[])
    List<Coordinate>.CopyTo(Coordinate[], int)
    List<Coordinate>.CopyTo(int, Coordinate[], int, int)
    List<Coordinate>.Exists(Predicate<Coordinate>)
    List<Coordinate>.Find(Predicate<Coordinate>)
    List<Coordinate>.FindAll(Predicate<Coordinate>)
    List<Coordinate>.FindIndex(int, int, Predicate<Coordinate>)
    List<Coordinate>.FindIndex(int, Predicate<Coordinate>)
    List<Coordinate>.FindIndex(Predicate<Coordinate>)
    List<Coordinate>.FindLast(Predicate<Coordinate>)
    List<Coordinate>.FindLastIndex(int, int, Predicate<Coordinate>)
    List<Coordinate>.FindLastIndex(int, Predicate<Coordinate>)
    List<Coordinate>.FindLastIndex(Predicate<Coordinate>)
    List<Coordinate>.ForEach(Action<Coordinate>)
    List<Coordinate>.GetEnumerator()
    List<Coordinate>.GetRange(int, int)
    List<Coordinate>.IndexOf(Coordinate)
    List<Coordinate>.IndexOf(Coordinate, int)
    List<Coordinate>.IndexOf(Coordinate, int, int)
    List<Coordinate>.Insert(int, Coordinate)
    List<Coordinate>.InsertRange(int, IEnumerable<Coordinate>)
    List<Coordinate>.LastIndexOf(Coordinate)
    List<Coordinate>.LastIndexOf(Coordinate, int)
    List<Coordinate>.LastIndexOf(Coordinate, int, int)
    List<Coordinate>.Remove(Coordinate)
    List<Coordinate>.RemoveAll(Predicate<Coordinate>)
    List<Coordinate>.RemoveAt(int)
    List<Coordinate>.RemoveRange(int, int)
    List<Coordinate>.Reverse()
    List<Coordinate>.Reverse(int, int)
    List<Coordinate>.Sort()
    List<Coordinate>.Sort(IComparer<Coordinate>)
    List<Coordinate>.Sort(Comparison<Coordinate>)
    List<Coordinate>.Sort(int, int, IComparer<Coordinate>)
    List<Coordinate>.ToArray()
    List<Coordinate>.TrimExcess()
    List<Coordinate>.TrueForAll(Predicate<Coordinate>)
    List<Coordinate>.Capacity
    List<Coordinate>.Count
    List<Coordinate>.this[int]
    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 class CoordinateList : List<Coordinate>, IList<Coordinate>, ICollection<Coordinate>, IReadOnlyList<Coordinate>, IReadOnlyCollection<Coordinate>, IEnumerable<Coordinate>, IList, ICollection, IEnumerable, ICloneable

    Constructors

    | Edit this page View Source

    CoordinateList()

    Constructs a new list without any coordinates

    Declaration
    public CoordinateList()
    | Edit this page View Source

    CoordinateList(Coordinate[])

    Constructs a new list from an array of Coordinates, allowing repeated points. (I.e. this constructor produces a CoordinateList with exactly the same set of points as the input array.)

    Declaration
    public CoordinateList(Coordinate[] coord)
    Parameters
    Type Name Description
    Coordinate[] coord

    Initial coordinates

    | Edit this page View Source

    CoordinateList(Coordinate[], bool)

    Constructs a new list from an array of Coordinates, allowing caller to specify if repeated points are to be removed.

    Declaration
    public CoordinateList(Coordinate[] coord, bool allowRepeated)
    Parameters
    Type Name Description
    Coordinate[] coord

    Array of coordinates to load into the list.

    bool allowRepeated

    If false, repeated points are removed.

    | Edit this page View Source

    CoordinateList(IList<Coordinate>)

    Constructs a new list from a collection of Coordinates, allows repeated points.

    Declaration
    public CoordinateList(IList<Coordinate> coordList)
    Parameters
    Type Name Description
    IList<Coordinate> coordList

    Collection of coordinates to load into the list.

    | Edit this page View Source

    CoordinateList(IList<Coordinate>, bool)

    Constructs a new list from a collection of Coordinates, allowing caller to specify if repeated points are to be removed.

    Declaration
    public CoordinateList(IList<Coordinate> coordList, bool allowRepeated)
    Parameters
    Type Name Description
    IList<Coordinate> coordList

    Collection of coordinates to load into the list.

    bool allowRepeated

    If false, repeated points are removed.

    | Edit this page View Source

    CoordinateList(int)

    Constructs a new list without any coordinates but an initial capacity

    Declaration
    public CoordinateList(int capacity)
    Parameters
    Type Name Description
    int capacity

    The initial capacity of the list.

    Methods

    | Edit this page View Source

    Add(Coordinate, bool)

    Adds a coordinate to the end of this list.

    Declaration
    public bool Add(Coordinate coord, bool allowRepeated)
    Parameters
    Type Name Description
    Coordinate coord

    Coordinate to be inserted.

    bool allowRepeated

    If set to false, repeated coordinates are collapsed.

    Returns
    Type Description
    bool

    Return true if all ok.

    | Edit this page View Source

    Add(Coordinate[], bool)

    Adds an array of coordinates to the list.

    Declaration
    public bool Add(Coordinate[] coord, bool allowRepeated)
    Parameters
    Type Name Description
    Coordinate[] coord

    Coordinates to be inserted.

    bool allowRepeated

    If set to false, repeated coordinates are collapsed.

    Returns
    Type Description
    bool

    Return true.

    | Edit this page View Source

    Add(Coordinate[], bool, bool)

    Adds an array of coordinates to the list.

    Declaration
    public bool Add(Coordinate[] coord, bool allowRepeated, bool direction)
    Parameters
    Type Name Description
    Coordinate[] coord

    Coordinates to be inserted.

    bool allowRepeated

    If set to false, repeated coordinates are collapsed.

    bool direction

    If false, the array is added in reverse order.

    Returns
    Type Description
    bool

    Return true.

    | Edit this page View Source

    Add(Coordinate[], bool, int, int)

    Adds a section of an array of coordinates to the list.

    Declaration
    public bool Add(Coordinate[] coord, bool allowRepeated, int start, int end)
    Parameters
    Type Name Description
    Coordinate[] coord

    The coordinates

    bool allowRepeated

    If set to false, repeated coordinates are collapsed

    int start

    The index to start from

    int end

    The index to add up to but not including

    Returns
    Type Description
    bool

    true (as by general collection contract)

    | Edit this page View Source

    Add(int, Coordinate, bool)

    Inserts the specified coordinate at the specified position in this list.

    Declaration
    public void Add(int i, Coordinate coord, bool allowRepeated)
    Parameters
    Type Name Description
    int i

    The position at which to insert

    Coordinate coord

    the coordinate to insert

    bool allowRepeated

    if set to false, repeated coordinates are collapsed

    | Edit this page View Source

    Add(object, bool)

    Adds a coordinate to the list.

    Declaration
    public bool Add(object obj, bool allowRepeated)
    Parameters
    Type Name Description
    object obj

    Coordinate to be inserted, as object.

    bool allowRepeated

    If set to false, repeated coordinates are collapsed.

    Returns
    Type Description
    bool

    Return true.

    | Edit this page View Source

    AddAll(IEnumerable<Coordinate>, bool)

    Add an array of coordinates.

    Declaration
    public bool AddAll(IEnumerable<Coordinate> coll, bool allowRepeated)
    Parameters
    Type Name Description
    IEnumerable<Coordinate> coll

    Coordinates collection to be inserted.

    bool allowRepeated

    If set to false, repeated coordinates are collapsed.

    Returns
    Type Description
    bool

    Return true if at least one element has added (IList not empty).

    | Edit this page View Source

    Clone()

    Returns a deep copy of this collection.

    Declaration
    public object Clone()
    Returns
    Type Description
    object

    The copied object.

    | Edit this page View Source

    CloseRing()

    Ensure this coordList is a ring, by adding the start point if necessary.

    Declaration
    public void CloseRing()
    | Edit this page View Source

    GetCoordinate(int)

    Returns the coordinate at specified index.

    Declaration
    public Coordinate GetCoordinate(int i)
    Parameters
    Type Name Description
    int i

    Coordinate index.

    Returns
    Type Description
    Coordinate
    | Edit this page View Source

    ToCoordinateArray()

    Returns the Coordinates in this collection.

    Declaration
    public Coordinate[] ToCoordinateArray()
    Returns
    Type Description
    Coordinate[]

    Coordinates as Coordinate[] array.

    | Edit this page View Source

    ToCoordinateArray(bool)

    Creates an array containing the coordinates in this list, oriented in the given direction (forward or reverse).

    Declaration
    public Coordinate[] ToCoordinateArray(bool isForward)
    Parameters
    Type Name Description
    bool isForward

    The direction value: true for forward, false for reverse

    Returns
    Type Description
    Coordinate[]

    An oriented array of coordinates

    Implements

    IList<T>
    ICollection<T>
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IList
    ICollection
    IEnumerable
    ICloneable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX