Skip to content

Commit

Permalink
Add robustness unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Aug 8, 2024
1 parent 5746c2a commit 8523810
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/unit/operation/relateng/RelateNGRobustnessTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,17 @@ void object::test<19> ()
checkIntersectsDisjoint(a, b, true);
}


//https://gis.stackexchange.com/questions/484691/topologyexception-side-location-conflict-while-intersects-on-valid-polygons
//testGISSE_484691
template<>
template<>
void object::test<20> ()
{
std::string a = "POLYGON ((1.839012980156925 43.169860517728324, 1.838983490127865 43.169860200336274, 1.838898525601717 43.169868281549725, 1.838918565176068 43.1699719478626, 1.838920733577112 43.16998636433192, 1.838978629555589 43.16997979090823, 1.838982586839382 43.169966339940714, 1.838974943184281 43.169918580432174, 1.839020497362873 43.169914572864634, 1.839012980156925 43.169860517728324))";
std::string b = "POLYGON ((1.8391355300979277 43.16987802887805, 1.83913336164737 43.16986361241434, 1.8390129801569248 43.169860517728324, 1.8390790978572837 43.16987292371998, 1.8390909520103162 43.16995581178317, 1.8391377530291442 43.16995091801345, 1.8391293863398452 43.16987796276235, 1.8391355300979277 43.16987802887805))";
checkRelate(a, b, "2F2101212");
checkIntersectsDisjoint(a, b, true);
}


} // namespace tut

0 comments on commit 8523810

Please sign in to comment.