Skip to content

Commit

Permalink
Add SnapToGrid test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Sep 12, 2023
1 parent 73be95d commit 3d19930
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/unit/capi/GEOSGeom_setPrecisionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,17 @@ void object::test<15>()
"LINESTRING (674169.89 198051.38, 674197.7 198065.55, 674200.36 198052.38)");
}


// see https://trac.osgeo.org/postgis/ticket/3929
template<>
template<>
void object::test<16>()
{
geom1_ = fromWKT("POINT(311.4 0)");
geom2_ = GEOSGeom_setPrecision(geom1_, .1, 0);
//std::cout << toWKT(geom2_) << std::endl;
ensure_geometry_equals(geom2_,
"POINT(311.4 0)");
}

} // namespace tut

0 comments on commit 3d19930

Please sign in to comment.