Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test curve linearization with higher than sagitta tolerance
See #31832
  • Loading branch information
strk committed Sep 17, 2019
1 parent ab955a1 commit 1dbb589
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/src/core/testqgscurve.cpp
Expand Up @@ -2,7 +2,7 @@
testqgscurve.cpp
--------------------------------------
Date : 21 July 2017
Copyright : (C) 2017 by Sandro Santilli
Copyright : (C) 2017-2019 by Sandro Santilli
Email : strk @ kbt.io
***************************************************************************
* *
Expand Down Expand Up @@ -92,6 +92,11 @@ void TestQgsCurve::curveToLine()
TEST_C2L( circularString, 10, QgsAbstractGeometry::MaximumDifference,
"LineString (0 0, 29.29 70.71, 100 100, 170.71 70.71, 200 0)", 2 );

/* op: Maximum of 300 units (higher than sagitta) of difference, symmetric */
/* See https://github.com/qgis/QGIS/issues/31832 */
TEST_C2L( circularString, 300, QgsAbstractGeometry::MaximumDifference,
"LineString (0 0, 200 0)", 2 );

/* op: Maximum of M_PI / 8 degrees of angle, (a)symmetric */
/* See https://issues.qgis.org/issues/16717 */
TEST_C2L( circularString, M_PI / 8, QgsAbstractGeometry::MaximumAngle,
Expand Down

0 comments on commit 1dbb589

Please sign in to comment.