ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeodesicEllipseParameter Class / LinearUnit Property
Example

In This Topic
    LinearUnit Property (GeodesicEllipseParameter)
    In This Topic
    Gets or sets the linear unit of the SemiAxis1Length, SemiAxis2Length. Default is meters.
    Syntax
    public LinearUnit LinearUnit {get; set;}
    Public Property LinearUnit As LinearUnit
    Example
    GeodesicEllipse
    GeodesicEllipseParameter param = new GeodesicEllipseParameter();
    param.AxisDirection = 4 * Math.PI / 3;
    param.Center = new Coordinate2D(-120, 60);
    param.LinearUnit = LinearUnit.Meters;
    param.OutGeometryType = GeometryType.Polyline;
    param.SemiAxis1Length = 6500000;
    param.SemiAxis2Length = 1500000;
    param.VertexCount = 800;
    
    Geometry geometry = GeometryEngine.Instance.GeodesicEllipse(param, SpatialReferences.WGS84);
    // geometry.IsEmpty = false
    
    Polyline polyline = geometry as Polyline;
    // polyline.PointCount = 801
    // polyline.PartCount = 1
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also