[Mapserver-users] Labelling difference between mapserver and mapscript

Murat Isik muratisik at megatek.com.tr
Mon Nov 10 07:41:04 EST 2003


This is a multi-part message in MIME format.

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

Hello,
I have a layer of streets which I am trying to label in mapscript. I =
have labelled them with a mapfile in mapserver. Although not perfect =
label do show up in mapserver. However when I copy the related parts of =
the mapserver mapfile into mapscripts mapfile, mapscript doesnot render =
image. (it used to render without the labelling stuff)
Is there a difference between the labelling of mapserver and mapscript.
I installed mapserver and mapscript by rpms Their versions are:

mapserver-3.6.0-4
php-mapscript-3.6.0-4

The phpinfo_mapscript shows:

MapScript Version ($Revision: 1.104 $ $Date: 2002/04/24 20:37:32 $)
MapServer version 3.6.0 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG =
OUTPUT=3DWBMP SUPPORTS=3DTTF INPUT=3DTIFF INPUT=3DEPPL7 INPUT=3DJPEG =
INPUT=3DSHAPEFILE

The mapfile of mapscript was this and it rendered image:

LAYER
  NAME ERENKOY_ORNEKSOKAK_PL_polyline
  GROUP sokaklar
  TYPE line
  DATA ERENKOY_ORNEKSOKAK_PL_polyline
  STATUS ON
  CLASSITEM 'ID'
  CLASS
        EXPRESSION /./
   COLOR 66 34 249
  END

END

I replaced it with this (that worked with mapserver):

LAYER
  NAME ERENKOY_ORNEKSOKAK_PL_polyline
  TYPE line
  GROUP sokaklar
  STATUS ON
  DATA ERENKOY_ORNEKSOKAK_PL_polyline
  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
      POSITION AUTO
        SIZE 0
        MINSIZE 2
      SIZE 8
    END
  END
END

Now only page title shows up, not image produced :(

Can anybody help please?

Murat Isik

------=_NextPart_000_06DD_01C3A798.AB43A2F0
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3700.6699" 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 have a layer of streets which I am =
trying to=20
label in mapscript. I have labelled them with a mapfile in mapserver. =
Although=20
not perfect label do show up in mapserver. However when I copy the =
related parts=20
of the mapserver mapfile into mapscripts mapfile, mapscript doesnot =
render=20
image. (it used to render without the labelling stuff)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is there a difference between the =
labelling of=20
mapserver and mapscript.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I installed mapserver and mapscript by =
rpms Their=20
versions are:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>mapserver-3.6.0-4<BR>php-mapscript-3.6.0-4</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The phpinfo_mapscript =
shows:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MapScript Version ($Revision: 1.104 $ =
$Date:=20
2002/04/24 20:37:32 $)<BR>MapServer version 3.6.0 OUTPUT=3DGIF =
OUTPUT=3DPNG=20
OUTPUT=3DJPEG OUTPUT=3DWBMP SUPPORTS=3DTTF INPUT=3DTIFF INPUT=3DEPPL7 =
INPUT=3DJPEG=20
INPUT=3DSHAPEFILE</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The mapfile of mapscript was this and =
it rendered=20
image:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp;&nbsp;NAME=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR>&nbsp; GROUP sokaklar<BR>&nbsp; TYPE=20
line<BR>&nbsp; DATA ERENKOY_ORNEKSOKAK_PL_polyline<BR>&nbsp; STATUS =
ON<BR>&nbsp;=20
CLASSITEM 'ID'<BR>&nbsp; =
CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
EXPRESSION /./<BR>&nbsp;&nbsp; COLOR 66 34 249<BR>&nbsp; =
END</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>END<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I replaced it with this (that worked =
with=20
mapserver):</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp; NAME=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR>&nbsp; TYPE line<BR>&nbsp; GROUP=20
sokaklar<BR>&nbsp; STATUS ON<BR>&nbsp; DATA=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR>&nbsp; LABELITEM "ADI"<BR>&nbsp;=20
CLASS<BR>&nbsp;&nbsp;&nbsp; NAME "ADI"<BR>&nbsp;&nbsp;&nbsp; COLOR 161 =
02=20
110<BR>&nbsp;&nbsp;&nbsp; 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;&nbsp; ANGLE=20
AUTO<BR>&nbsp;#&nbsp;&nbsp;&nbsp;&nbsp; BACKGROUNDCOLOR 250 250=20
250<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;&nbsp; =
END<BR>&nbsp;=20
END<BR>END<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Now only page title shows up, not image =
produced=20
:(</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Can anybody help please?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Murat Isik</FONT></DIV></BODY></HTML>

------=_NextPart_000_06DD_01C3A798.AB43A2F0--




More information about the mapserver-users mailing list