[mapserver-dev] SLD <Label> conformance in MapServer

Seth G sethg at geographika.co.uk
Wed Mar 18 05:40:49 PDT 2020

Hi Jérome,

That seems like a bug to me. 

The comments in the code (in mapogcsld.c) seem to indicate it should be a string literal?

  /* label  */
  /* support literal expression  and  propertyname
   - <TextSymbolizer><Label>MY_COLUMN</Label>
   - <TextSymbolizer><Label><ogc:PropertyName>MY_COLUMN</ogc:PropertyName></Label>

Sorry to hijack the thread but do you know if the reverse operations are supported?
E.g. If I have a CLASS LABEL...END END I would have thought it should generate a TextSymbolizer SLD tag, however nothing is generated. 



twitter: @geographika

On Wed, Mar 18, 2020, at 12:19 PM, jbo-ads wrote:
> Hi,
> As users around me start using SLD in MapServer, they find some issues. 
> One of them is related on how <Label> contents should be parsed. This 
> made me dig up issues #1737 and #1857 
> (https://github.com/mapserver/mapserver/issues/1857).
> What puzzles me is how <Label>Lorem_Ipsum</Label> is currently handled: 
> MapServer interprets it as an attribute: "[Lorem_Ipsum]" in Mapfile 
> syntax, whereas one would expect, according to OGC spec, a plain text 
> string: "Lorem_Ipsum".
> On one hand I would like to make changes to improve MapServer 
> conformance with respect to OGC specification. But on the other hand I 
> don't want to break existing configurations.
> How should I address that?
> Jérome.
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev

More information about the mapserver-dev mailing list