[Mapserver-users] WRAP a label

nida Khan nida at webstar.co.uk
Thu Jan 23 10:08:52 EST 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>&nbsp;</DIV>
<DIV><FONT size=3D2>I've&nbsp;got some issues with labels.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</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>&nbsp;here is my layer def.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2># to disply district name&nbsp; on map<BR>LAYER # =
start of the=20
"label district" layer object<BR>&nbsp; CONNECTIONTYPE postgis<BR>&nbsp; =
NAME=20
"dist_label"<BR>&nbsp; CONNECTION "host=3D34.3.40.1 port=3D343 =
user=3Dtest=20
password=3Dtest dbname=3Dtest"<BR>&nbsp; DATA "wkb_geometry from=20
test_poly"<BR>&nbsp; STATUS OFF<BR>&nbsp; TYPE ANNOTATION<BR>&nbsp; =
LABELITEM=20
"admin_name"<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; NAME=20
"dist_label"<BR>&nbsp;&nbsp;&nbsp; =
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE=20
TRUE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
CC<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT=20
fritqat-italic<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE=20
truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
6<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0=20
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WRAP 20<BR>&nbsp;&nbsp;&nbsp;=20
END</FONT></DIV>
<DIV><FONT size=3D2>&nbsp; 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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><BR></FONT>&nbsp;</DIV></BODY></HTML>

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




More information about the mapserver-users mailing list