CoordinateList class

A list of {@link Coordinate}s, which may be set to prevent repeated coordinates from occurring in the list.

@version 1.7

Constructors

CoordinateList()
Constructs a new list without any coordinates
CoordinateList.fromList(List<Coordinate> coord)
Constructs a new list from an array of Coordinates, allowing repeated points. (I.e. this constructor produces a {@link CoordinateList} with exactly the same set of points as the input array.)
CoordinateList.fromListAllowRepeat(List<Coordinate> coord, bool allowRepeated)
Constructs a new list from an array of Coordinates, allowing caller to specify if repeated points are to be removed.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Coordinate coord) bool
add3(List<Coordinate> coord, bool allowRepeated, bool direction) bool
Adds an array of coordinates to the list. @param coord The coordinates @param allowRepeated if set to false, repeated coordinates are collapsed @param direction if false, the array is added in reverse order @return true (as by general collection contract)
add33(int i, Coordinate coord, bool allowRepeated) → void
Inserts the specified coordinate at the specified position in this list.
add4(List<Coordinate> coord, bool allowRepeated, int start, int end) bool
Adds a section of an array of coordinates to the list. @param coord The coordinates @param allowRepeated if set to false, repeated coordinates are collapsed @param start the index to start from @param end the index to add up to but not including @return true (as by general collection contract)
addAll(List<Coordinate> coll, bool allowRepeated) bool
Add an array of coordinates
addCoord(Coordinate coord, bool allowRepeated) → void
Adds a coordinate to the end of the list.
addList(List<Coordinate> coord, bool allowRepeated) bool
Adds an array of coordinates to the list. @param coord The coordinates @param allowRepeated if set to false, repeated coordinates are collapsed @return true (as by general collection contract)
closeRing() → void
Ensure this coordList is a ring, by adding the start point if necessary
getCoordinate(int i) Coordinate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
size() int
toCoordinateArray() List<Coordinate>
Returns the Coordinates in this collection. *
toCoordinateArrayWithCheck(bool isForward) List<Coordinate>
Creates an array containing the coordinates in this list, oriented in the given direction (forward or reverse).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited