Skip to content
Permalink
Browse files

Clean [BUGFIX] Multipoint asJSON

  • Loading branch information
rldhont committed Nov 20, 2015
1 parent c780184 commit 05ebeee3dc185eedd0ee8858c709d28b1372f2c3
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 05ebeee

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