<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
First thing to check is if OSM buildings really have names in the data or maybe test by using osm_id as labelitem because it for sure exists for all the buildings. Other things to do is to add also DEBUG 5 into your layer, check that ms_errorfile is set and
 see what messages it collects. Hmm, and check if font "sc" can be found. Jeff will soon tell you to use shp2img for testing but perhaps a good WMS client is here better because of all the scale dependent layers used in OSM mapfiles.<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF924472"><font color="#000000" face="Tahoma" size="2">Yves Jacolin wrote:<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">> Hello,<br>
<br>
> I am testing MapServer master this week and I found some curious behaviour.<br>
<br>
# I am using :<br>
* basemaps for the mapfile with data from OSM in France.<br>
* MapServer master, built today<br>
$ /usr/lib/cgi-bin/mapserv -v<br>
MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ <br>
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP <br>
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER <br>
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS <br>
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
<br>
# Testing:<br>
* export sld with GetStyles request on buildings15 layer.<br>
<br>
Layer definition:<br>
<br>
LAYER<br>
    STATUS ON<br>
    PROJECTION<br>
        "init=epsg:3857"<br>
    END<br>
    GROUP "default"<br>
    NAME "buildings15"<br>
    TYPE POLYGON<br>
    CONNECTIONTYPE postgis<br>
    CONNECTION "host=localhost dbname=france user=yves password=yves <br>
port=5432"<br>
    DATA "geometry from (select geometry,osm_id, name as name from <br>
osm_buildings) as foo using unique osm_id using srid=3857"<br>
    LABELITEM "name"<br>
    PROCESSING "LABEL_NO_CLIP=ON"<br>
    PROCESSING "CLOSE_CONNECTION=DEFER"<br>
    MAXSCALEDENOM 20313<br>
    MINSCALEDENOM 10156<br>
    CLASS<br>
      STYLE<br>
         COLOR "#bbbbbb"<br>
         OPACITY 50<br>
      END<br>
      STYLE<br>
         OUTLINECOLOR "#333333"<br>
         WIDTH 0<br>
      END<br>
      LABEL<br>
         TYPE TRUETYPE<br>
         FONT sc<br>
         PARTIALS FALSE<br>
         MINFEATURESIZE AUTO<br>
         SIZE 8<br>
         COLOR 0 0 0<br>
         OUTLINECOLOR 255 255 255<br>
         OUTLINEWIDTH 2<br>
         WRAP ' '<br>
         MAXLENGTH 6<br>
         ALIGN CENTER<br>
      END<br>
   END<br>
END<br>
<br>
# Issues:<br>
<br>
* GetStyle request:<br>
- Gives me a label definition (which seems corrects to me, except that there is <br>
no outlinecolor/width parameters)<br>
- Gives me a stroke-width value of 1 instead of 0<br>
<br>
* GetMap request doesn't show any labels<br>
<br>
Sorry if this mails comes with differents issues, we can split it on several <br>
different thread if needed.<br>
<br>
Regards,<br>
<br>
Y.<br clear="all">
<br>
-- <br>
Responsable Formation et Support<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel (France) : +33 4 79 26 57 98<br>
Tel (Suisse) : 021 619 10 43<br>
Mob. : +33 6 18 75 42 21<br>
Fax : 04 79 70 15 81<br>
<br>
Mail : <a href="mailto:yves.jacolin@camptocamp.com" target="_blank">yves.jacolin@camptocamp.com</a><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a>
</div>
</div>
</div>
</div>
</body>
</html>