[Mapserver-users] Problem labelling polygon

Wim Blanken w.blanken at geon.nl
Tue Mar 25 06:02:19 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0026_01C2F2C6.62BD1340
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello List,

I have a problem with labelling certain polygons that have odd shapes. =
For example I have a donut shape
polygon whose label is only showing when I draw it with TYPE LINE in the =
mapfile. TYPE POLYGON and
TYPE ANNOTATION only draws the label of polygons with normal shapes. I =
even tried it without the other layers showing so it is not a =
conflicting label problem. I have tried the different CACHE and POSITION =
settings and different mapserver cgi's but no luck...
Here is the layer settings in my mapfile:
LAYER
  NAME "Test"
  TYPE POLYGON
  STATUS ON
  DATA "theme2"
  LABELITEM "waarde"
  CLASS
    NAME "Maatschappelijke voorziening"
    COLOR 161 02 110
    LABEL
      TYPE truetype
      FORCE true
      FONT arial
      COLOR 0 0 0
      BACKGROUNDCOLOR 250 250 250 #WIT
      POSITION cc
      SIZE 8
    END
  END=20
END

Hope someone has some insight into this strange behavior....

Wim Blanken
Advisor Geo-Information-Management=20
GEON bv - Groningen - The Netherlands


------=_NextPart_000_0026_01C2F2C6.62BD1340
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 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello List,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a problem with labelling certain =
polygons=20
that have odd shapes. For example I have a donut shape</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>polygon whose label is only showing =
when I draw it=20
with TYPE LINE in the mapfile. TYPE POLYGON and</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>TYPE ANNOTATION only&nbsp;draws the =
label of=20
polygons with normal shapes. I even tried it without the other layers =
showing so=20
it is </FONT><FONT face=3DArial size=3D2>not a conflicting label =
problem. I have=20
tried the different CACHE and POSITION settings and different mapserver =
cgi's=20
but no luck...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Here is the layer settings in my=20
mapfile:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2>
<P>LAYER<BR>&nbsp; NAME "Test"<BR>&nbsp; TYPE POLYGON<BR>&nbsp; STATUS=20
ON<BR>&nbsp; DATA "theme2"<BR>&nbsp; LABELITEM "waarde"<BR>&nbsp;=20
CLASS<BR>&nbsp;&nbsp;&nbsp; NAME "Maatschappelijke=20
voorziening"<BR>&nbsp;&nbsp;&nbsp; COLOR 161 02 =
110<BR>&nbsp;&nbsp;&nbsp;=20
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE=20
truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE=20
true<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT=20
arial<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0=20
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BACKGROUNDCOLOR 250 250 250=20
#WIT<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION=20
cc<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE&nbsp;8<BR>&nbsp;&nbsp;&nbsp;=20
END<BR>&nbsp; END&nbsp;<BR>END</P></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hope someone has some insight into this =
strange=20
behavior....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Wim Blanken</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Advisor Geo-Information-Management =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>GEON bv - Groningen - The =
Netherlands</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0026_01C2F2C6.62BD1340--




More information about the mapserver-users mailing list