ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / GeodesicSectorParameter Class / LinearUnit Property
Example

In This Topic
    LinearUnit Property (GeodesicSectorParameter)
    In This Topic
    Gets or sets the linear unit of the SemiAxis1Length, SemiAxis2Length. Default is meters.
    Syntax
    Public Property LinearUnit As LinearUnit
    public LinearUnit LinearUnit {get; set;}
    Example
    GeodesicSector
    {
      GeodesicSectorParameter param = new()
      {
        ArcVertexCount = 50,
        AxisDirection = Math.PI / 4,
        Center = new Coordinate2D(0, 0),
        LinearUnit = LinearUnit.Meters,
        OutGeometryType = GeometryType.Polygon,
        RadiusVertexCount = 10,
        SectorAngle = 5 * Math.PI / 3,
        SemiAxis1Length = 100000,
        SemiAxis2Length = 20000,
        StartDirection = 11 * Math.PI / 6
      };
    
      Geometry geometry = GeometryEngine.Instance.GeodesicSector(param, SpatialReferences.WGS84);
      // geometry.IsEmpty = false
    
      polygon = geometry as Polygon;
      // polygon.PointCount = 68
      // polygon.PartCount = 1
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also