Skip to content

Commit

Permalink
Clean [BUGFIX] Multipoint asJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Nov 20, 2015
1 parent c780184 commit 05ebeee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/geometry/qgsmultipointv2.cpp
Expand Up @@ -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 )
{
Expand All @@ -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;
}
Expand Down

0 comments on commit 05ebeee

Please sign in to comment.