[Mapserver-users] Re: Oriented arrows mapserver

Michael Schulz mschulz at webgis.de
Tue Dec 9 08:01:31 PST 2003


Hi,
perhaps someone on the list has more experience on the problem below (it 
usually gives a lot more answers when posting to the list).

My guess would be you could try and use the street data layer labeling 
for drawing arrow symbols. Let mapserver rotate the labels based on the 
direction of each line segment (ANGLE auto, Mapserver can only rotate 
labels for line data automatically), and use the static text "->" (your 
arrow character) as label text. Imagine this as instead of labeling with 
the street name rotated along the street direction the streets are 
labelled with the arrow.

HTH, Michael


Ballini Yvain schrieb:

>  
> 
> Dear Michael,
> 
> I would like to use an arrow symbol which follows the direction of my
> street layer. I still have the shapefile of the arrows but when I choose
> a symbol in the layer for visualizing the arrows, it doesn't follow the
> street direction.
> The symbol is this one:
> 
> SYMBOL
>   NAME "arrow"
>   TYPE truetype
>   FONT arial
>   CHARACTER "->"
>   #POSITION CC
>   GAP -10
> END
> 
> 
> And the arrow-layer is this one:
> 
> LAYER
>   NAME freccie_navtech
>   PROJECTION
>   "proj=longlat"
>   "ellps=intl"
>   "no_defs"
>   END
>   STATUS OFF
>   DATA arrow_font_point
>   TYPE POINT
>    CLASS
>     STYLE
>       SYMBOL 'arrow'
>       size 20
>       COLOR 245 88 128
>       ANTIALIAS TRUE
>     END
>   END
> END
> 
> If I change the position option in the symbol definition, it doesn't
> change anything for the orientation.
> Do you know where I'm wrong ??
> 
> Thank you very much.
> 
> Yvain Ballini.
> 
> 

-- 
-----------------------------------------------------------
Michael Schulz                                in medias res
Dipl.-Geologe                              Gesellschaft für
                                 Informationstechnologie mbH
                                      In den Weihermatten 66
		                             79108 Freiburg
                                      0761 55695-95 (Fax 96)
mschulz at webgis.de              www.webgis.de/www.zopecms.de




More information about the MapServer-users mailing list