[Mapserver-users] Re: Oriented arrows mapserver
Steve Lime
steve.lime at dnr.state.mn.us
Tue Dec 9 09:43:25 PST 2003
Michael's suggestion is right on. Symbols can not be rotated, only labels.
Steve
>>> Michael Schulz <mschulz at webgis.de> 12/9/2003 10:01:31 AM >>>
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
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list