Skip to content

Commit

Permalink
Add unit test for QGIS reported offset curve weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed May 25, 2023
1 parent bfe64bd commit 7a3c404
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unit/operation/buffer/OffsetCurveTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,20 @@ void object::test<40> ()
);
}

// See https://github.com/qgis/QGIS/issues/53165
template<>
template<>
void object::test<41> ()
{
checkOffsetCurve(
"LINESTRING (421.3851855669636279 622.2522632932523265, 446.2721764058806002 625.2150002978742123, 448.8256617572624236 626.8399455213802867)",
112.369, // distance
0, // number of segments
BufferParameters::JOIN_MITRE,
2, // mitre limit
"LINESTRING (509.1540012679829488 532.0382691415252339, 484.9905620941226516 516.6615351227474093, 434.6686888251484220 510.6708359240824961)"
);
}


} // namespace tut

0 comments on commit 7a3c404

Please sign in to comment.