Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Sep 12, 2023
1 parent 7c46155 commit b0ad62c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit/capi/GEOSGeom_setPrecisionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,16 @@ void object::test<20>()
"POINT(1.235 9.877)");
}

// see https://lists.osgeo.org/pipermail/postgis-users/2023-September/046107.html
template<>
template<>
void object::test<21>()
{
geom1_ = fromWKT("LINESTRING(334729.13 4103548.88, 334729.12 4103548.53)");
geom2_ = GEOSGeom_setPrecision(geom1_, .001, 0);
ensure_geometry_equals(geom2_,
"LINESTRING(334729.13 4103548.88,334729.12 4103548.53)");
}

} // namespace tut

0 comments on commit b0ad62c

Please sign in to comment.