# Method Length

#### Length(Geometry)

Gets the length for a specified Geometry. This is a planar measurement using 2D Cartesian mathematics to compute the length in the same coordinate space as the inputs. Use LengthGeodetic(Geometry, LinearUnit, GeodeticCurveType) for geodetic measurement.

##### Declaration

`public static double Length(this Geometry geometry)`

##### Parameters

Type | Name | Description |
---|---|---|

Geometry | geometry | The geometry to calculate length for. |

##### Returns

Type | Description |
---|---|

System.Double | The calculated length in the same units as the geometry's spatial reference unit. |

##### Remarks

This length calculation is based upon the SpatialReference of the input geometry. Although some projections are better than others for preserving distance, it will always be distorted in some areas of the map. Distortion may be negligible for large scale maps (small areas) that use a suitable map projection. Make sure you know your data and spatial reference if accurate measurements are required. For more accurate results, consider using the LengthGeodetic(Geometry, LinearUnit, GeodeticCurveType) operation.

Supports true curves.

### Applies to

## Platforms and versions

Target | Versions |
---|---|

.NET Standard 2.0 | 100.3 - 200.5 |

.NET | 100.13 - 200.5 |

.NET Windows | 100.13 - 200.5 |

.NET Android | 200.0 - 200.5 |

.NET iOS | 200.0 - 200.5 |

.NET Framework | 100.0 - 200.5 |

Xamarin.Android | 100.0 - 100.15 |

Xamarin.iOS | 100.0 - 100.15 |

UWP | 100.0 - 200.5 |