public class LiteCoordinateSequence
extends PackedCoordinateSequence
Constructor and Description |
---|
LiteCoordinateSequence(Coordinate[] coordinates)
Builds a new packed coordinate sequence out of a coordinate array
|
LiteCoordinateSequence(CoordinateSequence cs,
int dimension) |
LiteCoordinateSequence(double... coords)
Builds a new packed coordinate sequence
|
LiteCoordinateSequence(double[] coords,
int dimensions)
Builds a new packed coordinate sequence
|
LiteCoordinateSequence(double[] coords,
int dimensions,
int measures)
Builds a new packed coordinate sequence
|
LiteCoordinateSequence(float[] coordinates)
Builds a new packed coordinate sequence out of a float coordinate array
|
LiteCoordinateSequence(float[] coordinates,
int dimension)
Builds a new packed coordinate sequence out of a float coordinate array
|
LiteCoordinateSequence(int size,
int dimension)
Builds a new empty packed coordinate sequence of a given size and dimension
|
LiteCoordinateSequence(int size,
int dimension,
int measures)
Builds a new empty packed coordinate sequence of a given size and dimension
|
LiteCoordinateSequence(LiteCoordinateSequence seq)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
static Geometry |
cloneGeometry(Geometry geom)
Clones the specified geometry using
LiteCoordinateSequence in the result |
static Geometry |
cloneGeometry(Geometry geom,
int dimension)
Clones the specified geometry using
LiteCoordinateSequence in the result, with the
specified number of dimensions |
PackedCoordinateSequence |
copy() |
Envelope |
expandEnvelope(Envelope env) |
double[] |
getArray() |
Coordinate |
getCoordinateInternal(int i) |
double |
getOrdinate(int index,
int ordinate) |
double[] |
getOrdinateArray(int dimensions) |
double |
getX(int index) |
double[] |
getXYArray()
if this is a dimension=2 seq, then this is the same as getArray().
|
double |
getY(int index) |
void |
setArray(double[] coords2) |
void |
setArray(double[] coords2,
int dimension) |
void |
setOrdinate(int index,
int ordinate,
double value) |
int |
size() |
String |
toString() |
getCoordinate, getCoordinate, getCoordinateCopy, getDimension, getMeasures, readResolve, setX, setY, toCoordinateArray
public LiteCoordinateSequence(double[] coords, int dimensions)
coords
- public LiteCoordinateSequence(double[] coords, int dimensions, int measures)
coords
- public LiteCoordinateSequence(double... coords)
coords
- public LiteCoordinateSequence(float[] coordinates, int dimension)
coordinates
- public LiteCoordinateSequence(float[] coordinates)
coordinates
- public LiteCoordinateSequence(Coordinate[] coordinates)
coordinates
- public LiteCoordinateSequence(int size, int dimension)
size
- dimension
- public LiteCoordinateSequence(int size, int dimension, int measures)
size
- dimension
- measures
- public LiteCoordinateSequence(LiteCoordinateSequence seq)
seq
- public LiteCoordinateSequence(CoordinateSequence cs, int dimension)
public Coordinate getCoordinateInternal(int i)
getCoordinateInternal
in class PackedCoordinateSequence
CoordinateSequence.getCoordinate(int)
public int size()
CoordinateSequence.size()
public Object clone()
clone
in interface CoordinateSequence
clone
in class PackedCoordinateSequence
Object.clone()
public PackedCoordinateSequence copy()
copy
in interface CoordinateSequence
copy
in class PackedCoordinateSequence
public double getOrdinate(int index, int ordinate)
getOrdinate
in interface CoordinateSequence
getOrdinate
in class PackedCoordinateSequence
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 double getX(int index)
getX
in interface CoordinateSequence
getX
in class PackedCoordinateSequence
CoordinateSequence.getX(int)
public double getY(int index)
getY
in interface CoordinateSequence
getY
in class PackedCoordinateSequence
CoordinateSequence.getY(int)
public void setOrdinate(int index, int ordinate, double value)
setOrdinate
in interface CoordinateSequence
setOrdinate
in class PackedCoordinateSequence
org.locationtech.jts.geom.PackedCoordinateSequence#setOrdinate(int, int, double)
public Envelope expandEnvelope(Envelope env)
public double[] getArray()
public void setArray(double[] coords2)
coords2
- public void setArray(double[] coords2, int dimension)
public double[] getXYArray()
public double[] getOrdinateArray(int dimensions)
public static Geometry cloneGeometry(Geometry geom, int dimension)
LiteCoordinateSequence
in the result, with the
specified number of dimensionsgeom
- dimension
- public static final Geometry cloneGeometry(Geometry geom)
LiteCoordinateSequence
in the resultgeom
- public String toString()
toString
in class PackedCoordinateSequence
Copyright © 1996–2019 Geotools. All rights reserved.