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 /
ring_perimeter remain Cartesian-pinned (the spherical / geographic
perimeter strategies are reachable directly via
geometry_strategy::SphericalPerimeter /
geometry_strategy::GeographicPerimeter).
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.
- 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.