addPoint method

int addPoint(
  1. ArcGISPoint point
)

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.

Parameters:

  • point — The point to add.

Return Value: the point index of the new point in the last part

Implementation

int addPoint(ArcGISPoint point) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MultipartBuilder_addPoint(
        _handle, point._handle, errorHandler);
  });
}