[mapserver-users] annotation layer

Hans Castorp hanscastorp76 at yahoo.es
Thu Feb 21 07:52:54 EST 2008


Hi, James
 
Thank you for trying to help me. I think my question was not very clear; what I want is to get ONLY symbols, not labels.
I can get only labels or both labels and symbols, but not only symbols; and this is what I need.
 
Thanks
 

De: Léveillé, James [mailto:James.Leveille at mtq.gouv.qc.ca] 
Enviado el: jueves, 21 de febrero de 2008 13:31
Para: Hans Castorp; guillaume.sueur at neogeo-online.net; mapserver-users at lists.osgeo.org
Asunto: RE : [mapserver-users] annotation layer

 
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
james.leveille at mtq.gouv.qc.ca
 

-----Message d'origine-----
De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Hans Castorp
Envoyé : 21 février 2008 05:58
À : guillaume.sueur at neogeo-online.net; mapserver-users at 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:guillaume.sueur at neogeo-online.net] 
Enviado el: jueves, 21 de febrero de 2008 11:47
Para: Hans Castorp; mapserver-users at 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;_ylc=X3oDMTE4ZWhyZjU0BF9TAzIxMTQ3MTQzMjIEc2VjA0Jhbm5lcgRzbGsDQWNxdWlzaXRpb24-?link=over&sid=XXXXXXXX>.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at 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.answers.yahoo.com/info/welcome
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080221/cc8d664d/attachment.html


More information about the mapserver-users mailing list