Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package locationtech
    Definition Classes
    org
  • package jts
    Definition Classes
    locationtech
  • package geom
    Definition Classes
    jts
  • package impl
    Definition Classes
    geom
  • object PackedCoordinateSequence extends Serializable

    A {link CoordinateSequence} implementation based on a packed arrays.

    A {link CoordinateSequence} implementation based on a packed arrays. In this implementation, {link Coordinate}s returned by #toArray and #get are copies of the internal values. To change the actual values, use the provided setters.

    For efficiency, created Coordinate arrays are cached using a soft reference. The cache is cleared each time the coordinate sequence contents are modified through a setter method.

    Definition Classes
    impl
    Annotations
    @SerialVersionUID()
    Version

    1.7

  • Double
  • Float

class Float extends PackedCoordinateSequence

Packed coordinate sequence implementation based on floats

Annotations
@SerialVersionUID()
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Float
  2. PackedCoordinateSequence
  3. Serializable
  4. CoordinateSequence
  5. Cloneable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Float(size: Int, dimension: Int, measures: Int)

    Constructs an empty packed coordinate sequence of a given size and dimension

    Constructs an empty packed coordinate sequence of a given size and dimension

    size

    the number of coordinates in this sequence

    dimension

    the total number of ordinates that make up a { @link Coordinate} in this sequence.

    measures

    the number of measure-ordinates each { @link Coordinate} in this sequence has.

  2. new Float(coordinates: Array[Coordinate], dimension: Int)

    Builds a new packed coordinate sequence out of a coordinate array

    Builds a new packed coordinate sequence out of a coordinate array

    coordinates

    an array of { @link Coordinate}s

    dimension

    the total number of ordinates that make up a { @link Coordinate} in this sequence.

  3. new Float(coordinates: Array[Coordinate], dimension: Int, measures: Int)

    Constructs a packed coordinate sequence out of a coordinate array

    Constructs a packed coordinate sequence out of a coordinate array

    coordinates

    an array of { @link Coordinate}s

    dimension

    the total number of ordinates that make up a { @link Coordinate} in this sequence.

    measures

    the number of measure-ordinates each { @link Coordinate} in this sequence has.

  4. new Float(coords: Array[scala.Double], dimension: Int, measures: Int)

    Constructs a packed coordinate sequence from an array of doubles

    Constructs a packed coordinate sequence from an array of doubles

    coords

    an array of <c>double</c> values that contains the ordinate values of the sequence

    dimension

    the total number of ordinates that make up a { @link Coordinate} in this sequence.

    measures

    the number of measure-ordinates each { @link Coordinate} in this sequence has.

  5. new Float(coords: Array[scala.Float], dim: Int, meas: Int)

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. var coordRef: SoftReference[Array[Coordinate]]

    A soft reference to the Coordinate[] representation of this sequence.

    A soft reference to the Coordinate[] representation of this sequence. Makes repeated coordinate array accesses more efficient.

    Attributes
    protected
    Definition Classes
    PackedCoordinateSequence
  6. def copy: Float

    Definition Classes
    FloatPackedCoordinateSequenceCoordinateSequence
    See also

    PackedCoordinateSequence#copy()

  7. 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
  8. var dimension: Int
    Definition Classes
    PackedCoordinateSequence
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. 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
    FloatCoordinateSequence
  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 getCoordinate(i: Int, coord: Coordinate): Unit

    Copies the i'th coordinate in the sequence to the supplied {link Coordinate}.

    Copies the i'th coordinate in the sequence to the supplied {link Coordinate}. Only the first two dimensions are copied.

    coord

    a { @link Coordinate} to receive the value

    Definition Classes
    PackedCoordinateSequenceCoordinateSequence
  15. def getCoordinate(i: Int): Coordinate

    i

    the index of the coordinate to retrieve return the i'th coordinate in the sequence

    Definition Classes
    PackedCoordinateSequenceCoordinateSequence
    See also

    CoordinateSequence#getCoordinate(int)

  16. def getCoordinateCopy(i: Int): Coordinate

    Returns a copy of the i'th coordinate in this sequence.

    Returns a copy of the i'th coordinate in this sequence. This method optimizes the situation where the caller is going to make a copy anyway - if the implementation has already created a new Coordinate object, no further copy is needed.

    i

    the index of the coordinate to retrieve return a copy of the i'th coordinate in the sequence

    Definition Classes
    PackedCoordinateSequenceCoordinateSequence
  17. def getCoordinateInternal(i: Int): Coordinate

    Returns a Coordinate representation of the specified coordinate, by always building a new Coordinate object

    Returns a Coordinate representation of the specified coordinate, by always building a new Coordinate object

    Definition Classes
    FloatPackedCoordinateSequence
  18. def getDimension: Int

    Definition Classes
    PackedCoordinateSequenceCoordinateSequence
    See also

    CoordinateSequence#getDimension()

  19. def getM(index: Int): scala.Double

    Returns ordinate M of the specified coordinate if available.

    Returns ordinate M of the specified coordinate if available.

    index

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

    Definition Classes
    CoordinateSequence
  20. def getMeasures: Int

    Definition Classes
    PackedCoordinateSequenceCoordinateSequence
    See also

    CoordinateSequence#getMeasures()

  21. def getOrdinate(index: Int, ordinate: Int): scala.Double

    index

    the coordinate index in the sequence

    Definition Classes
    FloatPackedCoordinateSequenceCoordinateSequence
    See also

    PackedCoordinateSequence#getOrdinate(int, int) For performance reasons the ordinate index is not checked. If it is larger than the dimension a meaningless value may be returned.

  22. def getRawCoordinates: Array[scala.Float]
  23. def getX(index: Int): scala.Double

    index

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

    Definition Classes
    PackedCoordinateSequenceCoordinateSequence
    See also

    CoordinateSequence#getX(int)

  24. def getY(index: Int): scala.Double

    index

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

    Definition Classes
    PackedCoordinateSequenceCoordinateSequence
    See also

    CoordinateSequence#getY(int)

  25. def getZ(index: Int): scala.Double

    Returns ordinate Z of the specified coordinate if available.

    Returns ordinate Z of the specified coordinate if available.

    index

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

    Definition Classes
    CoordinateSequence
  26. 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)

  27. 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
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. var measures: Int
    Definition Classes
    PackedCoordinateSequence
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def readResolve: PackedCoordinateSequence
    Attributes
    protected
    Definition Classes
    PackedCoordinateSequence
    Annotations
    @throws(scala.this.throws.<init>$default$1[java.io.ObjectStreamException])
  35. def setOrdinate(index: Int, ordinate: Int, value: scala.Double): Unit

    Sets the ordinate of a coordinate in this sequence.

    Sets the ordinate of a coordinate in this sequence.
    Warning: for performance reasons the ordinate index is not checked - if it is over dimensions you may not get an exception but a meaningless value.

    index

    the coordinate index

    ordinate

    the ordinate index in the coordinate, 0 based, smaller than the number of dimensions

    value

    the new ordinate value

    Definition Classes
    FloatPackedCoordinateSequenceCoordinateSequence
  36. def setX(index: Int, value: scala.Double): Unit

    Sets the first ordinate of a coordinate in this sequence.

    Sets the first ordinate of a coordinate in this sequence.

    index

    the coordinate index

    value

    the new ordinate value

    Definition Classes
    PackedCoordinateSequence
  37. def setY(index: Int, value: scala.Double): Unit

    Sets the second ordinate of a coordinate in this sequence.

    Sets the second ordinate of a coordinate in this sequence.

    index

    the coordinate index

    value

    the new ordinate value

    Definition Classes
    PackedCoordinateSequence
  38. def size: Int

    Returns the number of coordinates in this sequence.

    Returns the number of coordinates in this sequence.

    return the size of the sequence

    Definition Classes
    FloatCoordinateSequence
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toCoordinateArray: Array[Coordinate]

    Definition Classes
    PackedCoordinateSequenceCoordinateSequence
    See also

    CoordinateSequence#toCoordinateArray()

  41. def toString(): String
    Definition Classes
    PackedCoordinateSequence → AnyRef → Any
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def clone: Float

    Definition Classes
    FloatPackedCoordinateSequenceCoordinateSequence → AnyRef
    Deprecated
    See also

    java.lang.Object#clone()

    CoordinateSequence#clone()

Inherited from Serializable

Inherited from CoordinateSequence

Inherited from Cloneable

Inherited from AnyRef

Inherited from Any

Ungrouped