Skip to content

Commit c806004

Browse files
committed
Intendention
1 parent ca37d00 commit c806004

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/core/geometry/qgsgeometryutils.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ QList<QgsPointV2> QgsGeometryUtils::pointsFromWKT( const QString &wktCoordinateL
488488
//first scan through for extra unexpected dimensions
489489
bool foundZ = false;
490490
bool foundM = false;
491-
Q_FOREACH( const QString& pointCoordinates, coordList )
491+
Q_FOREACH ( const QString& pointCoordinates, coordList )
492492
{
493493
QStringList coordinates = pointCoordinates.split( ' ', QString::SkipEmptyParts );
494494
if ( coordinates.size() == 3 && !foundZ && !foundM && !is3D && !isMeasure )
@@ -506,7 +506,7 @@ QList<QgsPointV2> QgsGeometryUtils::pointsFromWKT( const QString &wktCoordinateL
506506
}
507507
}
508508

509-
Q_FOREACH( const QString& pointCoordinates, coordList )
509+
Q_FOREACH ( const QString& pointCoordinates, coordList )
510510
{
511511
QStringList coordinates = pointCoordinates.split( ' ', QString::SkipEmptyParts );
512512
if ( coordinates.size() < dim )
@@ -549,7 +549,7 @@ QList<QgsPointV2> QgsGeometryUtils::pointsFromWKT( const QString &wktCoordinateL
549549
void QgsGeometryUtils::pointsToWKB( QgsWkbPtr& wkb, const QList<QgsPointV2> &points, bool is3D, bool isMeasure )
550550
{
551551
wkb << static_cast<quint32>( points.size() );
552-
Q_FOREACH( const QgsPointV2& point, points )
552+
Q_FOREACH ( const QgsPointV2& point, points )
553553
{
554554
wkb << point.x() << point.y();
555555
if ( is3D )
@@ -566,7 +566,7 @@ void QgsGeometryUtils::pointsToWKB( QgsWkbPtr& wkb, const QList<QgsPointV2> &poi
566566
QString QgsGeometryUtils::pointsToWKT( const QList<QgsPointV2>& points, int precision, bool is3D, bool isMeasure )
567567
{
568568
QString wkt = "(";
569-
Q_FOREACH( const QgsPointV2& p, points )
569+
Q_FOREACH ( const QgsPointV2& p, points )
570570
{
571571
wkt += qgsDoubleToString( p.x(), precision );
572572
wkt += ' ' + qgsDoubleToString( p.y(), precision );
@@ -588,8 +588,8 @@ QDomElement QgsGeometryUtils::pointsToGML2( const QList<QgsPointV2>& points, QDo
588588

589589
QString strCoordinates;
590590

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 ) + ' ';
593593

594594
if ( strCoordinates.endsWith( ' ' ) )
595595
strCoordinates.chop( 1 ); // Remove trailing space
@@ -604,7 +604,7 @@ QDomElement QgsGeometryUtils::pointsToGML3( const QList<QgsPointV2>& points, QDo
604604
elemPosList.setAttribute( "srsDimension", is3D ? 3 : 2 );
605605

606606
QString strCoordinates;
607-
Q_FOREACH( const QgsPointV2& p, points )
607+
Q_FOREACH ( const QgsPointV2& p, points )
608608
{
609609
strCoordinates += qgsDoubleToString( p.x(), precision ) + ' ' + qgsDoubleToString( p.y(), precision ) + ' ';
610610
if ( is3D )
@@ -620,7 +620,7 @@ QDomElement QgsGeometryUtils::pointsToGML3( const QList<QgsPointV2>& points, QDo
620620
QString QgsGeometryUtils::pointsToJSON( const QList<QgsPointV2>& points, int precision )
621621
{
622622
QString json = "[ ";
623-
Q_FOREACH( const QgsPointV2& p, points )
623+
Q_FOREACH ( const QgsPointV2& p, points )
624624
{
625625
json += '[' + qgsDoubleToString( p.x(), precision ) + ", " + qgsDoubleToString( p.y(), precision ) + "], ";
626626
}

0 commit comments

Comments
 (0)