[mapserver-users] SLD with TextSymbolizer
Daniel Degasperi
daniel.degasperi at r3-gis.com
Tue Sep 15 08:03:54 PDT 2009
Hi Guillaume,
I found this example:
http://blog.geoserver.org/2009/04/02/follow-the-arrows/
Does MapServer support the ogc:Literal Element within label, too?
Daniel
Guillaume Sueur schrieb:
> Hi Daniel,
>
> Label is supposed to enclise the name of a field. Here is a complete
> working example of text symbolizer :
> <TextSymbolizer>
> <Label>id_field</Label>
> <LabelPlacement>
> <PointPlacement>
> <Displacement>
> <DisplacementX/>
> <DisplacementY>5</DisplacementY>
> </Displacement>
> </PointPlacement>
> </LabelPlacement>
> <Font>
> <CssParameter name="font-family">VERDANA</CssParameter>
> <CssParameter name="font-style">bold</CssParameter>
> <CssParameter name="font-size">16</CssParameter>
> </Font>
> <Fill>
> <CssParameter name="fill">#000000</CssParameter>
> </Fill>
> <Halo>
> <Radius>3</Radius>
> <Fill><CssParameter name="fill">#FFFFFF</CssParameter></Fill>
> </Halo>
> </TextSymbolizer>
>
> Hope that helps
>
> Guillaume
>
>
> Daniel Degasperi a écrit :
>
>> Hi,
>>
>> I've some problems using the TextSymbolizer in my SLD-File (see
>> Attachment route_sld.xml), specially with the following part, which will
>> generate this error: column Literal does not exists. (see Attachment
>> wms_error.png for further details)
>>
>> <ogc:Label><ogc:Literal>V</ogc:Literal></ogc:Label>
>>
>> Is this problem related to MapServer or MapServer does not support
>> SLD-Labels?
>>
>> I've tested this with MapServer 5.2.2 and 5.4.2.
>>
>> Best regards,
>> Daniel Degasperi
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>
>
--
Daniel Degasperi
Software Developer
daniel.degasperi at r3-gis.com
---------------------------
R3 GIS Srl
Via Johann Kravogl 2
I-39010 Merano - Sinigo (BZ)
Tel. +39 0473 494949
Fax. +39 0473 069902
Web http://www.r3-gis.com
-----------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090915/d9a3717c/attachment.htm>
More information about the MapServer-users
mailing list