Label problem

Tony Jolibois tjolibois at CLS.FR
Wed Sep 1 01:07:47 PDT 2004


-------- Original Message --------
Subject:        Label problem
Date:   Mon, 30 Aug 2004 15:46:48 +0200
From:   Thomas Selliez <thomas.selliez at cls.fr>
To:     Tony Jolibois <tjolibois at cls.fr>



Hi list,

I try to display labels on point layer (buoy aquisition date and town
name) but I don't success... I give you a part of my mapfile, what's
wrong ??
Maybe somebody could help me...

Thank you

Thomas

MAP
  NAME           Ex_geo_tom
  IMAGETYPE      png
  #EXTENT         -180.000000 -90 180.000000 90   #vue du Monde
  #EXTENT         -6.215625 43.121250 -5.090625 43.965   #vue Gijon et
alentours
  EXTENT         -18 36 0 52   #Espagne, Portugal, France
  SIZE           800 600
  SHAPEPATH      "/var/www/html/tutorial/data"
  SYMBOLSET      "../tutorial/symbols/symbols35.sym"
  FONTSET        "../tutorial/fonts/fonts.list"
  CONFIG DODS_BLOCK_ORIENTED "1"
  CONFIG DODS_AIS_FILE "/var/www/html/temp/ocean_ais.xml"
  UNITS DD

  WEB
    TEMPLATE  'template_tom.html'
    IMAGEPATH '/tmp/'
    IMAGEURL  '/tmp/'
  END

  SYMBOL
   NAME "po"
   TYPE ellipse
   FILLED true
   POINTS
    1 1
   END
  END


  PROJECTION
    #"proj=latlong"
  END

  SCALEBAR
    STATUS EMBED
    OUTLINECOLOR 0 0 0
    IMAGECOLOR 255 255 255
    TRANSPARENT FALSE
    UNITS KILOMETERS
    INTERVALS 1
    SIZE 70 3
    STYLE 1
    POSITION LR
    INTERLACE TRUE
    POSTLABELCACHE true
    LABEL
      TYPE BITMAP
      SIZE SMALL
      OFFSET 0 0
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END


#-------------PAYS------------------------
 LAYER # shape Espagne
    NAME         Espagne
    DATA         ./Europe/Espagne/PONET_poly_poly
    STATUS       default
    TYPE         POLYGON
...

 #--------------VILLES-------------------

 LAYER # villes Espagne
    NAME         VillesEspagne
    DATA         ./Europe/Espagne/AEPOINT_point_point
    STATUS       OFF
    TYPE         POINT
    MAXSCALE 10000000
    CLASS
      SYMBOL "po"
      SIZE 6
      COLOR 0 255 0
    END

    PROJECTION
    "proj=latlong"
    END

    LABELITEM "Aeptname"
    CLASS
        LABEL
        TYPE truetype
        FONT arial
        SIZE 5
        ANTIALIAS TRUE
        COLOR 255 0 0
        OUTLINECOLOR 255 255 255
 PARTIALS false
      END
    END


  END # fin villes Espagne

...

#--------------HYDRO-----------------------

LAYER # hydro Espagne
    NAME         HydroEspagne
    DATA         ./Europe/Espagne/DNNET_arc_arc
    STATUS       OFF
    TYPE         LINE
    MAXSCALE 10000000
CLASS
  color 0 0 255
END
END #fin hydro Espagne

...

LAYER # bouees
    NAME         bouees_180
    DATA         bouees_180
    STATUS       OFF
    TYPE         POINT
    MAXSCALE 5000000
    PROJECTION
    "proj=latlong"
    END

    CLASS
      SYMBOL "po"
      SIZE 6
      COLOR 255 0 0
   END

    LABELITEM "DATE"
    CLASS
      LABEL
        COLOR 132 31 31
        SHADOWCOLOR 218 218 218
        SHADOWSIZE 2 2
        TYPE TRUETYPE
        FONT arial-bold
        SIZE 5
        ANTIALIAS TRUE
        POSITION CL
        PARTIALS FALSE
        MINDISTANCE 1
        BUFFER 1
      END # end of label
    END


  END # fin bouees


END # end of map file

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20040901/30ffb6ef/attachment.htm>


More information about the MapServer-users mailing list