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

In This Topic
    SemiAxis1Length Property (GeodesicSectorParameter)
    In This Topic
    Gets or sets the length of the first semi axis.
    Syntax
    Public Property SemiAxis1Length As Double
    public double SemiAxis1Length {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