combineExtents static method
Returns an Envelope representing the minimum extent that encloses both geometry1 and geometry2.
Supports true curves.
Parameters:
geometry1
— A geometry object.geometry2
— Another geometry object.
Return Value: The maximum extent of the two given geometries.
Implementation
static Envelope combineExtents({
required Geometry geometry1,
required Geometry geometry2,
}) {
_initializeArcGISEnvironmentIfNeeded();
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeometryEngine_combineExtents(
geometry1._handle,
geometry2._handle,
errorHandler,
);
});
return Envelope._fromHandle(
objectHandle,
)!;
}