[Mapserver-users] urgent help needed about labelling

Murat Isik muratisik at megatek.com.tr
Mon Nov 10 14:49:58 PST 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> </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> </DIV>
<DIV>
<DIV>LAYER<BR>  NAME ERENKOY_ORNEKSOKAK_PL_polyline<BR>  TYPE=20
line<BR>  GROUP sokaklar<BR>  STATUS ON<BR>  DATA=20
ERENKOY_ORNEKSOKAK_PL_polyline</DIV>
<DIV>#LABELCACHE on<BR>LABELITEM 'ADI'<BR>  CLASS<BR>   =
NAME=20
'ADI'<BR>   COLOR 161 02 110<BR>   =20
LABEL<BR>      TYPE=20
truetype<BR>#      FORCE=20
true<BR>      FONT=20
arial<BR>      COLOR 0 0=20
0<BR>       ANGLE =
AUTO<BR>    =20
BACKGROUNDCOLOR 250 250 250 #WIT<BR>      =
POSITION=20
AUTO<BR>        SIZE=20
0<BR>        MINSIZE=20
2<BR>      SIZE 8<BR>   END<BR>  =

END</DIV>
<DIV> </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> </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