[Mapserver-users] Label: ANGLE auto

Rusty Moorman RustyM at morleyandassociates.com
Fri Aug 1 09:51:43 EDT 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>&nbsp;</DIV>
<DIV>I have another question regarding label angles:</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>&nbsp;</DIV>
<DIV>Thanks again,</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rusty 
Moorman</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Morley &amp; 
Associates, Inc.<BR><BR>&gt;&gt;&gt; "Steve Lime" 
&lt;steve.lime at dnr.state.mn.us&gt; 07/31/03 04:25PM &gt;&gt;&gt;<BR>You need to 
use truetype fonts. The built in GD fonts are 
not<BR>rotatable...<BR><BR>Steve<BR><BR>&gt;&gt;&gt; "Rusty Moorman" 
&lt;RustyM at morleyandassociates.com&gt; 07/31/03 03:36PM<BR>&gt;&gt;&gt;<BR>Hello 
all,<BR>&nbsp;&nbsp; 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>&nbsp;&nbsp; I'm using "ANGLE: Auto" 
under the proper label object to no avail. <BR><BR>&nbsp;&nbsp; Here are some 
system specs:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mapserver - v3.6.6 
(downloaded binary - OGR / GIF 
support)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Win2000<BR><BR>&nbsp;&nbsp; And here's a code snippet:<BR><BR>LAYER 
<BR>&nbsp;&nbsp;&nbsp; NAME "vroadname"<BR>&nbsp;&nbsp;&nbsp; DATA 
Vanderburgh_centerline<BR>&nbsp;&nbsp;&nbsp; STATUS 
DEFAULT<BR>&nbsp;&nbsp;&nbsp; TYPE ANNOTATION<BR>&nbsp;&nbsp;&nbsp; LABELITEM 
"street_nam"<BR>&nbsp;&nbsp;&nbsp; LABELMAXSCALE 72000<BR>&nbsp;&nbsp;&nbsp; 
CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ANGLE auto<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
MINDISTANCE 
50<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
POSITION 
CC<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 
TINY<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 
0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; 
END<BR>END<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Any clue as to what I'm doing 
wrong? Thanks for the 
help.<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rusty 
Moorman<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Morley &amp; 
Associates, Inc.<BR></DIV></BODY></HTML>

--=_9BC58396.58395418--



More information about the mapserver-users mailing list