o

org.locationtech.jts.geom

CoordinateSequences

object CoordinateSequences

Utility functions for manipulating {link CoordinateSequence}s

Version

1.7

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CoordinateSequences
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. 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

  7. 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

  8. 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.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def extend(fact: CoordinateSequenceFactory, seq: CoordinateSequence, size: Int): CoordinateSequence
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def indexOf(coordinate: Coordinate, seq: CoordinateSequence): Int

    Returns the index of coordinate in a {link CoordinateSequence} The first position is 0; the second, 1; etc.

    Returns the index of coordinate in a {link CoordinateSequence} The first position is 0; the second, 1; etc.

    coordinate

    the Coordinate to search for

    seq

    the coordinate sequence to search return the position of coordinate, or -1 if it is not found

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. 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

  18. 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)

  19. 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 from and to, using the usual lexicographic comparison.

    Returns the index of the minimum coordinate of a part of the coordinate sequence (defined by from and to, 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)

  20. 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)

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. 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

  25. def scroll(seq: CoordinateSequence, indexOfFirstCoordinate: Int, ensureRing: Boolean): Unit

    Shifts the positions of the coordinates until the coordinate at firstCoordinateIndex is first.

    Shifts the positions of the coordinates until the coordinate at firstCoordinateIndex is 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

  26. def scroll(seq: CoordinateSequence, indexOfFirstCoordinate: Int): Unit

    Shifts the positions of the coordinates until the coordinate at firstCoordinateIndex is first.

    Shifts the positions of the coordinates until the coordinate at firstCoordinateIndex is first.

    seq

    the coordinate sequence to rearrange

    indexOfFirstCoordinate

    the index of the coordinate to make first

  27. def scroll(seq: CoordinateSequence, firstCoordinate: Coordinate): Unit

    Shifts the positions of the coordinates until firstCoordinate is first.

    Shifts the positions of the coordinates until firstCoordinate is first.

    seq

    the coordinate sequence to rearrange

    firstCoordinate

    the coordinate to make first

  28. 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

  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. 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

  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped