Skip to main content

length

Function length 

Source
pub fn length(geometry: &Geometry, method: LengthMethod) -> Result<f64>
Expand description

Computes the length of a geometry

§Arguments

  • geometry - Input geometry
  • method - Length calculation method

§Returns

Length in appropriate units (meters for geodetic, coordinate units for planar)

§Errors

Returns error if geometry is not linear or invalid