Opened 15 years ago

Last modified 15 years ago

#314 closed defect

Geographic point-in-polygon issue: stab line grazes vertex — at Version 1

Reported by: pramsey Owned by: pramsey
Priority: medium Milestone: PostGIS 1.5.0
Component: postgis Version: master
Keywords: Cc:

Description (last modified by pramsey)

While fixing the co-linear case (#255) I was reminded of another unhandled case. If the stab line grazes a vertex but does not actually cross, a crossing will still be counted.

http://trac.osgeo.org/postgis/browser/trunk/liblwgeom/cunit/cu_geodetic.c#L628

We could detect the condition and abort by running every test twice, with different stab lines.

Change History (1)

comment:1 by pramsey, 15 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.