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

[Backport release-3_6] Apply SLD PointSymbolizer on single centroid for polygon #9779

Merged
merged 2 commits into from
Apr 12, 2019

Conversation

backporting[bot]
Copy link
Contributor

@backporting backporting bot commented Apr 12, 2019

Backport #9763.

rldhont added 2 commits April 9, 2019 16:13
SLD 1.0 and StyleEncoding 1.1 specs say that if a line, polygon, or raster geometry is used with PointSymbolizer, then the semantic is to use the centroid of the geometry, or any similar representative point.

When QGIS read an SLD, it applies the point on the centroid of all parts of the multi-polygon and not on the unique centroid of the mutil-polygon.

ST_Centroid is the PostGIS implementation of the Simple Feature standard for SQL and it generates only one point for multi-polygon. So I think SLD PointSymbolizer has to be applied to the single centroid.
@rldhont rldhont added the Bugfix label Apr 12, 2019
@rldhont rldhont added this to the 3.6.2 milestone Apr 12, 2019
@rldhont rldhont merged commit 2a46246 into release-3_6 Apr 12, 2019
@delete-merged-branch delete-merged-branch bot deleted the backport-9763-to-release-3_6 branch April 12, 2019 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant