Frédéric BRIOL 480e9cf0f6 fix(formulas): geographic intersection calculation in sjoberg_intersection when a segment lies on the equator
Multiply the longitude offset term by `sign_lon_diff` when calculating
equator crossings in `sjoberg_geodesic::lon_of_equator_intersection()`.

Without this multiplication, when `sign_lon_diff` is negative, the offset
is applied in the wrong direction, leading to a wrong intersection
longitude (e.g. returning a coordinate outside of the segments' bounds).
This in turn causes overlay/intersection algorithms to miss crossings on
the boundary.

Including regression test for sjoberg_intersection

Fixes #1482
2026-07-09 20:04:41 +02:00
2025-12-09 22:15:27 +02:00
2026-07-02 14:55:23 +02:00
2022-12-01 12:24:18 +02:00
2022-11-11 12:47:01 +02:00
2011-09-26 16:11:47 +00:00
2021-08-23 17:32:58 +02:00
2014-06-16 21:32:34 +02:00

Boost.Geometry

Boost.Geometry, part of collection of the Boost C++ Libraries, defines concepts, primitives and algorithms for solving geometry problems. Boost.Geometry is a C++14 header-only library.

Licence Documentation Wiki Mailing List Chat DOI

Test results

Branch Build Coverage Regression Documentation
develop circleci
minimal
coveralls
codecov
geometry index extensions documentation
master circleci
minimal
coveralls
codecov
geometry index documentation

Directories

  • doc - QuickBook documentation sources, containing embedded examples located in doc/src/examples/
  • example - Boost.Geometry standalone examples
  • extensions - examples and tests for the extensions - develop branch
  • include - the sourcecode of Boost.Geometry
  • index - examples and tests for the Spatial Index
  • meta - library metadata
  • test - Boost.Geometry unit tests
S
Description
No description provided
Readme Cite this repository 64 MiB
Languages
C++ 99.7%
CMake 0.3%