Packages

c

org.locationtech.jts.geom.impl

CoordinateArraySequence

class CoordinateArraySequence extends CoordinateSequence with Serializable

A {link CoordinateSequence} backed by an array of {link Coordinate}s. This is the implementation that {link Geometry}s use by default. Coordinates returned by #toArray and #getCoordinate are live -- modifications to them are actually changing the CoordinateSequence's underlying data. A dimension may be specified for the coordinates in the sequence, which may be 2 or 3. The actual coordinates will always have 3 ordinates, but the dimension is useful as metadata in some situations.

Annotations
@SerialVersionUID()
Version

1.7

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CoordinateArraySequence
  2. Serializable
  3. CoordinateSequence
  4. Cloneable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CoordinateArraySequence(coordSeq: CoordinateSequence)

    Creates a new sequence based on a deep copy of the given {link CoordinateSequence}.

    Creates a new sequence based on a deep copy of the given {link CoordinateSequence}. The coordinate dimension is set to equal the dimension of the input.

    coordSeq

    the coordinate sequence that will be copied.

  2. new CoordinateArraySequence(size: Int, dimension: Int, measures: Int)
  3. new CoordinateArraySequence(size: Int, dimension: Int)

    Constructs a sequence of a given size, populated with new {link Coordinate}s.

    Constructs a sequence of a given size, populated with new {link Coordinate}s.

    size

    the size of the sequence to create

    dimension

    the dimension of the coordinates

  4. new CoordinateArraySequence(size: Int)

    Constructs a sequence of a given size, populated with new {link Coordinate}s.

    Constructs a sequence of a given size, populated with new {link Coordinate}s.

    size

    the size of the sequence to create

  5. new CoordinateArraySequence(coordinates: Array[Coordinate], dimension: Int)

    Constructs a sequence based on the given array of {link Coordinate}s (the array is not copied).

    Constructs a sequence based on the given array of {link Coordinate}s (the array is not copied).

    coordinates

    the coordinate array that will be referenced.

    dimension

    the dimension of the coordinates

  6. new CoordinateArraySequence(coordinates: Array[Coordinate])

    Constructs a sequence based on the given array of {link Coordinate}s (the array is not copied).

    Constructs a sequence based on the given array of {link Coordinate}s (the array is not copied). The coordinate dimension defaults to 3.

    coordinates

    the coordinate array that will be referenced.

  7. new CoordinateArraySequence(coordinatesArg: Array[Coordinate], dimension: Int = 3, measures: Int = 0)

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 copy: CoordinateArraySequence

    Creates a deep copy of the CoordinateArraySequence

    Creates a deep copy of the CoordinateArraySequence

    return The deep copy

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
  6. def createCoordinate: Coordinate

    Creates a coordinate for use in this sequence.

    Creates a coordinate for use in this sequence.

    The coordinate is created supporting the same number of {link #getDimension()} and {link #getMeasures()} as this sequence and is suitable for use with {link #getCoordinate(int, Coordinate)}.

    return coordinate for use with this sequence

    Definition Classes
    CoordinateSequence
  7. def enforceArrayConsistency(array: Array[Coordinate]): Array[Coordinate]

    Ensure array contents of the same type, making use of {link #createCoordinate()} as needed.

    Ensure array contents of the same type, making use of {link #createCoordinate()} as needed.

    A new array will be created if needed to return a consistent result.

    array

    array containing consistent coordinate instances

    Attributes
    protected
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def expandEnvelope(env: Envelope): Envelope

    Expands the given {link Envelope} to include the coordinates in the sequence.

    Expands the given {link Envelope} to include the coordinates in the sequence. Allows implementing classes to optimize access to coordinate values.

    env

    the envelope to expand return a ref to the expanded envelope

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getCoordinate(index: Int, coord: Coordinate): Unit

    index

    the index of the coordinate to copy

    coord

    a { @link Coordinate} to receive the value

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
    See also

    org.locationtech.jts.geom.CoordinateSequence#getX(int)

  14. def getCoordinate(i: Int): Coordinate

    Get the Coordinate with index i.

    Get the Coordinate with index i.

    i

    the index of the coordinate return the requested Coordinate instance

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
  15. def getCoordinateCopy(i: Int): Coordinate

    Get a copy of the Coordinate with index i.

    Get a copy of the Coordinate with index i.

    i

    the index of the coordinate return a copy of the requested Coordinate

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
  16. def getDimension: Int

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
    See also

    org.locationtech.jts.geom.CoordinateSequence#getDimension()

  17. def getM(index: Int): Double

    index

    return the value of the M ordinate in the index'th coordinate, or Double.NaN if not defined.

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
    See also

    org.locationtech.jts.geom.CoordinateSequence#getM(int)

  18. def getMeasures: Int

    Returns the number of measures included in {link #getDimension()} for each coordinate for this sequence.

    Returns the number of measures included in {link #getDimension()} for each coordinate for this sequence.

    For a measured coordinate sequence a non-zero value is returned.

    • For XY sequence measures is zero
    • For XYM sequence measure is one -
    • For XYZ sequence measure is zero
    • For XYZM sequence measure is one
    • Values greater than one are supported

    return the number of measures included in dimension

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
  19. def getOrdinate(index: Int, ordinateIndex: Int): Double

    index

    the coordinate index in the sequence

    ordinateIndex

    the ordinate index in the coordinate (in range [0, dimension-1])

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
    See also

    org.locationtech.jts.geom.CoordinateSequence#getOrdinate(int, int)

  20. def getX(index: Int): Double

    Returns ordinate X (0) of the specified coordinate.

    Returns ordinate X (0) of the specified coordinate.

    index

    return the value of the X ordinate in the index'th coordinate

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
  21. def getY(index: Int): Double

    index

    return the value of the Y ordinate in the index'th coordinate

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
    See also

    org.locationtech.jts.geom.CoordinateSequence#getY(int)

  22. def getZ(index: Int): Double

    index

    return the value of the Z ordinate in the index'th coordinate, or Double.NaN if not defined.

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
    See also

    org.locationtech.jts.geom.CoordinateSequence#getZ(int)

  23. def hasM: Boolean

    Tests whether the coordinates in the sequence have measures associated with them.

    Tests whether the coordinates in the sequence have measures associated with them. Returns true if {link #getMeasures()} > 0. See {link #getMeasures()} to determine the number of measures present.

    return true if { @link #getM(int)} is supported.

    Definition Classes
    CoordinateSequence
    See also

    #getMeasures()

    #getM(int)

  24. def hasZ: Boolean

    Checks {link #getDimension()} and {link #getMeasures()} to determine if {link #getZ(int)} is supported.

    Checks {link #getDimension()} and {link #getMeasures()} to determine if {link #getZ(int)} is supported.

    return true if { @link #getZ(int)} is supported.

    Definition Classes
    CoordinateSequence
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def setOrdinate(index: Int, ordinateIndex: Int, value: Double): Unit

    index

    the coordinate index in the sequence

    ordinateIndex

    the ordinate index in the coordinate (in range [0, dimension-1])

    value

    the new ordinate value

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
    See also

    org.locationtech.jts.geom.CoordinateSequence#setOrdinate(int, int, double)

  31. def size: Int

    Returns the size of the coordinate sequence

    Returns the size of the coordinate sequence

    return the number of coordinates

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toCoordinateArray: Array[Coordinate]

    This method exposes the internal Array of Coordinate Objects

    This method exposes the internal Array of Coordinate Objects

    return the Coordinate[] array.

    Definition Classes
    CoordinateArraySequenceCoordinateSequence
  34. def toString(): String

    Returns the string Representation of the coordinate array

    Returns the string Representation of the coordinate array

    return The string

    Definition Classes
    CoordinateArraySequence → AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def clone: AnyRef

    Creates a deep copy of the Object

    Creates a deep copy of the Object

    return The deep copy

    Definition Classes
    CoordinateArraySequenceCoordinateSequence → AnyRef
    Deprecated

Inherited from Serializable

Inherited from CoordinateSequence

Inherited from Cloneable

Inherited from AnyRef

Inherited from Any

Ungrouped