lineObj
final class lineObj (View source)
Properties
int | $numpoints | read-only |
Methods
No description
Old style constructor
Add a point to the end of line. Returns MS_SUCCESS/MS_FAILURE.
Add a point to the end of line. Returns MS_SUCCESS/MS_FAILURE.
Project the line from "in" projection (1st argument) to "out" projection (2nd argument). Returns MS_SUCCESS/MS_FAILURE.
Details
final
__construct()
No description
final lineObj
ms_newLineObj()
Old style constructor
final int
add(pointObj $point)
Add a point to the end of line. Returns MS_SUCCESS/MS_FAILURE.
final int
addXY(float $x, float $y, float $m)
Add a point to the end of line. Returns MS_SUCCESS/MS_FAILURE.
.. note:: the 3rd parameter m is used for measured shape files only. It is not mandatory.
final int
addXYZ(float $x, float $y, float $z, float $m)
Add a point to the end of line. Returns MS_SUCCESS/MS_FAILURE.
.. note:: the 4th parameter m is used for measured shape files only. It is not mandatory.
final pointObj
point(int $i)
Returns a reference to point number i.
final int
project(projectionObj $in, projectionObj $out)
Project the line from "in" projection (1st argument) to "out" projection (2nd argument). Returns MS_SUCCESS/MS_FAILURE.