combineExtentsCollection static method
Returns an Envelope representing the minimum extent that encloses all geometries in the given collection.
Supports true curves.
Parameters:
geometries
— A collection of geometries.
Return Value: The maximum extent of the geometries in the collection.
Implementation
static Envelope combineExtentsCollection(
{required List<Geometry> geometries}) {
_initializeArcGISEnvironmentIfNeeded();
final coreGeometries =
geometries.toMutableArray(valueType: _ElementType.geometry);
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEngine_combineExtentsCollection(
coreGeometries._handle, errorHandler);
});
return Envelope._fromHandle(objectHandle)!;
}