Opened 9 years ago

Closed 8 years ago

#9354 closed Bugs (fixed)

'within' problem on spherical & geographical polygon

Reported by: Charles-Edward Cady <charlesedouardcady@…> 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)

bug_report.cpp (15.8 KB ) - added by Charles-Edward Cady <charlesedouardcady@…> 9 years ago.
Test case exposing the bug. Compile from the directory containing BOOST_ROOT with g++ -I . bug_report.cpp

Download all attachments as: .zip

Change History (3)

by Charles-Edward Cady <charlesedouardcady@…>, 9 years ago

Attachment: bug_report.cpp added

Test case exposing the bug. Compile from the directory containing BOOST_ROOT with g++ -I . bug_report.cpp

comment:1 by awulkiew, 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 awulkiew, 8 years ago

Milestone: To Be DeterminedBoost 1.57.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.