ellipseGeodesic static method

Geometry ellipseGeodesic(
  1. {required GeodesicEllipseParameters parameters}
)

Constructs a geodesic ellipse centered on a specific point.

Constructs a geodesic ellipse centered on the specified point. It returns a piecewise approximation of a geodesic ellipse (or geodesic circle, if GeodesicEllipseParameters.semiAxis1Length = GeodesicEllipseParameters.semiAxis2Length) consisting of LineSegment objects.

If this method is used to generate a polygon or a polyline, the result may have more than one path, depending on the size of the ellipse and its position relative to the horizon of the coordinate system. When the method generates a polyline or a multipoint, the result vertices lie on the boundary of the ellipse. When a polygon is generated, the interior of the polygon is the interior of the ellipse, however the boundary of the polygon may contain segments from the spatial reference horizon, or from the geographic coordinate system extent.

If the smaller axis is zero, the ellipse will degenerate to a line segment, a point, or an empty geometry (depending on the larger axis and output type). Otherwise, if GeodesicEllipseParameters.maxPointCount < 10, the number of vertices will default to 10. Supported output geometry types are Polygon, Polyline, add Multipoint.

Parameters:

  • parameters — Various parameters needed to construct the ellipse.

Return Value: The geodesic ellipse described by the parameters.

Implementation

static Geometry ellipseGeodesic(
    {required GeodesicEllipseParameters parameters}) {
  _initializeArcGISEnvironmentIfNeeded();
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryEngine_ellipseGeodesic(
        parameters._handle, errorHandler);
  });
  return Geometry._fromHandle(objectHandle)!;
}