public class CountingPointSequenceBuilder extends Object implements PointSequenceBuilder
| Constructor and Description |
|---|
CountingPointSequenceBuilder(DimensionalFlag df,
CrsId crsId) |
| 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.
|
public CountingPointSequenceBuilder(DimensionalFlag df, CrsId crsId)
public PointSequenceBuilder add(double[] coordinates)
PointSequenceBuilderPoint to the PointSequence being built.add in interface PointSequenceBuildercoordinates - the coordinates of the Point that is addedpublic PointSequenceBuilder add(double x, double y)
PointSequenceBuilderPointSequence being built.add in interface PointSequenceBuilderx - the X-coordinate of the of the Point that is addedy - the Y-coordinate of the of the Point that is addedpublic PointSequenceBuilder add(double x, double y, double zOrm)
PointSequenceBuilderPointSequence being built. The DimensionalFlag determines
whether the third dimension is a Z- or M-coordinate.add in interface PointSequenceBuilderx - 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 addedpublic PointSequenceBuilder add(double x, double y, double z, double m)
PointSequenceBuilderPointSequence being built.add in interface PointSequenceBuilderx - 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 addedpublic PointSequenceBuilder add(Point pnt)
PointSequenceBuilderPoint to the PointSequence being built.add in interface PointSequenceBuilderpnt - the Point that is added.public DimensionalFlag getDimensionalFlag()
PointSequenceBuilderDimensionalFlag of the PointSequence being built.getDimensionalFlag in interface PointSequenceBuilderDimensionalFlag of the PointSequence being built.public CrsId getCrsId()
PointSequenceBuilderCrsId of the PointSequence being built.getCrsId in interface PointSequenceBuilderCrsId of the PointSequence being built.public PointSequence toPointSequence()
PointSequenceBuildertoPointSequence in interface PointSequenceBuilderPointSequence that has been built by this builder instance.public int getNumAdded()
PointSequenceBuilderPointSequence.getNumAdded in interface PointSequenceBuilderCopyright © 2015 geolatte.org. All rights reserved.