Try this, work's fine for me 
 
 
  LAYER
 
    PROJECTION
      "init=epsg:42105"
    END
    METADATA
      wms_title           "Interdictions aux camions"
    END
 
    NAME                  "ert_camns"
    STATUS                ON
    DUMP                  TRUE
 
    EXTENT                30000 75000 1700000 2120000
    MAXSCALE              500000
    MINSCALE              1
    TYPE                  ANNOTATION
 
    DATA                  "ert_camns/ert_camns"
 
    CLASS
      SYMBOL              "ert_camns"
      TEXT                " "
 
      LABEL
        TYPE              TRUETYPE
        FONT              "arial"
        POSITION          CC
        COLOR             255 255 255
        MINDISTANCE       500
        FORCE             TRUE
        PARTIALS          FALSE
      END
 
    END
  END

 
 

______________________________________________________

JAMES LÉVEILLÉ
Service des systèmes de Mission
Direction des technologies de l'information
Ministère des Transports du Québec

5833, boul. Pierre-Bertrand, 2ième étage
Québec (Québec) G2K 1K7
Téléphone:   (418) 380-2005 poste 227
Télécopieur: (418) 644-6653
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 


 

        -----Message d'origine-----
        De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Hans Castorp
        Envoyé : 21 février 2008 05:58
        À : [EMAIL PROTECTED];
mapserver-users@lists.osgeo.org
        Objet : RE: [mapserver-users] annotation layer
        
        
        There is a problem. The layer I want to give symbols to is a line
layer, so I cannot use point layer.
        
        Thanks.
        
        -----Mensaje original-----
        De: Guillaume Sueur [mailto:[EMAIL PROTECTED] 
        Enviado el: jueves, 21 de febrero de 2008 11:47
        Para: Hans Castorp; mapserver-users@lists.osgeo.org
        Asunto: Re: [mapserver-users] annotation layer
        
        I think you should just use a POINT layer then. Annotation is
dedicated 
        to labels, it's a way to have labels displayed WITHOUT the anchor
point.
        
        
        Hans Castorp a écrit :
        > Hi to all,
        > 
        >  
        > 
        > It is possible to have an annotation layer with symbol but without
label??
        > 
        >  
        > 
        > I will try to explain it: I have an ANNOTATION layer in order to
place 
        > SYMBOLS depending on some EXPRESSION values. The problem is that
I’m not 
        > capable to place SYMBOLS without place LABELS, and what I need is
to 
        > place only symbols.
        > 
        >  
        > 
        > Here is my mapfile:
        > 
        >  
        > 
        >  
        > 
        > This configuration shows both symbol and label
        > 
        >  
        > 
        > LAYER
        > 
        >     NAME 'road_sym'
        > 
        >     GROUP 'cartografia'
        > 
        >     DATA 'carreteras2'
        > 
        >     STATUS DEFAULT
        > 
        >     TYPE ANNOTATION
        > 
        >     CLASSITEM 'MATRICULA'
        > 
        >             LABELITEM 'MATRICULA'
        > 
        >            
        > 
        >     CLASS
        > 
        >       EXPRESSION 'AP-53'
        > 
        >       STYLE
        > 
        >         SYMBOL 'AP-53'
        > 
        >                         SIZE 15
        > 
        >                         OUTLINECOLOR 254 254 254
        > 
        >       END
        > 
        >               LABEL
        > 
        >                         ANTIALIAS true
        > 
        >                         POSITION AUTO
        > 
        >                         ANGLE FOLLOW
        > 
        >                         FONT "arial"
        > 
        >                         TYPE truetype 
        > 
        >                         COLOR 0 0 0
        > 
        >         MINDISTANCE 300
        > 
        >         MINFEATURESIZE 10
        > 
        >         OFFSET 0 0
        > 
        >         PARTIALS FALSE
        > 
        >                         SIZE 6
        > 
        >                         OUTLINECOLOR 255 255 255
        > 
        >               END
        > 
        >     END
        > 
        > END
        > 
        >  
        > 
        >  
        > 
        > This configuration shows nothing (neither symbol nor label)
        > 
        >  
        > 
        > LAYER
        > 
        >     NAME 'road_sym'
        > 
        >     GROUP 'cartografia'
        > 
        >     DATA 'carreteras2'
        > 
        >     STATUS DEFAULT
        > 
        >     TYPE ANNOTATION
        > 
        >     CLASSITEM 'MATRICULA'
        > 
        >             LABELITEM 'MATRICULA'
        > 
        >            
        > 
        >     CLASS
        > 
        >       EXPRESSION 'AP-53'
        > 
        >       STYLE
        > 
        >             SYMBOL 'AP-53'
        > 
        >                         SIZE 15
        > 
        >                         OUTLINECOLOR 254 254 254
        > 
        >             END#end symbol
        > 
        >       END #end style
        > 
        >     END #end class
        > 
        > END #end layer
        > 
        >  
        > 
        >  
        > 
        >  
        > 
        > Thanks in advance.
        > 
        >  
        > 
        >  
        > 
        >  
        > 
        >  
        > 
        > Hans Castorp
        > 
        > 
        >
------------------------------------------------------------------------
        > 
        > ¿Con Mascota por primera vez? - Sé un mejor Amigo
        > Entra en Yahoo! Respuestas 
        >
<http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_yl
c=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?l
ink=over&sid=XXXXXXXX>.
        > 
        > 
        >
------------------------------------------------------------------------
        > 
        > _______________________________________________
        > mapserver-users mailing list
        > mapserver-users@lists.osgeo.org
        > http://lists.osgeo.org/mailman/listinfo/mapserver-users
        
        -- 
        Guillaume SUEUR
        Expert SIG et OpenSource
        NEOGEO
        46 RUE MATABIAU
        31000 TOULOUSE
        06 74 91 95 20
        Site web : http://www.neogeo-online.net
        
        

________________________________


        ¿Con Mascota por primera vez? - Sé un mejor Amigo
        Entra en Yahoo! Respuestas
<http://es.rd.yahoo.com/evt:51361/*http://es.answers.yahoo.com/dir/index;_yl
c=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?l
ink=over&sid=XXXXXXXX> .
        

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to