[Mapserver-users] Labelling difference between mapserver and mapscript
Murat Isik
muratisik at megatek.com.tr
Mon Nov 10 04:41:04 PST 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> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>mapserver-3.6.0-4<BR>php-mapscript-3.6.0-4</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The phpinfo_mapscript =
shows:</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>The mapfile of mapscript was this and =
it rendered=20
image:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR> GROUP sokaklar<BR> TYPE=20
line<BR> DATA ERENKOY_ORNEKSOKAK_PL_polyline<BR> STATUS =
ON<BR> =20
CLASSITEM 'ID'<BR> =
CLASS<BR> =20
EXPRESSION /./<BR> COLOR 66 34 249<BR> =
END</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR> TYPE line<BR> GROUP=20
sokaklar<BR> STATUS ON<BR> DATA=20
ERENKOY_ORNEKSOKAK_PL_polyline<BR> LABELITEM "ADI"<BR> =20
CLASS<BR> NAME "ADI"<BR> COLOR 161 =
02=20
110<BR> LABEL<BR> TYPE=20
truetype<BR># FORCE=20
true<BR> FONT=20
arial<BR> COLOR 0 0=20
0<BR> ANGLE=20
AUTO<BR> # BACKGROUNDCOLOR 250 250=20
250<BR> POSITION=20
AUTO<BR> SIZE=20
0<BR> MINSIZE=20
2<BR> SIZE 8<BR> =
END<BR> =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> </DIV></FONT>
<DIV><FONT face=3DArial size=3D2>Can anybody help please?</FONT></DIV>
<DIV> </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