|
26 | 26 | #include "qgsgeometrydegeneratepolygoncheck.h"
|
27 | 27 | #include "qgsgeometryduplicatecheck.h"
|
28 | 28 | #include "qgsgeometryduplicatenodescheck.h"
|
| 29 | +#include "qgsgeometrygapcheck.h" |
29 | 30 | #include "qgsgeometryholecheck.h"
|
30 | 31 | #include "qgsgeometrylineintersectioncheck.h"
|
31 | 32 | #include "qgsgeometrylinelayerintersectioncheck.h"
|
|
38 | 39 | #include "qgsgeometryselfintersectioncheck.h"
|
39 | 40 | #include "qgsgeometrysliverpolygoncheck.h"
|
40 | 41 |
|
41 |
| -#include "qgsgeometrygapcheck.h" |
42 | 42 | #include "qgsgeometrytypecheck.h"
|
43 | 43 |
|
44 | 44 |
|
@@ -230,9 +230,16 @@ void TestQgsGeometryChecks::testGapCheck()
|
230 | 230 | QList<QgsGeometryCheckError *> checkErrors;
|
231 | 231 | QStringList messages;
|
232 | 232 |
|
233 |
| - QgsGeometryGapCheck( context, 0.001 ).collectErrors( checkErrors, messages ); |
| 233 | + QgsGeometryGapCheck( context, 0.01 ).collectErrors( checkErrors, messages ); |
234 | 234 | listErrors( checkErrors, messages );
|
235 | 235 |
|
| 236 | + QCOMPARE( checkErrors.size(), 5 ); |
| 237 | + QVERIFY( searchCheckError( checkErrors, "", -1, QgsPointXY( 0.2924, -0.8798 ), QgsVertexId(), 0.0027 ) == 1 ); |
| 238 | + QVERIFY( searchCheckError( checkErrors, "", -1, QgsPointXY( 0.4238, -0.7479 ), QgsVertexId(), 0.0071 ) == 1 ); |
| 239 | + QVERIFY( searchCheckError( checkErrors, "", -1, QgsPointXY( 0.0094, -0.4448 ), QgsVertexId(), 0.0033 ) == 1 ); |
| 240 | + QVERIFY( searchCheckError( checkErrors, "", -1, QgsPointXY( 0.2939, -0.4694 ), QgsVertexId(), 0.0053 ) == 1 ); |
| 241 | + QVERIFY( searchCheckError( checkErrors, "", -1, QgsPointXY( 0.6284, -0.3641 ), QgsVertexId(), 0.0018 ) == 1 ); |
| 242 | + |
236 | 243 | cleanupTestContext( context );
|
237 | 244 | }
|
238 | 245 |
|
|
0 commit comments