Skip to content
Permalink
Browse files

Clean [BUGFIX] Multipoint asJSON

  • Loading branch information
rldhont committed Nov 20, 2015
1 parent a860af5 commit 7119741526ee1821469b61f050c3ab1f2357db25
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/core/geometry/qgsmultipointv2.cpp
@@ -74,7 +74,7 @@ QDomElement QgsMultiPointV2::asGML3( QDomDocument& doc, int precision, const QSt
QString QgsMultiPointV2::asJSON( int precision ) const
{
QString json = "{\"type\": \"MultiPoint\", \"coordinates\": ";

QList<QgsPointV2> pts;
Q_FOREACH ( const QgsAbstractGeometryV2 *geom, mGeometries )
{
@@ -85,10 +85,6 @@ QString QgsMultiPointV2::asJSON( int precision ) const
}
}
json += QgsGeometryUtils::pointsToJSON( pts, precision );
/*if ( json.endsWith( ", " ) )
{
json.chop( 2 ); // Remove last ", "
}*/
json += " }";
return json;
}

0 comments on commit 7119741

Please sign in to comment.
You can’t perform that action at this time.