[geos-devel] [GEOS] #580: Contains(Polygon, Point) return False instead of True
GEOS
geos-trac at osgeo.org
Tue Aug 21 02:48:59 PDT 2012
#580: Contains(Polygon, Point) return False instead of True
------------------------+---------------------------------------------------
Reporter: skurlat | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.3.5
Component: Default | Version: 3.3.4
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
Using those two geometries :
{{{
POLYGON ((-1.183864 52.951915, -1.183862 52.951903, -1.183890
52.951900, -1.183924 52.951897, -1.183958 52.951894, -1.183954
52.951880, -1.183954 52.951878, -1.183932 52.951841, -1.183904
52.951844, -1.183870 52.951847, -1.183832 52.951852, -1.183824
52.951838, -1.183820 52.951830, -1.183870 52.951819, -1.183886
52.951815, -1.183890 52.951819, -1.183929 52.951810, -1.183909
52.951776, -1.183861 52.951787, -1.183853 52.951788, -1.183842
52.951770, -1.183970 52.951742, -1.183983 52.951763, -1.183963
52.951768, -1.183975 52.951788, -1.183994 52.951785, -1.184009
52.951807, -1.184002 52.951808, -1.184009 52.951835, -1.183990
52.951836, -1.183990 52.951836, -1.183990 52.951838, -1.184001
52.951880, -1.184018 52.951954, -1.184020 52.951956, -1.183998
52.951957, -1.183998 52.951956, -1.183996 52.951948, -1.183970
52.951906, -1.183936 52.951909, -1.183864 52.951915))
POINT (-1.183972 52.951871)
}}}
Check for point in polygon returns false while it should return true.
Attach is a .cpp file that demonstrates it.
Both 3.3.4 and 3.3.5 are having this issue.
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/580>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list