@@ -488,7 +488,7 @@ QList<QgsPointV2> QgsGeometryUtils::pointsFromWKT( const QString &wktCoordinateL
488
488
// first scan through for extra unexpected dimensions
489
489
bool foundZ = false ;
490
490
bool foundM = false ;
491
- Q_FOREACH ( const QString& pointCoordinates, coordList )
491
+ Q_FOREACH ( const QString& pointCoordinates, coordList )
492
492
{
493
493
QStringList coordinates = pointCoordinates.split ( ' ' , QString::SkipEmptyParts );
494
494
if ( coordinates.size () == 3 && !foundZ && !foundM && !is3D && !isMeasure )
@@ -506,7 +506,7 @@ QList<QgsPointV2> QgsGeometryUtils::pointsFromWKT( const QString &wktCoordinateL
506
506
}
507
507
}
508
508
509
- Q_FOREACH ( const QString& pointCoordinates, coordList )
509
+ Q_FOREACH ( const QString& pointCoordinates, coordList )
510
510
{
511
511
QStringList coordinates = pointCoordinates.split ( ' ' , QString::SkipEmptyParts );
512
512
if ( coordinates.size () < dim )
@@ -549,7 +549,7 @@ QList<QgsPointV2> QgsGeometryUtils::pointsFromWKT( const QString &wktCoordinateL
549
549
void QgsGeometryUtils::pointsToWKB ( QgsWkbPtr& wkb, const QList<QgsPointV2> &points, bool is3D, bool isMeasure )
550
550
{
551
551
wkb << static_cast <quint32>( points.size () );
552
- Q_FOREACH ( const QgsPointV2& point, points )
552
+ Q_FOREACH ( const QgsPointV2& point, points )
553
553
{
554
554
wkb << point.x () << point.y ();
555
555
if ( is3D )
@@ -566,7 +566,7 @@ void QgsGeometryUtils::pointsToWKB( QgsWkbPtr& wkb, const QList<QgsPointV2> &poi
566
566
QString QgsGeometryUtils::pointsToWKT ( const QList<QgsPointV2>& points, int precision, bool is3D, bool isMeasure )
567
567
{
568
568
QString wkt = " (" ;
569
- Q_FOREACH ( const QgsPointV2& p, points )
569
+ Q_FOREACH ( const QgsPointV2& p, points )
570
570
{
571
571
wkt += qgsDoubleToString ( p.x (), precision );
572
572
wkt += ' ' + qgsDoubleToString ( p.y (), precision );
@@ -588,8 +588,8 @@ QDomElement QgsGeometryUtils::pointsToGML2( const QList<QgsPointV2>& points, QDo
588
588
589
589
QString strCoordinates;
590
590
591
- Q_FOREACH ( const QgsPointV2& p, points )
592
- strCoordinates += qgsDoubleToString ( p.x (), precision ) + ' ,' + qgsDoubleToString ( p.y (), precision ) + ' ' ;
591
+ Q_FOREACH ( const QgsPointV2& p, points )
592
+ strCoordinates += qgsDoubleToString ( p.x (), precision ) + ' ,' + qgsDoubleToString ( p.y (), precision ) + ' ' ;
593
593
594
594
if ( strCoordinates.endsWith ( ' ' ) )
595
595
strCoordinates.chop ( 1 ); // Remove trailing space
@@ -604,7 +604,7 @@ QDomElement QgsGeometryUtils::pointsToGML3( const QList<QgsPointV2>& points, QDo
604
604
elemPosList.setAttribute ( " srsDimension" , is3D ? 3 : 2 );
605
605
606
606
QString strCoordinates;
607
- Q_FOREACH ( const QgsPointV2& p, points )
607
+ Q_FOREACH ( const QgsPointV2& p, points )
608
608
{
609
609
strCoordinates += qgsDoubleToString ( p.x (), precision ) + ' ' + qgsDoubleToString ( p.y (), precision ) + ' ' ;
610
610
if ( is3D )
@@ -620,7 +620,7 @@ QDomElement QgsGeometryUtils::pointsToGML3( const QList<QgsPointV2>& points, QDo
620
620
QString QgsGeometryUtils::pointsToJSON ( const QList<QgsPointV2>& points, int precision )
621
621
{
622
622
QString json = " [ " ;
623
- Q_FOREACH ( const QgsPointV2& p, points )
623
+ Q_FOREACH ( const QgsPointV2& p, points )
624
624
{
625
625
json += ' [' + qgsDoubleToString ( p.x (), precision ) + " , " + qgsDoubleToString ( p.y (), precision ) + " ], " ;
626
626
}
0 commit comments