<!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,<br>
<br>
As already mentioned, what is missing is the LABELITEM in your layer
definition.&nbsp; Without this, MapServer will not know what attribute to
use for labelling.&nbsp; Your layer should look something like this:<br>
<br>
<pre wrap=""># Road tracks
LAYER
    NAME 'mytown'
    TYPE LINE
    DATA '/var/www/manual/examples/mytown/data/mytown.shp'
<font color="#ff0000"><b>    LABELITEM "road_name"</b></font>
    METADATA
      'wms_title' 'mytown'
          'gml_include_items' 'all'
    END
        DUMP TRUE
    STATUS DEFAULT
    TRANSPARENCY 80
    PROJECTION
      'proj=longlat'
      'ellps=WGS84'
      'datum=WGS84'
      'no_defs'
      ''
    END

  CLASS
    STYLE
      COLOR 102 0 0
      SIZE 2
      SYMBOL "line_solid"
    END
    STYLE
      COLOR 204 51 51
      SIZE 1
      SYMBOL "line_solid"
    END
    LABEL
      TYPE truetype
      FONT "PerspectiveBlack"
      SIZE 11
    END
  END
END

</pre>
Best regards,<br>
Christy<br>
<br>
-- <br>
<font color="#999999">Christy Nieman<br>
GIS Technician<br>
DM Solutions Group, Inc.<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:cnieman@dmsolutions.ca">cnieman@dmsolutions.ca</a><br>
Web: <a class="moz-txt-link-freetext" href="http://dmsolutions.ca">http://dmsolutions.ca</a><br>
Web: <a class="moz-txt-link-freetext" href="http://research.dmsolutions.ca">http://research.dmsolutions.ca</a><br>
</font><br>
kende wrote:
<blockquote cite="mid:1232904272117-2213729.post@n2.nabble.com"
 type="cite">
  <pre wrap="">
Hi Jukka,

Thank you for your reply, I did RTFM before posting my question, and tried
LABELITEM (that was one of the several 'ways' quote in my original post),
also tried a separate layer for just the road names (separate and grouped),
and may other things, and none seemed to work, I didn't want to add too much
clutter
to my post, and my mapfile went through a lot of 'revisions/versions'.

Thanks.


Hi,

Looks like there is no LABELITEM set on layer descriptions.  Document "An
introduction to MapServer" (<a class="moz-txt-link-freetext" href="http://www.mapserver.org/introduction.html">http://www.mapserver.org/introduction.html</a>) does
mention LABELITEM but that part of text is messy.  Perhaps it should be
reviewed.

-Jukka Rahkonen-



  </pre>
</blockquote>
<div class="moz-signature"><br>
</div>
</body>
</html>