|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.geometry.standard.points.PackedPoints
public class PackedPoints
Points
implementation based on a coordinate array.
This implementation is quite memory efficient, but only allows to hold anonymous Point
objects.
Field Summary |
---|
Fields inherited from interface com.vividsolutions.jts.geom.CoordinateSequence |
---|
M, X, Y, Z |
Constructor Summary | |
---|---|
PackedPoints(ICRS crs,
double[] coordinates,
int coordinatesDimension)
|
Method Summary | |
---|---|
Object |
clone()
|
com.vividsolutions.jts.geom.Envelope |
expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
|
Point |
get(int i)
Provides acccess to an arbitrary Point in the sequence (expensive!). |
double[] |
getAsArray()
Returns all coordinates of the contained Point s as an array. |
com.vividsolutions.jts.geom.Coordinate |
getCoordinate(int index)
|
void |
getCoordinate(int index,
com.vividsolutions.jts.geom.Coordinate coord)
|
com.vividsolutions.jts.geom.Coordinate |
getCoordinateCopy(int index)
|
int |
getDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the points are embedded in. |
Point |
getEndPoint()
Returns the last point of the sequence. |
double |
getOrdinate(int index,
int ordinateIndex)
|
Point |
getStartPoint()
Returns the first point of the sequence. |
double |
getX(int index)
|
double |
getY(int index)
|
Iterator<Point> |
iterator()
|
void |
setOrdinate(int index,
int ordinateIndex,
double value)
|
int |
size()
Returns the number of represented Point s. |
com.vividsolutions.jts.geom.Coordinate[] |
toCoordinateArray()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PackedPoints(ICRS crs, double[] coordinates, int coordinatesDimension)
Method Detail |
---|
public int getDimension()
Points
getDimension
in interface com.vividsolutions.jts.geom.CoordinateSequence
getDimension
in interface Points
public int size()
Points
Point
s.
size
in interface com.vividsolutions.jts.geom.CoordinateSequence
size
in interface Points
public Point get(int i)
Point
in the sequence (expensive!).
get
in interface Points
public Iterator<Point> iterator()
iterator
in interface Iterable<Point>
public double[] getAsArray()
Points
Point
s as an array.
NOTE: This method should be avoided, as it may involve expensive operations.
getAsArray
in interface Points
public Point getEndPoint()
Points
getEndPoint
in interface Points
public Point getStartPoint()
Points
getStartPoint
in interface Points
public com.vividsolutions.jts.geom.Envelope expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
expandEnvelope
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate getCoordinate(int index)
getCoordinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public void getCoordinate(int index, com.vividsolutions.jts.geom.Coordinate coord)
getCoordinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate getCoordinateCopy(int index)
getCoordinateCopy
in interface com.vividsolutions.jts.geom.CoordinateSequence
public double getOrdinate(int index, int ordinateIndex)
getOrdinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public double getX(int index)
getX
in interface com.vividsolutions.jts.geom.CoordinateSequence
public double getY(int index)
getY
in interface com.vividsolutions.jts.geom.CoordinateSequence
public void setOrdinate(int index, int ordinateIndex, double value)
setOrdinate
in interface com.vividsolutions.jts.geom.CoordinateSequence
public com.vividsolutions.jts.geom.Coordinate[] toCoordinateArray()
toCoordinateArray
in interface com.vividsolutions.jts.geom.CoordinateSequence
public Object clone()
clone
in interface com.vividsolutions.jts.geom.CoordinateSequence
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |