[Mapserver-users] Label: ANGLE auto

Rusty Moorman RustyM at morleyandassociates.com
Fri Aug 1 06:51:43 PDT 2003


--=_9BC58396.58395418
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Awesome, that was the problem. Thanks all for the timely responses. I
just want to say that MapServer is a phenomenal product, and my
gratitude goes out to all those who created and maintain it.
 
I have another question regarding label angles:
      Is it possible to have MapServer maintain label direction? I.e.,
is it possible to specify that I want all my vertical road labels to
read bottom-top, instead of some reading top-bottom and some vise-versa,
while still using the "ANGLE: auto" option, or do I have to utilize the
LABELANGLEITEM attribute to achieve this?
 
Thanks again,
      
           Rusty Moorman
           Morley & Associates, Inc.

>>> "Steve Lime" <steve.lime at dnr.state.mn.us> 07/31/03 04:25PM >>>
You need to use truetype fonts. The built in GD fonts are not
rotatable...

Steve

>>> "Rusty Moorman" <RustyM at morleyandassociates.com> 07/31/03 03:36PM
>>>
Hello all,
   I am having trouble getting ANGLE working for the LABEL object. All
of the labels (road names for a centerline layer) are simply
horizontally aligned. 

   I'm using "ANGLE: Auto" under the proper label object to no avail. 

   Here are some system specs:
        Mapserver - v3.6.6 (downloaded binary - OGR / GIF support)
        Win2000

   And here's a code snippet:

LAYER 
    NAME "vroadname"
    DATA Vanderburgh_centerline
    STATUS DEFAULT
    TYPE ANNOTATION
    LABELITEM "street_nam"
    LABELMAXSCALE 72000
    CLASS
        LABEL
            ANGLE auto
            MINDISTANCE 50
            POSITION CC
            SIZE TINY
            COLOR 0 0 0
        END
    END
END

      Any clue as to what I'm doing wrong? Thanks for the help.

         Rusty Moorman
         Morley & Associates, Inc.


--=_9BC58396.58395418
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Description: HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT size=2></FONT>Awesome, that was the problem. Thanks all for the 
timely responses. I just want to say that MapServer is a phenomenal product, and 
my gratitude goes out to all those who created and maintain it.</DIV>
<DIV> </DIV>
<DIV>I have another question regarding label angles:</DIV>
<DIV>      Is it possible to have MapServer maintain 
label direction? I.e., is it possible to specify that I want all my vertical 
road labels to read bottom-top, instead of some reading top-bottom and some 
vise-versa, while still using the "ANGLE: auto" option, or do I have to utilize 
the LABELANGLEITEM attribute to achieve this?</DIV>
<DIV> </DIV>
<DIV>Thanks again,</DIV>
<DIV>      </DIV>
<DIV>           Rusty 
Moorman</DIV>
<DIV>           Morley & 
Associates, Inc.<BR><BR>>>> "Steve Lime" 
<steve.lime at dnr.state.mn.us> 07/31/03 04:25PM >>><BR>You need to 
use truetype fonts. The built in GD fonts are 
not<BR>rotatable...<BR><BR>Steve<BR><BR>>>> "Rusty Moorman" 
<RustyM at morleyandassociates.com> 07/31/03 03:36PM<BR>>>><BR>Hello 
all,<BR>   I am having trouble getting ANGLE working for the LABEL 
object. All<BR>of the labels (road names for a centerline layer) are 
simply<BR>horizontally aligned. <BR><BR>   I'm using "ANGLE: Auto" 
under the proper label object to no avail. <BR><BR>   Here are some 
system specs:<BR>        Mapserver - v3.6.6 
(downloaded binary - OGR / GIF 
support)<BR>        
Win2000<BR><BR>   And here's a code snippet:<BR><BR>LAYER 
<BR>    NAME "vroadname"<BR>    DATA 
Vanderburgh_centerline<BR>    STATUS 
DEFAULT<BR>    TYPE ANNOTATION<BR>    LABELITEM 
"street_nam"<BR>    LABELMAXSCALE 72000<BR>    
CLASS<BR>        
LABEL<BR>            
ANGLE auto<BR>            
MINDISTANCE 
50<BR>            
POSITION 
CC<BR>            SIZE 
TINY<BR>            COLOR 
0 0 0<BR>        END<BR>    
END<BR>END<BR><BR>      Any clue as to what I'm doing 
wrong? Thanks for the 
help.<BR><BR>         Rusty 
Moorman<BR>         Morley & 
Associates, Inc.<BR></DIV></BODY></HTML>

--=_9BC58396.58395418--



More information about the MapServer-users mailing list