addPoint

fun addPoint(x: Double, y: Double): Int

Adds a new point to the end of the last part of the multipart. If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.

Return

The point index of the new point in the last part.

Since

200.1.0


fun addPoint(x: Double, y: Double, z: Double): Int
fun addPoint(point: Point): Int

Adds a new point to the end of the last part of the multipart. If there are no parts then an initial part is created and the point added to that. The point becomes the end point of a line segment in the part.

Return

the point index of the new point in the last part

Since

200.1.0