Skip to content

Commit 05ebeee

Browse files
committed
Clean [BUGFIX] Multipoint asJSON
1 parent c780184 commit 05ebeee

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/core/geometry/qgsmultipointv2.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ QDomElement QgsMultiPointV2::asGML3( QDomDocument& doc, int precision, const QSt
7474
QString QgsMultiPointV2::asJSON( int precision ) const
7575
{
7676
QString json = "{\"type\": \"MultiPoint\", \"coordinates\": ";
77-
77+
7878
QList<QgsPointV2> pts;
7979
Q_FOREACH ( const QgsAbstractGeometryV2 *geom, mGeometries )
8080
{
@@ -85,10 +85,6 @@ QString QgsMultiPointV2::asJSON( int precision ) const
8585
}
8686
}
8787
json += QgsGeometryUtils::pointsToJSON( pts, precision );
88-
/*if ( json.endsWith( ", " ) )
89-
{
90-
json.chop( 2 ); // Remove last ", "
91-
}*/
9288
json += " }";
9389
return json;
9490
}

0 commit comments

Comments
 (0)