[mapserver-commits] [MapServer/MapServer] 4c35fb: SLD: fix having a TextSymbolizer rule after a Poly...
Even Rouault
noreply at github.com
Fri Oct 18 07:06:04 PDT 2024
Branch: refs/heads/backport-7175-to-branch-8-2
Home: https://github.com/MapServer/MapServer
Commit: 4c35fb2016e304cdb5f3a01661a07960f8c424e5
https://github.com/MapServer/MapServer/commit/4c35fb2016e304cdb5f3a01661a07960f8c424e5
Author: Even Rouault <even.rouault at spatialys.com>
Date: 2024-10-18 (Fri, 18 Oct 2024)
Changed paths:
M msautotest/sld/label.map
M src/mapogcsld.cpp
Log Message:
-----------
SLD: fix having a TextSymbolizer rule after a PolygonSymbolizer one
Currently if we have a SLD like:
```xml
<NamedLayer>
<Name>...</Name>
<UserStyle>
<Title>default</Title>
<FeatureTypeStyle>
<Rule>
<PolygonSymbolizer>...</PolygonSymbolizer>
</Rule>
<Rule>
<TextSymbolizer>...</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
```
the PolygonSymbolizer rule is no applied, only the TextSymolizer one.
This is due to the logic in msSLDParseRule() that inappropriately
overrides the layerObj::type member.
To unsubscribe from these emails, change your notification settings at https://github.com/MapServer/MapServer/settings/notifications
More information about the MapServer-commits
mailing list