[mapserver-users] FW: Character symbology to follow line direction

Bob Basques bob.b at gritechnologies.com
Tue Oct 27 16:36:13 PDT 2009


You can do this within a LABEL block, see here for more info:

http://mapserver.org/mapfile/label.html?highlight=follow%20auto

HINT: use "ANGLE auto" or "ANGLE follow"

bobb



Todd Harris wrote:
>
> Hello list,
>
>  
>
> A little problem, I hope someone can help.
>
>  
>
> Using Mapserver 5.2 - I am attempting to use a character symbol: "|" 
> as a STYLE for the outline of a polygon class. However, I cannot get 
> the symbol to remain perpendicular to the polygon boundaries ie: the 
> symbol is always vertical. Can this be done or should I be using a 
> vector or point symbol somehow?
>
>  
>
> /Symbol file:/
>
> SYMBOL
>
>   NAME "rawmat"
>
>   TYPE truetype
>
>   FONT arial
>
>   CHARACTER "|"
>
>   GAP 20 # distance between symbols
>
> END
>
>  
>
> /Mapfile/
>
> CLASS
>
>             NAME 'Extraction Areas'
>
>             STYLE
>
>                         OUTLINECOLOR 0 0 0
>
>                         WIDTH 1
>
>                         ANTIALIAS TRUE
>
>             END #STYLE
>
>             STYLE
>
>                         SYMBOL 'rawmat'
>
>                         OUTLINECOLOR 0 0 0
>
>                         SIZE 5
>
>                         ANTIALIAS TRUE
>
>             END #STYLE
>
> END #CLASS
>
>  
>
> Regards
>
> Todd
>
>  
>
> This e-mail and any files transmitted with it are intended only for 
> the use of the addressee(s). It may contain information that is 
> confidential and privileged, in which case neither is intended to be 
> waived or lost by mistaken delivery to you. If you are not an intended 
> recipient, any use, interference with, disclosure, distribution or 
> copying of this material is unauthorised and prohibited. If you 
> receive this e-mail in error, please notify the sender by return 
> e-mail and delete the message and any attachments from your system. 
> Unless specifically indicated, this e-mail does not constitute formal 
> advice or commitment by the sender or the Western Australian Land 
> Information Authority (Landgate). Information in this message not 
> relating to the official business of Landgate shall be understood as 
> neither given nor endorsed by it. It is your responsibility to check 
> any attachments for viruses and defects before opening or sending them 
> on. Landgate's liability is limited to re-supplying affected attachments.
>
>  
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091027/90681f5a/attachment.htm>


More information about the MapServer-users mailing list