Labelling highways

Randy James rjames57 at YAHOO.COM
Fri Mar 24 14:56:33 PST 2006


Hi Steve
Perhaps you need an point layer for the highway signs?
Randy

--- Steve Pashby <s.pashby at POSTGRAD.CURTIN.EDU.AU> wrote:

> Bird, Derek (xwave <Derek.Bird <at> XWAVE.COM> writes:
> 
> > 
> > Why don't you include your layer code then we can try to help a
> bit more ...
> > 
> > Derek
> > 
> > -----Original Message-----
> > From: UMN MapServer Users List [mailto:MAPSERVER-USERS <at>
> LISTS.UMN.EDU] On
> > Behalf Of Steve Pashby
> > Sent: Friday, March 24, 2006 2:18 AM
> > To: MAPSERVER-USERS <at> LISTS.UMN.EDU
> > Subject: [UMN_MAPSERVER-USERS] Labelling highways
> > 
> > Hello, 
> > 
> > I'm trying to label some roads with a highway sign and then
> overlay their
> > respective number.  However, for some reason i either label the
> entire road
> > with highway signs or just get the highway number ! 
> > 
> > I guess it has something to do with defining a 'highway sign'
> SYMBOL and
> > then using that in the LAYER definition ?
> > 
> > ... Any help will be greatly appreciated !
> > 
> > Cheers,
> > Steve.
> > 
> > Attachment (smime.p7s): application/x-pkcs7-signature, 3084 bytes
> 
>
------------------------------------------------------------------------------
> I think my layer code is all over the place ... but here goes
>  
> FONTSET "/ms4w/apps/etc/fontset.txt"
> 
> (... points to an ESRI truetype font)
> 
> ################################################
> # highway symbol
> 
> SYMBOL
>     NAME "U.S Route 1"
>     TYPE truetype
>     FONT esri_44
>     CHARACTER '@#162'
> END
> ###############################################
> # fat line symbol
> 
> SYMBOL
>    NAME "BigLine"
>    TYPE ELLIPSE
>    POINTS 1 1 END
> END
> 
> #################################################
> # highways
> 
> LAYER
>    NAME "highways"
>    STATUS on
>    TYPE line
>    DATA "digitised_highways"
>    PROJECTION
>       "init=epsg:28350"
>    END
>    
>    LABELCACHE on
>    LABELITEM "HWY_NO"
>    
>    CLASS
>       NAME "Highways"
>       STYLE
>          SYMBOL "BigLine"
>          SIZE 2
>          COLOR 240 110 110
>       END
>       LABEL
>          TYPE truetype
>          FONT "arial"
> 	 SIZE 12
> 	 COLOR 255 0 0 
>       END
>       STYLE
>          SYMBOL "U.S Route 1" # or esri_44 ???
>          SIZE 10
>          COLOR 0 0 230
>          OUTLINECOLOR 255 255 255
>       END
>    END
> END
> 
> Hope someone can make sense of this.
> 
> Thankyou.
> 
> Cheers, 
> Steve.
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the MapServer-users mailing list