[mapserver-users] SLD behaviour changed after upgrade to Mapserver 6.0
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Thu Jun 9 05:07:51 PDT 2011
Hi,
The following part of SLD document, passed to Mapserver inside SLD_BODY,
used to produce a two-part label "KOODI, NIMI_FI" (with comma and space
between the parts). It worked with Mapserver 5.2.1 and 5.6.5. Now after
upgrading into version 6.0 the result is an error:
[Thu Jun 09 14:26:09 2011].652000 msShapeGetAnnotation: Expression
parser error. Failed to process text expression: "[KOODI]", "[NIMI_FI]"
The relevant part of SLD is this
<sld:TextSymbolizer>
<sld:Label>
<ogc:PropertyName>KOODI</ogc:PropertyName>,
<ogc:PropertyName>NIMI_FI</ogc:PropertyName>
</sld:Label>
<sld:Font>
<sld:CssParameter name="font-family">Arial</sld:CssParameter>
<sld:CssParameter name="font-size">10</sld:CssParameter>
</sld:Font>
<sld:Fill>
<sld:CssParameter name="fill">#FF9900</sld:CssParameter>
</sld:Fill>
<sld:Halo>
<sld:Radius>
<ogc:Literal>3</ogc:Literal>
</sld:Radius><sld:Fill>
<sld:CssParameter name="fill">#FFFFFF</sld:CssParameter>
<sld:CssParameter name="fill-opacity">1</sld:CssParameter>
</sld:Fill></sld:Halo>
</sld:TextSymbolizer>
The layer is very basic shapefile layer
LAYER
NAME "f_areas"
STATUS ON
DATA "D:\Data\f_areas"
TYPE POLYGON
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 3
TEMPLATE "d:/program files/ms4w/apps/template.html"
TOLERANCEUNITS PIXELS
METADATA
"wms_title" "f_area"
"wms_srs" "EPSG:2393 EPSG:3067 EPSG:4326 EPSG:900913"
END
CLASS
NAME "f_areas"
STYLE
OUTLINECOLOR 0 50 255
WIDTH 2
END
END
PROJECTION
"init=epsg:2393"
END
END
The SLD_BODY is still working if only one <ogc:PropertyName> is used for
<sld:Label>
-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110609/1c2a4633/attachment.htm>
More information about the MapServer-users
mailing list