[Mapserver-users] WMS Label Strangenss

craig.gould at bt.com craig.gould at bt.com
Thu Apr 22 09:35:40 PDT 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C42887.D935E970
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Stepan,
The labels disappear completely when I use the ANTIALIAS FALSE option
Craig.

	-----Original Message-----
	From: Stepan Kafka [mailto:stepan.kafka at centrum.cz]=20
	Sent: 22 April 2004 15:16
	To: Gould,CR,Craig,XGH6A C; mapserver-users at lists.gis.umn.edu
	Subject: RE: [Mapserver-users] WMS Label Strangenss
=09
=09
	Your layer uses anti-aliased fonts (to be smoother) as default option. =
Try set ANTIALIAS FALSE in the LABEL object:
	=20
	                LABEL =20
	                        FONT "arial"=20
	                        TYPE TRUETYPE=20
	                        SIZE 10=20
	                        COLOR 0 0 0=20
	                        POSITION cc=20
	                        OFFSET 0 0
	            ANTIALIAS FALSE=20
	                END=20
=09
	Stepan Kafka
	Help Service Remote Sensing
	tel: +420-327514118
	mailto:kafka at email.cz
	ICQ: 294002967
	http://www.bnhelp.cz <http://www.bnhelp.cz/>=20
=09

		-----P=F9vodn=ED zpr=E1va-----
		Od: mapserver-users-admin at lists.gis.umn.edu =
[mailto:mapserver-users-admin at lists.gis.umn.edu]za u=BEivatele =
craig.gould at bt.com
		Odesl=E1no: 22. dubna 2004 14:57
		Komu: mapserver-users at lists.gis.umn.edu
		P=F8edm=ECt: [Mapserver-users] WMS Label Strangenss
	=09
	=09

		Folks,=20

		Excuse me if I'm being daft here as I'm pretty new to this WMS stuff.=20

		I have some layer labels coming through a WMS server that when =
displayed on the client map lose their focus and become off colour and =
fuzzy. They are supposed to be black, but appear in the final image as a =
mix of grey/white/black. Hopefully my image attachments will appear on =
the list. If not then please mail me for them if you know anything about =
this.

		The WMS server is passing an image that looks just as it should, e.g.=20
		<<1082638016134960.png>>=20

		However, when this is placed on the client map the labels appear like =
this:=20
		<<DEMO108263801613496.gif>>=20

		Both maps are using the British National Grid projection epsg:27700.=20

		My client map layer looks like this:=20

		LAYER=20
		    NAME OS=20
		    TYPE RASTER=20
		    OFFSITE 0 0 0=20
		    STATUS DEFAULT=20
		        MAXSCALE 50000=20
		        MINSCALE 0   =20
		    CONNECTIONTYPE WMS=20
		    CONNECTION =
