public interface PointSequenceBuilder
PointSequences.
PointSequence
s are built by adding points in sequence.| Modifier and Type | Method and Description |
|---|---|
PointSequenceBuilder |
add(double[] coordinates)
Adds a
Point to the PointSequence being built. |
PointSequenceBuilder |
add(double x,
double y)
Adds a 2-dimensional point to the
PointSequence being built. |
PointSequenceBuilder |
add(double x,
double y,
double zOrm)
Adds a 3-dimensional point to the
PointSequence being built. |
PointSequenceBuilder |
add(double x,
double y,
double z,
double m)
Adds a 4-dimensional point to the
PointSequence being built. |
PointSequenceBuilder |
add(Point pnt)
Adds the specified
Point to the PointSequence being built. |
CrsId |
getCrsId()
Returns the
CrsId of the PointSequence being built. |
DimensionalFlag |
getDimensionalFlag()
Returns the
DimensionalFlag of the PointSequence being built. |
int |
getNumAdded()
Returns the number of points already added to this
PointSequence. |
PointSequence |
toPointSequence()
Returns the result of this builder.
|
PointSequenceBuilder add(double[] coordinates)
Point to the PointSequence being built.coordinates - the coordinates of the Point that is addedPointSequenceBuilder add(double x, double y)
PointSequence being built.x - the X-coordinate of the of the Point that is addedy - the Y-coordinate of the of the Point that is addedIllegalArgumentException - when the DimensionalFlag returned by getDimensionalFlag()
is not equal to DimensionalFlag.d2DPointSequenceBuilder add(double x, double y, double zOrm)
PointSequence being built. The DimensionalFlag determines
whether the third dimension is a Z- or M-coordinate.x - the X-coordinate of the of the Point that is addedy - the Y-coordinate of the of the Point that is addedzOrm - the Z- or M-coordinate of the of the Point that is addedIllegalArgumentException - when the DimensionalFlag returned by getDimensionalFlag()
is not equal to DimensionalFlag.d3D or DimensionalFlag.d2DMPointSequenceBuilder add(double x, double y, double z, double m)
PointSequence being built.x - the X-coordinate of the of the Point that is addedy - the Y-coordinate of the of the Point that is addedz - the Z-coordinate of the of the Point that is addedm - the M-coordinate of the of the Point that is addedIllegalArgumentException - when the DimensionalFlag returned by getDimensionalFlag()
is not equal to DimensionalFlag.d3DMPointSequenceBuilder add(Point pnt)
Point to the PointSequence being built.pnt - the Point that is added.IllegalArgumentException - when the DimensionalFlag of the specified Point is not
equal to the flag returned by getDimensionalFlag()DimensionalFlag getDimensionalFlag()
DimensionalFlag of the PointSequence being built.DimensionalFlag of the PointSequence being built.CrsId getCrsId()
CrsId of the PointSequence being built.CrsId of the PointSequence being built.int getNumAdded()
PointSequence.PointSequence toPointSequence()
PointSequence that has been built by this builder instance.IllegalStateException - when the construction of the PointSequence has not yet been completed.Copyright © 2015 geolatte.org. All rights reserved.