Skip to main content

num_geometries

Function num_geometries 

Source
pub fn num_geometries<G: NumGeometries>(g: &G) -> usize
Expand description

Number of distinct geometries in g.

  • Point / Linestring / Ring / Polygon / Segment / Box1
  • Multi* → member count

Mirrors boost::geometry::num_geometries(g) from boost/geometry/algorithms/num_geometries.hpp.