[mapserver-users] annotation layer

Hans Castorp hanscastorp76 at yahoo.es
Thu Feb 21 02:57:32 PST 2008


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/ab3fec0c/attachment.htm>


More information about the MapServer-users mailing list