sectorGeodesic static method

Geometry sectorGeodesic({
  1. required GeodesicSectorParameters parameters,
})

Constructs a geodesic sector defined by a geodesic arc and 2 radii.

Creates a sector as a polygon, polyline, or multipoint geometry. A geodesic sector is defined by a geodesic elliptical arc and two radii extending from the center point of the arc to the points where they each intersect the arc. The arc is a portion of an ellipse. The ellipse is defined by a center point, the lengths of its semi-major and semi-minor axes, and the direction of its semi-major axis. The first radius of the sector is defined by the start direction angle relative to the direction of the semi-major axis. The second radius is the sum of the start direction and the sector angle.

The new geometry consists of a series of LineSegment objects.

Parameters:

  • parameters — Specifies the parameters for constructing the sector.

Return Value: A geometry representing the geodesic sector.

Implementation

static Geometry sectorGeodesic({
  required GeodesicSectorParameters parameters,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryEngine_sectorGeodesic(
      parameters._handle,
      errorHandler,
    );
  });
  return Geometry._fromHandle(
    objectHandle,
  )!;
}