class Double extends PackedCoordinateSequence
Packed coordinate sequence implementation based on doubles
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Double
- PackedCoordinateSequence
- Serializable
- CoordinateSequence
- Cloneable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Double(size: Int, dimension: Int, measures: Int)
Builds a new empty packed coordinate sequence of a given size and dimension
Builds a new 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.
- new Double(coordinates: Array[Coordinate])
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
- new Double(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.
- new Double(coordinates: Array[Coordinate], dimension: Int, measures: 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.
- measures
the number of measure-ordinates each { @link Coordinate} in this sequence has.
- new Double(coords: Array[scala.Float], dimension: Int, measures: Int)
Builds a new packed coordinate sequence out of a float coordinate array
Builds a new packed coordinate sequence out of a float coordinate array
- coords
an array of <c>float</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.
- new Double(coords: Array[scala.Double], dim: Int, meas: Int)
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
- 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
- def copy: CoordinateSequence
- Definition Classes
- Double → PackedCoordinateSequence → CoordinateSequence
- See also
PackedCoordinateSequence#size()
- 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
- var dimension: Int
- Definition Classes
- PackedCoordinateSequence
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def expandEnvelope(env: Envelope): Envelope
- env
the envelope to expand return a ref to the expanded envelope
- Definition Classes
- Double → CoordinateSequence
- See also
CoordinateSequence#expandEnvelope(Envelope)
- 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 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
- PackedCoordinateSequence → CoordinateSequence
- def getCoordinate(i: Int): Coordinate
- i
the index of the coordinate to retrieve return the i'th coordinate in the sequence
- Definition Classes
- PackedCoordinateSequence → CoordinateSequence
- See also
CoordinateSequence#getCoordinate(int)
- 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
- PackedCoordinateSequence → CoordinateSequence
- def getCoordinateInternal(i: Int): Coordinate
- Definition Classes
- Double → PackedCoordinateSequence
- See also
PackedCoordinateSequence#getCoordinate(int)
- def getDimension: Int
- Definition Classes
- PackedCoordinateSequence → CoordinateSequence
- See also
CoordinateSequence#getDimension()
- 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
- def getMeasures: Int
- Definition Classes
- PackedCoordinateSequence → CoordinateSequence
- See also
CoordinateSequence#getMeasures()
- def getOrdinate(index: Int, ordinate: Int): scala.Double
- index
the coordinate index in the sequence
- Definition Classes
- Double → PackedCoordinateSequence → CoordinateSequence
- See also
PackedCoordinateSequence#getOrdinate(int, int) Beware, for performance reasons the ordinate index is not checked, if it's over dimensions you may not get an exception but a meaningless value.
- def getRawCoordinates: Array[scala.Double]
Gets the underlying array containing the coordinate values.
Gets the underlying array containing the coordinate values.
return the array of coordinate values
- def getX(index: Int): scala.Double
- index
return the value of the X ordinate in the index'th coordinate
- Definition Classes
- PackedCoordinateSequence → CoordinateSequence
- See also
CoordinateSequence#getX(int)
- def getY(index: Int): scala.Double
- index
return the value of the Y ordinate in the index'th coordinate
- Definition Classes
- PackedCoordinateSequence → CoordinateSequence
- See also
CoordinateSequence#getY(int)
- 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
- 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)
- 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
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var measures: Int
- Definition Classes
- PackedCoordinateSequence
- 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 readResolve: PackedCoordinateSequence
- Attributes
- protected
- Definition Classes
- PackedCoordinateSequence
- Annotations
- @throws(scala.this.throws.<init>$default$1[java.io.ObjectStreamException])
- def setOrdinate(index: Int, ordinate: Int, value: scala.Double): Unit
- 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
- Double → PackedCoordinateSequence → CoordinateSequence
- See also
PackedCoordinateSequence#setOrdinate(int, int, double)
- 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
- 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
- def size: Int
- Definition Classes
- Double → CoordinateSequence
- See also
CoordinateSequence#size()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toCoordinateArray: Array[Coordinate]
- Definition Classes
- PackedCoordinateSequence → CoordinateSequence
- See also
CoordinateSequence#toCoordinateArray()
- def toString(): String
- Definition Classes
- PackedCoordinateSequence → 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()
Deprecated Value Members
- def clone: AnyRef
- Definition Classes
- Double → PackedCoordinateSequence → CoordinateSequence → AnyRef
- Deprecated
- See also
java.lang.Object#clone()
PackedCoordinateSequence#clone()