From: Paul Ramsey Date: Sun, 4 Oct 2009 22:26:13 +0000 (+0000) Subject: Add another test case that needs resolution X-Git-Tag: 1.5.0b1~422 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6b33573ac5d58ec92ea6790aece5b64061a8a5a;p=postgis Add another test case that needs resolution git-svn-id: http://svn.osgeo.org/postgis/trunk@4588 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_geodetic.c b/liblwgeom/cunit/cu_geodetic.c index 589ffe289..f6ac7937a 100644 --- a/liblwgeom/cunit/cu_geodetic.c +++ b/liblwgeom/cunit/cu_geodetic.c @@ -282,6 +282,19 @@ void test_edge_intersection(void) rv = edge_intersection(e1, e2, &g); CU_ASSERT_EQUAL(rv, LW_FALSE); + /* Second Medford case, very short segment vs very long one + e1.start.lat = 0.73826546728290887156; + e1.start.lon = -2.14426380171833042; + e1.end.lat = 0.73826545883786642843; + e1.end.lon = -2.1442638997530165668; + e2.start.lat = 0.73775469118192538165; + e2.start.lon = -2.1436035534281718817; + e2.end.lat = 0.71021099548296817705; + e2.end.lon = 2.1065275171200439353; + rv = edge_intersection(e1, e2, &g); + CU_ASSERT_EQUAL(rv, LW_FALSE); + */ + /* Intersection at (0 0) */ edge_set(-1.0, 0.0, 1.0, 0.0, &e1); edge_set(0.0, -1.0, 0.0, 1.0, &e2);