|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Points
Encapsulates a sequence of Point
s that each may be uniquely identifiable or not.
The motivation for this interface is to allow more compact and efficient representations than using lists or arrays
of Point
objects. This is essential, as geometries are usually build from many points, e.g. a detailed
LineString
may consist of tens or hundreds thousands of points.
Note that this interface extends JTS CoordinateSequence
interface, so it's possible to use it for the
efficient construction of JTS geometries.
Field Summary |
---|
Fields inherited from interface com.vividsolutions.jts.geom.CoordinateSequence |
---|
M, X, Y, Z |
Method Summary | |
---|---|
Point |
get(int i)
Returns the Point at the specified position. |
double[] |
getAsArray()
Returns all coordinates of the contained Point s as an array. |
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. |
Point |
getStartPoint()
Returns the first point of the sequence. |
int |
size()
Returns the number of represented Point s. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface com.vividsolutions.jts.geom.CoordinateSequence |
---|
clone, expandEnvelope, getCoordinate, getCoordinate, getCoordinateCopy, getOrdinate, getX, getY, setOrdinate, toCoordinateArray |
Method Detail |
---|
int getDimension()
getDimension
in interface com.vividsolutions.jts.geom.CoordinateSequence
int size()
Point
s.
size
in interface com.vividsolutions.jts.geom.CoordinateSequence
Point get(int i)
Point
at the specified position.
NOTE: It is generally more expensive to use this method than to access a Point
by iterating over this
object, because a new Point
object may have to be created (depending on the implementation).
i
-
Point getStartPoint()
Point getEndPoint()
double[] getAsArray()
Point
s as an array.
NOTE: This method should be avoided, as it may involve expensive operations.
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |