<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Michael,<br>
I've tested now the mixed case and it works.<br>
<br>
The simple static text generates an error
(&lt;ogc:Label&gt;AAA&lt;/ogc:Label&gt;), but it can be avoided with
the following example:<br>
&lt;ogc:Label&gt;AAA&lt;ogc:PropertyName&gt;&lt;/ogc:PropertyName&gt;&lt;/ogc:Label&gt;<br>
<br>
Best regards,<br>
Daniel<br>
<br>
Michael Schulz schrieb:
<blockquote
 cite="mid:e750b12e0909150804x7274ca9dsdd8e95bc65d80880@mail.gmail.com"
 type="cite">
  <pre wrap="">Hi,

actually, I think the sld specs say that the label property can be of
mixed content and thus should e.g. allow for static text and variable
property values. So if you want to have a static text "V" id should
suffice to put that as it is in the label-tag. Values that have
variable content obtained from a DB-field should be enclosed with
&lt;ogc:PropertyValue&gt;. An example from the ogc spec:

&lt;Label&gt;This is city "&lt;ogc:PropertyName&gt;NAME&lt;/ogc:PropertyName&gt;"
of state &lt;ogc:PropertyName&gt;STATE&lt;/ogc:PropertyName&gt;&lt;/Label&gt;

I had these problems too with older mapserver versions (&lt; 5.x), but
thought that recent versions handle this correctly. Especially the
case of the example should work. Can you try that, i.e. have a static
text mixed with a ogc:PropertyValue?

Cheers, Michael


2009/9/15 Guillaume Sueur <a class="moz-txt-link-rfc2396E" href="mailto:no-reply@neogeo-online.net">&lt;no-reply@neogeo-online.net&gt;</a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Daniel,

Label is supposed to enclise the name of a field. Here is a complete
working example of text symbolizer :
&lt;TextSymbolizer&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;Label&gt;id_field&lt;/Label&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;LabelPlacement&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;PointPlacement&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;Displacement&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;DisplacementX/&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;DisplacementY&gt;5&lt;/DisplacementY&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/Displacement&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/PointPlacement&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;/LabelPlacement&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;Font&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;CssParameter name="font-family"&gt;VERDANA&lt;/CssParameter&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;CssParameter name="font-style"&gt;bold&lt;/CssParameter&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;CssParameter name="font-size"&gt;16&lt;/CssParameter&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;/Font&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;Fill&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;CssParameter name="fill"&gt;#000000&lt;/CssParameter&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;/Fill&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;Halo&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;Radius&gt;3&lt;/Radius&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;Fill&gt;&lt;CssParameter name="fill"&gt;#FFFFFF&lt;/CssParameter&gt;&lt;/Fill&gt;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;/Halo&gt;
&lt;/TextSymbolizer&gt;

Hope that helps

Guillaume


Daniel Degasperi a &eacute;crit :
    </pre>
    <blockquote type="cite">
      <pre wrap="">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)

&lt;ogc:Label&gt;&lt;ogc:Literal&gt;V&lt;/ogc:Literal&gt;&lt;/ogc:Label&gt;

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
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
  Daniel Degasperi
  Software Developer
  <a class="moz-txt-link-abbreviated" href="mailto:daniel.degasperi@r3-gis.com">daniel.degasperi@r3-gis.com</a>
  
---------------------------
  R3 GIS Srl
  Via Johann Kravogl 2
  I-39010 Merano - Sinigo (BZ)
  Tel. +39 0473 494949
  Fax. +39 0473 069902
  Web  <a class="moz-txt-link-freetext" href="http://www.r3-gis.com">http://www.r3-gis.com</a>
-----------------------------
</pre>
</body>
</html>