[Mapserver-users] WRAP a label

nida Khan nida at webstar.co.uk
Thu Jan 23 07:08:52 PST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0323_01C2C2F1.570EF4A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi List,

I've got some issues with labels.

1) I want to label my layer using WRAP as my object names are big so =
they overlap.
 here is my layer def.

# to disply district name  on map
LAYER # start of the "label district" layer object
  CONNECTIONTYPE postgis
  NAME "dist_label"
  CONNECTION "host=3D34.3.40.1 port=3D343 user=3Dtest password=3Dtest =
dbname=3Dtest"
  DATA "wkb_geometry from test_poly"
  STATUS OFF
  TYPE ANNOTATION
  LABELITEM "admin_name"
  CLASS
    NAME "dist_label"
    LABEL
      FORCE TRUE
      POSITION CC
      FONT fritqat-italic
      TYPE truetype
      SIZE 6
      COLOR 0 0 0
       WRAP 20
    END
  END # end of class object
END # end of layer object
I get this error when I include "wrap"
Warning: MapServer Error in getCharacter(): (20):(259)=20
Any idea??

2) One of the of the polygon does not get labeled, although I can query =
it and get right result.!!!

I'll appreciate any input from you guys
Many Thanks
Nida.




------=_NextPart_000_0323_01C2C2F1.570EF4A0
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.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi List,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I've got some issues with labels.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>1) I want to label my layer using WRAP as my object =
names are=20
big so they overlap.</FONT></DIV>
<DIV><FONT size=3D2> here is my layer def.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2># to disply district name  on map<BR>LAYER # =
start of the=20
"label district" layer object<BR>  CONNECTIONTYPE postgis<BR>  =
NAME=20
"dist_label"<BR>  CONNECTION "host=3D34.3.40.1 port=3D343 =
user=3Dtest=20
password=3Dtest dbname=3Dtest"<BR>  DATA "wkb_geometry from=20
test_poly"<BR>  STATUS OFF<BR>  TYPE ANNOTATION<BR>  =
LABELITEM=20
"admin_name"<BR>  CLASS<BR>    NAME=20
"dist_label"<BR>    =
LABEL<BR>      FORCE=20
TRUE<BR>      POSITION=20
CC<BR>      FONT=20
fritqat-italic<BR>      TYPE=20
truetype<BR>      SIZE=20
6<BR>      COLOR 0 0=20
0<BR>       WRAP 20<BR>   =20
END</FONT></DIV>
<DIV><FONT size=3D2>  END # end of class object<BR>END # end of =
layer=20
object</FONT></DIV>
<DIV><FONT size=3D2>I get this error when I include "wrap"</FONT></DIV>
<DIV><STRONG>Warning</STRONG>: MapServer Error in getCharacter(): =
(20):(259)=20
</DIV>
<DIV>Any idea??</DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>2) One of the of the polygon does not get labeled, =
although I=20
can query it and get right result.!!!</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I'll appreciate any input from you guys</FONT></DIV>
<DIV><FONT size=3D2>Many Thanks</FONT></DIV>
<DIV><FONT size=3D2>Nida.</FONT></DIV>
<DIV><FONT size=3D2> </DIV>
<DIV><BR></FONT> </DIV></BODY></HTML>

------=_NextPart_000_0323_01C2C2F1.570EF4A0--




More information about the MapServer-users mailing list