|
JTS Topology Suite - v 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.geom.impl.PackedCoordinateSequence
com.vividsolutions.jts.geom.impl.PackedCoordinateSequence.Float
public static class PackedCoordinateSequence.Float
Packed coordinate sequence implementation based on floats
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vividsolutions.jts.geom.impl.PackedCoordinateSequence |
|---|
PackedCoordinateSequence.Double, PackedCoordinateSequence.Float |
| Field Summary |
|---|
| Fields inherited from class com.vividsolutions.jts.geom.impl.PackedCoordinateSequence |
|---|
coordRef, dimension |
| Fields inherited from interface com.vividsolutions.jts.geom.CoordinateSequence |
|---|
M, X, Y, Z |
| Constructor Summary | |
|---|---|
PackedCoordinateSequence.Float(Coordinate[] coordinates,
int dimension)
Constructs a packed coordinate sequence out of a coordinate array |
|
PackedCoordinateSequence.Float(double[] coordinates,
int dimensions)
Constructs a packed coordinate sequence from an array of double |
|
PackedCoordinateSequence.Float(float[] coords,
int dimensions)
Constructs a packed coordinate sequence from an array of float |
|
PackedCoordinateSequence.Float(int size,
int dimension)
Constructs an empty packed coordinate sequence of a given size and dimension |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a deep copy of this collection. |
Envelope |
expandEnvelope(Envelope env)
Expands the given Envelope to include the coordinates in the sequence. |
Coordinate |
getCoordinateInternal(int i)
Returns a Coordinate representation of the specified coordinate, by always building a new Coordinate object |
double |
getOrdinate(int index,
int ordinate)
Returns the ordinate of a coordinate in this sequence. |
void |
setOrdinate(int index,
int ordinate,
double value)
Sets the ordinate of a coordinate in this sequence. |
int |
size()
Returns the number of coordinates in this sequence. |
| Methods inherited from class com.vividsolutions.jts.geom.impl.PackedCoordinateSequence |
|---|
getCoordinate, getCoordinate, getCoordinateCopy, getDimension, getX, getY, setX, setY, toCoordinateArray |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackedCoordinateSequence.Float(float[] coords,
int dimensions)
floats
- Parameters:
coords - dimensions -
public PackedCoordinateSequence.Float(double[] coordinates,
int dimensions)
doubles
- Parameters:
coordinates - dimension -
public PackedCoordinateSequence.Float(Coordinate[] coordinates,
int dimension)
coordinates -
public PackedCoordinateSequence.Float(int size,
int dimension)
coordinates - | Method Detail |
|---|
public Coordinate getCoordinateInternal(int i)
PackedCoordinateSequence
getCoordinateInternal in class PackedCoordinateSequenceCoordinateSequence.getCoordinate(int)public int size()
CoordinateSequence
CoordinateSequence.size()public java.lang.Object clone()
CoordinateSequence
clone in interface CoordinateSequenceclone in class PackedCoordinateSequenceObject.clone()
public double getOrdinate(int index,
int ordinate)
CoordinateSequence
getOrdinate in interface CoordinateSequencegetOrdinate in class PackedCoordinateSequenceindex - the coordinate index in the sequenceordinate - the ordinate index in the coordinate (in range [0, dimension-1])Beware, for performace reasons the ordinate index is not checked, if
it's over dimensions you may not get an exception but a meaningless
value.
public void setOrdinate(int index,
int ordinate,
double value)
PackedCoordinateSequence
setOrdinate in interface CoordinateSequencesetOrdinate in class PackedCoordinateSequenceindex - the coordinate indexordinate - the ordinate index in the coordinate, 0 based, smaller than the
number of dimensionsvalue - the new ordinate valuecom.vividsolutions.jts.geom.PackedCoordinateSequence#setOrdinate(int,
int, double)public Envelope expandEnvelope(Envelope env)
CoordinateSequenceEnvelope to include the coordinates in the sequence.
Allows implementing classes to optimize access to coordinate values.
env - the envelope to expand
|
JTS Topology Suite - v 1.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||