Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GeoJSON output of MultiPolygon/MultiSurface #30012

Merged
merged 2 commits into from
May 30, 2019

Conversation

rouault
Copy link
Contributor

@rouault rouault commented May 29, 2019

Fix GeoJSON output of MultiPolygon/MultiSurface

There was a lack of a JSon array around rings of a polygon.
This issue is not present in 3.4

Also fixes an issue with gcc 5.5 of Ubuntu 16.04 that doesn't behave
properly with C++11 brace syntax with code from nlohmann/json.hpp.
The code compiles but the result is invalid: json foo{ json::array{} }
is serialized as [[]] instead of []. So use old-style constructor
instead: json foo( json::array() )

This PR is on top of #30010

@rouault rouault added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 29, 2019
Copy link
Collaborator

@nyalldawson nyalldawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'd also hit that json array issue on fedora 29 too.

tests/src/core/testqgsgeometry.cpp Outdated Show resolved Hide resolved
 qgis#29895)

This fix display of full circles coming from PostGIS.
There was a lack of a JSon array around rings of a polygon.
This issue is not present in 3.4

Also fixes an issue with gcc 5.5 of Ubuntu 16.04 that doesn't behave
properly with C++11 brace syntax with code from nlohmann/json.hpp.
The code compiles but the result is invalid: `json foo{ json::array{} }`
is serialized as [[]] instead of []. So use old-style constructor
instead: `json foo( json::array() )`

This PR is on top of qgis#30010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants