[Mapserver-users] urgent help needed about labelling

Murat Isik muratisik at megatek.com.tr
Mon Nov 10 17:49:58 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0021_01C3A7ED.BB442940
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,
I am quite stuck as I tryied many options and none worked:

I have a layer of streets and I am trying to label it in mapscript. I =
have written the suiatable layer definitions into the mapfile and =
labelling worked with mapserver. However when I copy the exact same =
layer definition into the mapfile I use for mapscript, the script even =
refuses to render images. Whta might be the problem? Anything to add to =
the php code. The dbf of this layer has two coloumns, ID and ADI (name). =
ADI is the one I am trying to label. This is the layer definition that =
worked in mapserver but crushed on mapscript:

LAYER
  NAME ERENKOY_ORNEKSOKAK_PL_polyline
  TYPE line
  GROUP sokaklar
  STATUS ON
  DATA ERENKOY_ORNEKSOKAK_PL_polyline
#LABELCACHE on
LABELITEM 'ADI'
  CLASS
   NAME 'ADI'
   COLOR 161 02 110
    LABEL
      TYPE truetype
#      FORCE true
      FONT arial
      COLOR 0 0 0
       ANGLE AUTO
     BACKGROUNDCOLOR 250 250 250 #WIT
      POSITION AUTO
        SIZE 0
        MINSIZE 2
      SIZE 8
   END
  END

Anybody has any idea? Am I making a php mistake? Please, it is rather =
urgent for me...

Murat Isik

------=_NextPart_000_0021_01C3A7ED.BB442940
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 face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am quite stuck as I tryied many =
options and none=20
worked:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a layer of streets and I am =
trying to label=20
it in mapscript. I have written the suiatable layer definitions into the =
mapfile=20
and labelling worked with mapserver. However when I copy the exact same =
layer=20
definition into the mapfile I use for mapscript, the script even refuses =
to=20
render images. Whta might be the problem? Anything to add to the php =
code. The=20
dbf of this layer has two coloumns, ID and ADI (name). ADI is the one I =
am=20
trying to label. This is the layer definition that worked in mapserver =
but=20
crushed on mapscript:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>
<DIV>LAYER<BR>&nbsp; NAME ERENKOY_ORNEKSOKAK_PL_polyline<BR>&nbsp; TYPE=20
line<BR>&nbsp; GROUP sokaklar<BR>&nbsp; STATUS ON<BR>&nbsp; DATA=20
ERENKOY_ORNEKSOKAK_PL_polyline</DIV>
<DIV>#LABELCACHE on<BR>LABELITEM 'ADI'<BR>&nbsp; CLASS<BR>&nbsp;&nbsp; =
NAME=20
'ADI'<BR>&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;&nbsp; ANGLE =
AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
BACKGROUNDCOLOR 250 250 250 #WIT<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
POSITION=20
AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINSIZE=20
2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<BR>&nbsp;&nbsp; END<BR>&nbsp; =

END</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Anybody has any idea? Am I making a php =
mistake?=20
Please, it is rather urgent for me...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Murat =
Isik</FONT></DIV></DIV></BODY></HTML>

------=_NextPart_000_0021_01C3A7ED.BB442940--





More information about the mapserver-users mailing list