[mapserver-users] [MS-master] SLD request and style + label behaviour

Yves Jacolin yves.jacolin at camptocamp.com
Sat May 3 02:53:05 PDT 2014


Hello,

I am testing MapServer master this week and I found some curious behaviour.

# I am using :
* basemaps for the mapfile with data from OSM in France.
* MapServer master, built today
$ /usr/lib/cgi-bin/mapserv -v
MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV SUPPORTS=XMP
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

# Testing:
* export sld with GetStyles request on buildings15 layer.

Layer definition:

LAYER
    STATUS ON
    PROJECTION
        "init=epsg:3857"
    END
    GROUP "default"
    NAME "buildings15"
    TYPE POLYGON
    CONNECTIONTYPE postgis
    CONNECTION "host=localhost dbname=france user=yves password=yves
port=5432"
    DATA "geometry from (select geometry,osm_id, name as name from
osm_buildings) as foo using unique osm_id using srid=3857"
    LABELITEM "name"
    PROCESSING "LABEL_NO_CLIP=ON"
    PROCESSING "CLOSE_CONNECTION=DEFER"
    MAXSCALEDENOM 20313
    MINSCALEDENOM 10156
    CLASS
      STYLE
         COLOR "#bbbbbb"
         OPACITY 50
      END
      STYLE
         OUTLINECOLOR "#333333"
         WIDTH 0
      END
      LABEL
         TYPE TRUETYPE
         FONT sc
         PARTIALS FALSE
         MINFEATURESIZE AUTO
         SIZE 8
         COLOR 0 0 0
         OUTLINECOLOR 255 255 255
         OUTLINEWIDTH 2
         WRAP ' '
         MAXLENGTH 6
         ALIGN CENTER
      END
   END
END

# Issues:

* GetStyle request:
- Gives me a label definition (which seems corrects to me, except that
there is
no outlinecolor/width parameters)
- Gives me a stroke-width value of 1 instead of 0

* GetMap request doesn't show any labels

Sorry if this mails comes with differents issues, we can split it on
several
different thread if needed.

Regards,

Y.

-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : 021 619 10 43
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81

Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140503/62e9a0c5/attachment.htm>


More information about the MapServer-users mailing list