EnvelopeBuilder.fromEnvelope constructor

EnvelopeBuilder.fromEnvelope(
  1. Envelope envelope
)

Creates an envelope builder from the specified Envelope.

The SpatialReference of the new envelope builder will match that of the given Envelope. Use this constructor in workflows that create a modified version of an existing geometry.

Parameters:

  • envelope — The envelope.

Implementation

factory EnvelopeBuilder.fromEnvelope(
  Envelope envelope,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_EnvelopeBuilder_createFromEnvelope(
      envelope._handle,
      errorHandler,
    );
  });
  return EnvelopeBuilder._withHandle(handle);
}