Expand description
length(&g) and perimeter(&p) — see
boost/geometry/algorithms/{length,perimeter}.hpp.
length dispatches to the per-CS-family default strategy via
geometry_strategy::DefaultLength — Cartesian linestrings resolve
to geometry_strategy::CartesianLength, spherical to
geometry_strategy::SphericalLength, geographic to
geometry_strategy::GeographicLength. perimeter and
ring_perimeter use the parallel
geometry_strategy::DefaultPerimeter family dispatch.
Functions§
- length
- Sum the per-segment distance along a linestring using the default strategy for its coordinate-system family.
- length_
with - Length of a linestring using an explicitly supplied strategy.
- perimeter
- Perimeter of a polygon: length of the exterior ring plus the sum of the lengths of the interior rings.
- perimeter_
with - Perimeter of a polygon using an explicitly supplied ring-length strategy.
- ring_
perimeter - Standalone helper to compute the perimeter of a
Ringdirectly, without wrapping it in a polygon. Mirrors Boost’sperimeter(ring)overload which dispatches via thering_tagarm ofalgorithms/perimeter.hpp:66-73. - ring_
perimeter_ with - Perimeter of a ring using an explicitly supplied strategy.