"http://132.146.248.79/OSMapServer/OSWMSMap.asp?map=3DC:\Inetpub\WWWRoot\=
OSMapServer\OS.map& =
<http://132.146.248.79/OSMapServer/OSWMSMap.asp?map=3DC:\Inetpub\WWWRoot\=
OSMapServer\OS.map&> "=20
		    METADATA=20
		      "wms_title" "OS"=20
		      "wms_name" "OS_Road"=20
		      "wms_server_version" "1.1.0"=20
		      "wms_srs" "epsg:27700"=20
		      "wms_format" "image/png"=20
		      "wms_map" "C:\Inetpub\WWWRoot\OSMapServer\OS.map"=20
		    END=20
		END=20

		[ For the sharp eyed among you, you may notice this is directed to an =
asp page. This redirects the request to the mapserv cgi-bin script with =
all the same parameters but without the epsg parameter as this is the =
only way I can get a client using projection 27700 and a server using =
the same projection to respond with a map. Mapserver crashes with a page =
fault otherwise! This is not restricted to just epsg 27700 - if the =
server/client has the same family of projection as 27700 this page fault =
will occurr. Not knowing enough about the projection code and being too =
dum to get it to compile on my own windoze machine I've failed to trace =
what's causing this problem ]


		My server map layer looks like this:=20

		LAYER=20
		        NAME                    "OS_Text"=20
		        TYPE                    POINT=20
		        CONNECTIONTYPE  OGR=20
		        CONNECTION              "C:\OS_Maps\SO\SOText.Tab"=20
		        STATUS          DEFAULT=20
		        MAXSCALE                4000=20
		        LABELITEM               'Name'=20
		        METADATA=20
		                WMS_TITLE "OS_Text"=20
		                WMS_SRS "EPSG:27700"=20
		        END    =20
		        CLASS=20
		                NAME "OS_Text"=20
		                COLOR 0 0 0=20
		                LABEL =20
		                        FONT "arial"=20
		                        TYPE TRUETYPE=20
		                        SIZE 10=20
		                        COLOR 0 0 0=20
		                        POSITION cc=20
		                        OFFSET 0 0=20
		                END=20
		        END=20
		        PROJECTION=20
		                "init=3Depsg:27700"=20
		        END=20
		END=20


		Many thanks=20
		Craig.=20




		Craig Gould
		BT Exact
		__________________________________________
		British Telecommunications plc
		Registered office: 81 Newgate Street London EC1A 7AJ
		Registered in England no. 1800000=20
		This electronic message contains information from British =
Telecommunications plc which may be privileged and confidential. The =
information is intended to be for the use of the individual(s) or entity =
named above. If you are not the intended recipient, be aware that any =
disclosure, copying, distribution or use of the contents of this =
information is prohibited. If you have received this electronic message =
in error, please notify us by telephone or email (to the number or =
address above) immediately.=20

		Activity and use of the British Telecommunications plc email system is =
monitored to secure its effective operation and for other lawful =
business purposes. Communications using this system will also be =
monitored and may be recorded to secure effective operation and for =
other lawful business purposes



------_=_NextPart_001_01C42887.D935E970
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D171163516-22042004>Stepan,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN =
class=3D171163516-22042004>The=20
labels disappear completely when I use the ANTIALIAS FALSE=20
option</SPAN></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2><SPAN=20
class=3D171163516-22042004>Craig.</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
Stepan Kafka=20
  [mailto:stepan.kafka at centrum.cz] <BR><B>Sent:</B> 22 April 2004=20
  15:16<BR><B>To:</B> Gould,CR,Craig,XGH6A C;=20
  mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> RE: =
[Mapserver-users] WMS=20
  Label Strangenss<BR><BR></FONT></DIV>
  <DIV>
  <DIV><SPAN class=3D492331114-22042004><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
  size=3D2>Your layer <SPAN class=3D30021314-22042004>uses =
</SPAN>anti-aliased=20
  fonts (to be smoother)<SPAN class=3D30021314-22042004> as default =
option</SPAN>.=20
  Try set ANTIALIAS FALSE in the LABEL object<SPAN=20
  class=3D30021314-22042004>:</SPAN></FONT></FONT></FONT></SPAN></DIV>
  <DIV><SPAN class=3D492331114-22042004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN=20
  =
class=3D492331114-22042004>       &nbs=
p;       =20
  <FONT face=3D"Courier New" size=3D2>LABEL =20
  </FONT><BR>       =20
         =20
          <FONT face=3D"Courier New"=20
  size=3D2>FONT "arial"</FONT> =
<BR>       =20
         =20
          <FONT face=3D"Courier New"=20
  size=3D2>TYPE TRUETYPE</FONT> =
<BR>       =20
         =20
          <FONT face=3D"Courier New"=20
  size=3D2>SIZE 10</FONT> <BR>        =

         =20
          <FONT face=3D"Courier New"=20
  size=3D2>COLOR 0 0 0</FONT> =
<BR>       =20
         =20
          <FONT face=3D"Courier New"=20
  size=3D2>POSITION cc</FONT> =
<BR>       =20
         =20
          <FONT face=3D"Courier New"=20
  size=3D2>OFFSET 0 0</FONT></SPAN></DIV>
  <DIV><SPAN class=3D492331114-22042004><SPAN =
class=3D30021314-22042004><FONT=20
  face=3D"Courier New"=20
  =
size=3D2>          &nbs=
p; <FONT=20
  color=3D#ff0000>ANTIALIAS=20
  =
FALSE</FONT></FONT></SPAN> <BR>      &=
nbsp;        =20
  <FONT face=3D"Courier New" size=3D2>END</FONT> <BR></DIV></SPAN>
  <DIV><SPAN class=3D492331114-22042004><FONT face=3DArial =
color=3D#0000ff size=3D2>
  <P><FONT size=3D2>Stepan Kafka<BR>Help Service Remote Sensing<BR>tel:=20
  +420-327514118<BR><A href=3D"mailto:kafka at email.cz"=20
  target=3D_blank>mailto:kafka at email.cz</A><BR>ICQ: 294002967<BR><A=20
  href=3D"http://www.bnhelp.cz/"=20
  =
target=3D_blank>http://www.bnhelp.cz</A><BR></FONT></P></FONT></SPAN></DI=
V></DIV>
  <BLOCKQUOTE=20
  style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid">
    <DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
    size=3D2>-----P=F9vodn=ED zpr=E1va-----<BR><B>Od:</B>=20
    mapserver-users-admin at lists.gis.umn.edu=20
    [mailto:mapserver-users-admin at lists.gis.umn.edu]<B>za =
u=BEivatele</B>=20
    craig.gould at bt.com<BR><B>Odesl=E1no:</B> 22. dubna 2004 =
14:57<BR><B>Komu:</B>=20
    mapserver-users at lists.gis.umn.edu<BR><B>P=F8edm=ECt:</B> =
[Mapserver-users] WMS=20
    Label Strangenss<BR><BR></FONT></DIV><!-- Converted from text/rtf =
format -->
    <P><FONT face=3DArial size=3D2>Folks,</FONT> </P>
    <P><FONT face=3DArial size=3D2>Excuse me if I'm being daft here as =
I'm pretty=20
    new to this WMS stuff.</FONT> </P>
    <P><FONT face=3DArial size=3D2>I have some layer labels coming =
through a WMS=20
    server that when displayed on the client map lose their focus and =
become off=20
    colour and fuzzy. They are supposed to be black, but appear in the =
final=20
    image as a mix of grey/white/black. Hopefully my image attachments =
will=20
    appear on the list. If not then please mail me for them if you know =
anything=20
    about this.</FONT></P>
    <P><FONT face=3DArial size=3D2>The WMS server is passing an image =
that looks=20
    just as it should, e.g.</FONT> <BR><FONT face=3DArial =
color=3D#000000=20
    size=3D2><<1082638016134960.png>> </FONT></P>
    <P><FONT face=3DArial size=3D2>However, when this is placed on the =
client map=20
    the labels appear like this:</FONT> <BR><FONT face=3DArial =
color=3D#000000=20
    size=3D2><<DEMO108263801613496.gif>> </FONT></P>
    <P><FONT face=3DArial size=3D2>Both maps are using the British =
National Grid=20
    projection epsg:27700.</FONT> </P>
    <P><FONT face=3DArial size=3D2>My client map layer looks like =
this:</FONT> </P>
    <P><FONT face=3D"Courier New" size=3D2>LAYER </FONT><BR><FONT =
face=3D"Courier New"=20
    size=3D2>    NAME OS</FONT> <BR><FONT face=3D"Courier =
New"=20
    size=3D2>    TYPE RASTER</FONT> <BR><FONT =
face=3D"Courier New"=20
    size=3D2>    OFFSITE 0 0 0</FONT> <BR><FONT =
face=3D"Courier New"=20
    size=3D2>    STATUS DEFAULT</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>MAXSCALE 50000</FONT> =
<BR>       =20
    <FONT face=3D"Courier New" size=3D2>MINSCALE 0   =20
    </FONT><BR><FONT face=3D"Courier New" size=3D2>    =
CONNECTIONTYPE=20
    WMS</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>    CONNECTION=20
    "</FONT><A=20
    =
href=3D"http://132.146.248.79/OSMapServer/OSWMSMap.asp?map=3DC:\Inetpub\W=
WWRoot\OSMapServer\OS.map&"><U><FONT=20
    face=3D"Courier New" color=3D#0000ff=20
    =
size=3D2>http://132.146.248.79/OSMapServer/OSWMSMap.asp?map=3DC:\Inetpub\=
WWWRoot\OSMapServer\OS.map&</FONT></U></A><FONT=20
    face=3D"Courier New" size=3D2>"</FONT> <BR><FONT face=3D"Courier =
New"=20
    size=3D2>    METADATA</FONT> <BR><FONT =
face=3D"Courier New"=20
    size=3D2>      "wms_title" "OS"</FONT> =
<BR><FONT=20
    face=3D"Courier New" size=3D2>      =
"wms_name"=20
    "OS_Road"</FONT> <BR><FONT face=3D"Courier New"=20
    size=3D2>      "wms_server_version" =
"1.1.0"</FONT>=20
    <BR><FONT face=3D"Courier New" =
size=3D2>      "wms_srs"=20
    "epsg:27700"</FONT> <BR><FONT face=3D"Courier New"=20
    size=3D2>      "wms_format" =
"image/png"</FONT>=20
    <BR><FONT face=3D"Courier New" =
size=3D2>      "wms_map"=20
    "C:\Inetpub\WWWRoot\OSMapServer\OS.map"</FONT> <BR><FONT =
face=3D"Courier New"=20
    size=3D2>    END</FONT> <BR><FONT face=3D"Courier =
New"=20
    size=3D2>END</FONT> </P>
    <P><FONT face=3DArial size=3D2>[ For the sharp eyed among you, you =
may notice=20
    this is directed to an asp page. This redirects the request to the =
mapserv=20
    cgi-bin script with all the same parameters but without the epsg =
parameter=20
    as this is the only way I can get a client using projection 27700 =
and a=20
    server using the same projection to respond with a map. Mapserver =
crashes=20
    with a page fault otherwise! This is not restricted to just epsg =
27700 - if=20
    the server/client has the same family of projection as 27700 this =
page fault=20
    will occurr. Not knowing enough about the projection code and being =
too dum=20
    to get it to compile on my own windoze machine I've failed to trace =
what's=20
    causing this problem ]</FONT></P><BR>
    <P><FONT face=3DArial size=3D2>My server map layer looks like =
this:</FONT> </P>
    <P><FONT face=3D"Courier New" size=3D2>LAYER</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>NAME    =
       =20
            "OS_Text"</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>TYPE    =
       =20
            POINT</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>CONNECTIONTYPE  OGR</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>CONNECTION     =20
            =
"C:\OS_Maps\SO\SOText.Tab"</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>STATUS         =20
    DEFAULT</FONT> <BR>        <FONT=20
    face=3D"Courier New" =
size=3D2>MAXSCALE       =20
            4000</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>LABELITEM      =20
            'Name'</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>METADATA</FONT> =
<BR>       =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>WMS_TITLE "OS_Text"</FONT>=20
    <BR>       =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>WMS_SRS "EPSG:27700"</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>END    =20
    </FONT><BR>        <FONT=20
    face=3D"Courier New" size=3D2>CLASS</FONT>=20
    <BR>       =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>NAME "OS_Text"</FONT> =
<BR>       =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>COLOR 0 0 0</FONT> =
<BR>       =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>LABEL  =
</FONT><BR>       =20
           =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>FONT "arial"</FONT> =
<BR>       =20
           =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>TYPE TRUETYPE</FONT> =
<BR>       =20
           =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>SIZE 10</FONT> =
<BR>       =20
           =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>COLOR 0 0 0</FONT> =
<BR>       =20
           =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>POSITION cc</FONT> =
<BR>       =20
           =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>OFFSET 0 0</FONT> =
<BR>       =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>END</FONT> <BR>        =
<FONT=20
    face=3D"Courier New" size=3D2>END</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>PROJECTION</FONT> =
<BR>       =20
            <FONT face=3D"Courier =
New"=20
    size=3D2>"init=3Depsg:27700"</FONT>=20
    <BR>        <FONT face=3D"Courier =
New"=20
    size=3D2>END </FONT><BR><FONT face=3D"Courier New" =
size=3D2>END</FONT> </P><BR>
    <P><FONT face=3DArial size=3D2>Many thanks</FONT> <BR><FONT =
face=3DArial=20
    size=3D2>Craig.</FONT> </P><BR><BR><BR>
    <P><SPAN lang=3Den-gb><B><FONT face=3D"Times New Roman" =
size=3D2>Craig Gould<BR>BT=20
    Exact<BR></FONT></B><FONT face=3D"Times New Roman"=20
    =
size=3D2>__________________________________________<BR></FONT><B><FONT=20
    face=3D"Times New Roman" size=3D2>British Telecommunications =
plc<BR>Registered=20
    office: 81 Newgate Street London EC1A 7AJ<BR>Registered in England =
no.=20
    1800000</FONT></B> </SPAN><BR><SPAN lang=3Den-gb><B><FONT=20
    face=3D"Times New Roman" size=3D2>This electronic message contains =
information=20
    from British Telecommunications plc which may be privileged and=20
    confidential. The information is intended to be for the use of the=20
    individual(s) or entity named above. If you are not the intended =
recipient,=20
    be aware that any disclosure, copying, distribution or use of the =
contents=20
    of this information is prohibited. If you have received this =
electronic=20
    message in error, please notify us by telephone or email (to the =
number or=20
    address above) immediately.</FONT><FONT face=3D"Times New =
Roman"></FONT></B>=20
    </SPAN></P>
    <P><SPAN lang=3Den-gb><B><FONT face=3D"Times New Roman" =
size=3D2>Activity and use=20
    of the British Telecommunications plc email system is monitored to =
secure=20
    its effective operation and for other lawful business purposes.=20
    Communications using this system will also be monitored and may be =
recorded=20
    to secure effective operation and for other lawful business=20
    =
purposes</FONT></B></SPAN></P><BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML=
>
=00
------_=_NextPart_001_01C42887.D935E970--



More information about the MapServer-users mailing list