object CoordinateSequences
Utility functions for manipulating {link CoordinateSequence}s
- Version
1.7
- Alphabetic
- By Inheritance
- CoordinateSequences
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def copy(src: CoordinateSequence, srcPos: Int, dest: CoordinateSequence, destPos: Int, length: Int): Unit
Copies a section of a {link CoordinateSequence} to another {link CoordinateSequence}.
Copies a section of a {link CoordinateSequence} to another {link CoordinateSequence}. The sequences may have different dimensions; in this case only the common dimensions are copied.
- src
the sequence to copy from
- srcPos
the position in the source sequence to start copying at
- dest
the sequence to copy to
- destPos
the position in the destination sequence to copy to
- length
the number of coordinates to copy
- def copyCoord(src: CoordinateSequence, srcPos: Int, dest: CoordinateSequence, destPos: Int): Unit
Copies a coordinate of a {link CoordinateSequence} to another {link CoordinateSequence}.
Copies a coordinate of a {link CoordinateSequence} to another {link CoordinateSequence}. The sequences may have different dimensions; in this case only the common dimensions are copied.
- src
the sequence to copy from
- srcPos
the source coordinate to copy
- dest
the sequence to copy to
- destPos
the destination coordinate to copy to
- def ensureValidRing(fact: CoordinateSequenceFactory, seq: CoordinateSequence): CoordinateSequence
Ensures that a CoordinateSequence forms a valid ring, returning a new closed sequence of the correct length if required.
Ensures that a CoordinateSequence forms a valid ring, returning a new closed sequence of the correct length if required. If the input sequence is already a valid ring, it is returned without modification. If the input sequence is too short or is not closed, it is extended with one or more copies of the start point.
- fact
the CoordinateSequenceFactory to use to create the new sequence
- seq
the sequence to test return the original sequence, if it was a valid ring, or a new sequence which is valid.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extend(fact: CoordinateSequenceFactory, seq: CoordinateSequence, size: Int): CoordinateSequence
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def indexOf(coordinate: Coordinate, seq: CoordinateSequence): Int
Returns the index of
coordinatein a {link CoordinateSequence} The first position is 0; the second, 1; etc.Returns the index of
coordinatein a {link CoordinateSequence} The first position is 0; the second, 1; etc.- coordinate
the
Coordinateto search for- seq
the coordinate sequence to search return the position of
coordinate, or -1 if it is not found
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRing(seq: CoordinateSequence): Boolean
Tests whether a {link CoordinateSequence} forms a valid {link LinearRing}, by checking the sequence length and closure (whether the first and last points are identical in 2D).
Tests whether a {link CoordinateSequence} forms a valid {link LinearRing}, by checking the sequence length and closure (whether the first and last points are identical in 2D). Self-intersection is not checked.
- seq
the sequence to test return true if the sequence is a ring
- See also
LinearRing
- def minCoordinate(seq: CoordinateSequence): Coordinate
Returns the minimum coordinate, using the usual lexicographic comparison.
Returns the minimum coordinate, using the usual lexicographic comparison.
- seq
the coordinate sequence to search return the minimum coordinate in the sequence, found using
compareTo
- See also
Coordinate#compareTo(Object)
- def minCoordinateIndex(seq: CoordinateSequence, from: Int, to: Int): Int
Returns the index of the minimum coordinate of a part of the coordinate sequence (defined by
fromandto, using the usual lexicographic comparison.Returns the index of the minimum coordinate of a part of the coordinate sequence (defined by
fromandto, using the usual lexicographic comparison.- seq
the coordinate sequence to search
- from
the lower search index
- to
the upper search index return the index of the minimum coordinate in the sequence, found using
compareTo
- See also
Coordinate#compareTo(Object)
- def minCoordinateIndex(seq: CoordinateSequence): Int
Returns the index of the minimum coordinate of the whole coordinate sequence, using the usual lexicographic comparison.
Returns the index of the minimum coordinate of the whole coordinate sequence, using the usual lexicographic comparison.
- seq
the coordinate sequence to search return the index of the minimum coordinate in the sequence, found using
compareTo
- See also
Coordinate#compareTo(Object)
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def reverse(seq: CoordinateSequence): Unit
Reverses the coordinates in a sequence in-place.
Reverses the coordinates in a sequence in-place.
- seq
the coordinate sequence to reverse
- def scroll(seq: CoordinateSequence, indexOfFirstCoordinate: Int, ensureRing: Boolean): Unit
Shifts the positions of the coordinates until the coordinate at
firstCoordinateIndexis first.Shifts the positions of the coordinates until the coordinate at
firstCoordinateIndexis first.- seq
the coordinate sequence to rearrange
- indexOfFirstCoordinate
the index of the coordinate to make first
- ensureRing
makes sure that { @code } will be a closed ring upon exit
- def scroll(seq: CoordinateSequence, indexOfFirstCoordinate: Int): Unit
Shifts the positions of the coordinates until the coordinate at
firstCoordinateIndexis first.Shifts the positions of the coordinates until the coordinate at
firstCoordinateIndexis first.- seq
the coordinate sequence to rearrange
- indexOfFirstCoordinate
the index of the coordinate to make first
- def scroll(seq: CoordinateSequence, firstCoordinate: Coordinate): Unit
Shifts the positions of the coordinates until
firstCoordinateis first.Shifts the positions of the coordinates until
firstCoordinateis first.- seq
the coordinate sequence to rearrange
- firstCoordinate
the coordinate to make first
- def swap(seq: CoordinateSequence, i: Int, j: Int): Unit
Swaps two coordinates in a sequence.
Swaps two coordinates in a sequence.
- seq
the sequence to modify
- i
the index of a coordinate to swap
- j
the index of a coordinate to swap
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(cs: CoordinateSequence): String
Creates a string representation of a {link CoordinateSequence}.
Creates a string representation of a {link CoordinateSequence}. The format is:
( ord0,ord1.. ord0,ord1,... ... )
- cs
the sequence to output return the string representation of the sequence
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()