Opened 9 years ago
Closed 8 years ago
#9354 closed Bugs (fixed)
'within' problem on spherical & geographical polygon
Reported by: | Owned by: | Barend Gehrels | |
---|---|---|---|
Milestone: | Boost 1.57.0 | Component: | geometry |
Version: | Boost 1.53.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
The attached example illustrates what I think is a bug in 'within'. The data corresponds to ECA zones (Emission Control Area) around he United States. The point (lat=25.9556,lon-78.1239) should be outside the polygon, but it is detected inside. The point (lat=25.95,lon-78.1239) is correctly detected outside the polygon so I suspect I ran into some kind of singularity or something...
Any help would be greatly appreciated!
Attachments (1)
Change History (3)
by , 9 years ago
Attachment: | bug_report.cpp added |
---|
comment:1 by , 8 years ago
The issue is fixed in develop branch. It will be released with Boost 1.57.
FYI, the bug was located in this file: https://github.com/boostorg/geometry/blob/develop/include/boost/geometry/strategies/agnostic/point_in_poly_winding.hpp
comment:2 by , 8 years ago
Milestone: | To Be Determined → Boost 1.57.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Test case exposing the bug. Compile from the directory containing BOOST_ROOT with g++ -I . bug_report.cpp