R: [Mapserver-users] Rotating labels in point shapefile

Ballini Yvain Ballini.Yvain at seat.it
Mon Feb 9 10:44:10 EST 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C3EF23.8F8B5064
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Valerio,
Yes it's possible, if your shapefile has 2 database fileds: one for the =
label, the other fot the angle value, you can do something like:
LAYER

...  =20

     LABELITEM "LABEL" # if Label is your label field name

    LABELANGLEITEM "ANGLE" #if angle is your angle filed name=20

    CLASS

        LABEL...

=20
and so it works.=20
=20
________________________________

Da: mapserver-users-admin at lists.gis.umn.edu =
[mailto:mapserver-users-admin at lists.gis.umn.edu] Per conto di Valerio =
Noti
Inviato: luned=EC 9 febbraio 2004 16.27
A: mapserver-users at lists.gis.umn.edu
Oggetto: [Mapserver-users] Rotating labels in point shapefile


Hello,
is it possible to rotate labels of a point shapefile depending on a =
database field which contains angle value?
=20
Thanks
=20
Valerio Noti

------_=_NextPart_001_01C3EF23.8F8B5064
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D859433015-09022004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hi Valerio,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D859433015-09022004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Yes it's possible, if your shapefile has 2 =
database fileds:=20
one for the label, the other fot the angle value, you can do something=20
like:</FONT></SPAN></DIV><SPAN class=3D859433015-09022004>
<P dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D859433015-09022004>LAYER</SPAN></FONT></P>
<P dir=3Dltr align=3Dleft><FONT color=3D#0000ff><FONT face=3DArial><FONT =
size=3D2><SPAN=20
class=3D859433015-09022004>...&nbsp;&nbsp;&nbsp;</SPAN></FONT></FONT></FO=
NT></P>
<P dir=3Dltr align=3Dleft><FONT color=3D#0000ff><FONT face=3DArial><FONT =
size=3D2><SPAN=20
class=3D859433015-09022004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>LABELITEM=
=20
"LABEL"<SPAN class=3D859433015-09022004> # if Label is your label field=20
name</SPAN></FONT></FONT></FONT></P>
<P dir=3Dltr align=3Dleft><FONT color=3D#0000ff><FONT face=3DArial><FONT =
size=3D2><SPAN=20
class=3D859433015-09022004>&nbsp;&nbsp;&nbsp; </SPAN>LABELANGLEITEM =
"ANGLE"<SPAN=20
class=3D859433015-09022004> #if angle is your angle filed=20
name&nbsp;</SPAN></FONT></FONT></FONT></P>
<P dir=3Dltr align=3Dleft><FONT color=3D#0000ff><FONT face=3DArial><FONT =
size=3D2><SPAN=20
class=3D859433015-09022004>&nbsp;&nbsp;&nbsp;=20
CLASS</SPAN></FONT></FONT></FONT></P>
<P dir=3Dltr align=3Dleft><FONT color=3D#0000ff><FONT face=3DArial><FONT =
size=3D2><SPAN=20
class=3D859433015-09022004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
LABEL...</SPAN></FONT></FONT></FONT></P>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D859433015-09022004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>and so it =
works.</FONT></SPAN>&nbsp;</SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D859433015-09022004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV class=3DOutlookMessageHeader lang=3Dit dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>Da:</B> =
mapserver-users-admin at lists.gis.umn.edu=20
[mailto:mapserver-users-admin at lists.gis.umn.edu] <B>Per conto di =
</B>Valerio=20
Noti<BR><B>Inviato:</B> luned=EC 9 febbraio 2004 16.27<BR><B>A:</B>=20
mapserver-users at lists.gis.umn.edu<BR><B>Oggetto:</B> [Mapserver-users] =
Rotating=20
labels in point shapefile<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>is it possible to rotate labels of a =
point=20
shapefile depending on a database field which contains angle =
value?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Valerio Noti</FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C3EF23.8F8B5064--



More information about the mapserver-users mailing list