[Mapserver-users] label is not appearing only on one polygon

nida Khan nida at webstar.co.uk
Wed Jan 22 08:45:39 EST 2003


This is a multi-part message in MIME format.

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

Hi list,

I having a very annoying problem.
One of the polygon is not getting labeled for some reason.
When I query that polygon, it display all the details!!!

here is my layer def.

LAYER=20
  CONNECTIONTYPE postgis
  NAME "as_const"
  CONNECTION "host=3D10.3.4 port=3D343 user=3Dtest password=3Dtest =
dbname=3Dtest"
   DATA "the_geom from (select oid,wkb_geometry,ogc_fid,admin_name, from =
test_poly25) as foo"
  FILTER (ogc_fid > '999999')
  STATUS OFF
  METADATA
        "DESCRIPTION" "LONDON"
        "RESULT_FIELDS" "ogc_fid admin_name"
  END
  TYPE POLYGON  =20
  LABELITEM "admin_name"=20
  CLASS
    TEMPLATE "ttt_query.html"
    NAME "as_const"
    OUTLINECOLOR 0 0 255
    LABEL
      FORCE TRUE
      POSITION CC
      FONT fritqat-italic
      TYPE truetype
      SIZE 6
      COLOR 0 0 0
     # BACKGROUNDCOLOR 250 250 0
    END #End of LABEL
  END # end of class object
END # end of layer object


Will appreciate any input!
Many Thanks
Nida.

------=_NextPart_000_005D_01C2C21C.8C7BED80
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 having a very annoying problem.</FONT></DIV>
<DIV><FONT size=3D2>One of the polygon is not getting labeled for some=20
reason.</FONT></DIV>
<DIV><FONT size=3D2>When I query that polygon, it display all the=20
details!!!</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>here is my layer def.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>LAYER&nbsp;</FONT></DIV>
<DIV><FONT size=3D2>&nbsp; CONNECTIONTYPE postgis<BR>&nbsp; NAME=20
"as_const"<BR>&nbsp; CONNECTION "host=3D10.3.4 port=3D343 user=3Dtest =
password=3Dtest=20
dbname=3Dtest"<BR>&nbsp;&nbsp; DATA "the_geom from (select=20
oid,wkb_geometry,ogc_fid,admin_name, from test_poly25) as foo"<BR>&nbsp; =
FILTER=20
(ogc_fid &gt; '999999')<BR>&nbsp; STATUS OFF<BR>&nbsp;=20
METADATA<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "DESCRIPTION"=20
"LONDON"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "RESULT_FIELDS" =
"ogc_fid=20
admin_name"</FONT></DIV>
<DIV><FONT size=3D2>&nbsp; END<BR>&nbsp; TYPE POLYGON&nbsp;&nbsp; =
<BR>&nbsp;=20
LABELITEM "admin_name" <BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; TEMPLATE=20
"ttt_query.html"<BR>&nbsp;&nbsp;&nbsp; NAME =
"as_const"<BR>&nbsp;&nbsp;&nbsp;=20
OUTLINECOLOR 0 0 255<BR>&nbsp;&nbsp;&nbsp;=20
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 =
0<BR>&nbsp;&nbsp;&nbsp;&nbsp; #=20
BACKGROUNDCOLOR 250 250 0<BR>&nbsp;&nbsp;&nbsp; END #End of =
LABEL<BR>&nbsp; END=20
# end of class object<BR>END # end of layer object</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Will appreciate any input!</FONT></DIV>
<DIV><FONT size=3D2>Many Thanks</FONT></DIV>
<DIV><FONT size=3D2>Nida.</FONT></DIV></BODY></HTML>

------=_NextPart_000_005D_01C2C21C.8C7BED80--




More information about the mapserver-users mailing list