Bug report #13855

Multipoint asJSON is like linestring and not curvePolygon

Added by René-Luc ReLuc over 4 years ago. Updated over 4 years ago.

Status:Closed
Priority:Normal
Assignee:René-Luc ReLuc
Category:Geometry
Affected QGIS version:2.10.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:21878

Description

The exportToGeoJSON method for Multipoint returns the geometry coordinates like a curvePolygon coordinates instead of a linestring coordinates.

To fixed it just remove the extra '[' and ']'.

Associated revisions

Revision 00ea9683
Added by René-Luc ReLuc over 4 years ago

[BUGFIX] Multipoint asJSON

Fixes #13855
Multipoint asJSON made MultiPoint as Multilinestring with only 1 point by linestring.

This bugfix adds tests.

Revision a860af5e
Added by René-Luc ReLuc over 4 years ago

[BUGFIX] Multipoint asJSON

Fixes #13855
Multipoint asJSON made MultiPoint as Multilinestring with only 1 point by linestring.

This bugfix adds tests.

Revision 8d313723
Added by René-Luc ReLuc over 4 years ago

[BUGFIX] Multipoint asJSON

Fixes #13855
Multipoint asJSON made MultiPoint as Multilinestring with only 1 point by linestring.

This bugfix adds tests.

Conflicts:
src/core/geometry/qgsmultipointv2.cpp
tests/src/core/testqgsgeometry.cpp

History

#1 Updated by René-Luc ReLuc over 4 years ago

  • Assignee set to René-Luc ReLuc

#2 Updated by René-Luc ReLuc over 4 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF