createFromGeometry static method

GeometryBuilder createFromGeometry(
  1. Geometry geometry
)

Creates a geometry builder with the specified geometry as a starting point for further modification.

Geometries with curves are supported.

Parameters:

  • geometry — The geometry to use as the starting point for further modifications.

Return Value: A new geometry builder.

Implementation

static GeometryBuilder createFromGeometry(
  Geometry geometry,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryBuilder_createFromGeometry(
      geometry._handle,
      errorHandler,
    );
  });
  return GeometryBuilder._fromHandle(
    objectHandle,
  )!;
}