ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / AreaUnit Class / SquareMiles Property
Example

In This Topic
    SquareMiles Property
    In This Topic
    Gets an area unit object representing area in square miles (Factory Code = 109439).
    Syntax
    public static AreaUnit SquareMiles {get;}
    Public Shared ReadOnly Property SquareMiles As AreaUnit
    Example
    AreaUnit - Convert between hectares and square miles
    // convert 300 hectares to square miles
    double sqMiles = AreaUnit.Hectares.ConvertTo(300, AreaUnit.SquareMiles);
    AreaUnit - How many Square meters in various units
    double sqMetersPerUnit = AreaUnit.Acres.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.Ares.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.Hectares.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.SquareKilometers.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.SquareMiles.SquareMetersPerUnit;
    sqMetersPerUnit = AreaUnit.SquareYards.SquareMetersPerUnit;
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also