ConvertTo(Double,AreaUnit) Method
Converts the area to the provided area unit.
Parameters
- inArea
- Area in the units of this instance.
- outUnit
- Unit to convert to.
Return Value
Area converted to the specifed unit.
AreaUnit - Convert between hectares and acres
// convert 2 hectares to acres
double acres = AreaUnit.Hectares.ConvertTo(2, AreaUnit.Acres);
AreaUnit - Convert between hectares and square miles
// convert 300 hectares to square miles
double sqMiles = AreaUnit.Hectares.ConvertTo(300, AreaUnit.SquareMiles);
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.