boundary static method

Geometry boundary(
  1. {required Geometry geometry}
)

Calculates the boundary of the given geometry.

For ArcGISPoint - returns an empty geometry. Points have no boundary. For Multipoint - returns an empty geometry. Points have no boundary. For Polyline - returns a multipoint containing the end points of the polyline's parts. For Polygon - returns a polyline describing its outer and inner rings.

Supports true curves.

Parameters:

  • geometry — A geometry object.

Return Value: The boundary of the given geometry.

Implementation

static Geometry boundary({required Geometry geometry}) {
  _initializeArcGISEnvironmentIfNeeded();
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryEngine_boundary(
        geometry._handle, errorHandler);
  });
  return Geometry._fromHandle(objectHandle)!;
}