@@ -203,20 +203,20 @@ void TestQgsDistanceArea::collections()
203
203
204
204
// collection of polygons
205
205
QgsGeometry polys ( QgsGeometryFactory::geomFromWkt ( " GeometryCollection( Polygon((0 36.53, 5.76 -48.16, 0 25.54, 0 36.53)), Polygon((10 20, 15 20, 15 10, 10 20)) )" ) );
206
- result = myDa.measure ( &polys ); // should meaure area
207
- QVERIFY ( qgsDoubleNear ( result, 670434859475 , 1 ) );
206
+ result = myDa.measure ( &polys ); // should measure area
207
+ QVERIFY ( qgsDoubleNear ( result, 670434859475LL , 1 ) );
208
208
result = myDa.measureArea ( &polys );
209
- QVERIFY ( qgsDoubleNear ( result, 670434859475 , 1 ) );
209
+ QVERIFY ( qgsDoubleNear ( result, 670434859475LL , 1 ) );
210
210
result = myDa.measureLength ( &polys );
211
211
QVERIFY ( qgsDoubleNear ( result, 0 ) );
212
212
213
213
// mixed collection
214
214
QgsGeometry mixed ( QgsGeometryFactory::geomFromWkt ( " GeometryCollection( LineString(0 36.53, 5.76 -48.16), LineString(0 25.54, 24.20 36.70), Polygon((0 36.53, 5.76 -48.16, 0 25.54, 0 36.53)), Polygon((10 20, 15 20, 15 10, 10 20)) )" ) );
215
215
result = myDa.measure ( &mixed ); // should measure area
216
- QVERIFY ( qgsDoubleNear ( result, 670434859475 , 1 ) );
216
+ QVERIFY ( qgsDoubleNear ( result, 670434859475LL , 1 ) );
217
217
// measure area specifically
218
218
result = myDa.measureArea ( &mixed );
219
- QVERIFY ( qgsDoubleNear ( result, 670434859475 , 1 ) );
219
+ QVERIFY ( qgsDoubleNear ( result, 670434859475LL , 1 ) );
220
220
// measure length
221
221
result = myDa.measureLength ( &mixed );
222
222
QVERIFY ( qgsDoubleNear ( result, 12006159 , 1 ) );
0 commit comments