[Mapserver-users] WMS Label Strangenss

craig.gould at bt.com craig.gould at bt.com
Fri Apr 23 06:38:03 PDT 2004


This is a multi-part message in MIME format.

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

Stepan
=20
I tried changing the text colour to 1 0 0 ,instead of 0 0 0 and the =
problem disappears.
The text is now readable but interestingly still has a little shadow of =
whiteness on the right hand side.
If I try the ANTIALIAS FALSE I don't get the shadow but the text does =
not look as good.
Using the bitmap the text is perfect, except the font doesn't look very =
good.
=20
In summary I think I'll use the ANTILALIAS FALSE option with the =
truetype font with a colour of 1 1 1.
=20
Many thanks again for the replies,=20
Craig.
=20

	-----Original Message-----
	From: Stepan Kafka [mailto:stepan.kafka at centrum.cz]=20
	Sent: 23 April 2004 14:25
	To: Gould,CR,Craig,XGH6A C; stepan.kafka at centrum.cz; =
mapserver-users at lists.gis.umn.edu
	Subject: RE: [Mapserver-users] WMS Label Strangenss
=09
=09
	Craig,
	  mapserver as client processes WMS layer as other raster data. If the =
picture has transparent background, underlying data are seen too.
	When I am thinking about this, your problems may also be caused by =
background color and transparency colision in the picture. Please try:
	=20
	1. temporarily change the text color - what is the result?
	2. show the WMS maps in some DHTML client (maps are stacked at the =
client html page) e.g. www.wmsviewer.com
	=20
	Are your WMS maps seen from world? What is the address? I'd like to =
test them.
	=20
	Stepan

		-----P=F9vodn=ED zpr=E1va-----
		Od: craig.gould at bt.com [mailto:craig.gould at bt.com]
		Odesl=E1no: 23. dubna 2004 14:45
		Komu: stepan.kafka at centrum.cz; mapserver-users at lists.gis.umn.edu
		P=F8edm=ECt: RE: [Mapserver-users] WMS Label Strangenss
	=09
	=09
		Thanks for the reply. The text returns when antialias false is turned =
off.
		=20
		However, I don't really understand how this would make any difference.
		The png file being created by the server has the text in, it's just =
when it's merged with the client map that the text dissappears (in the =
case of antialias false) or becomes fuzzy (in the case of antialias =
true).
		=20
		Forgive my ignorance but how do the client and server images get =
merged?=20
		Could the caause be in the merge somewhere?
		=20
		Thanks again
		Craig.
		=20

			-----Original Message-----
			From: Stepan Kafka [mailto:stepan.kafka at centrum.cz]=20
			Sent: 23 April 2004 10:26
			To: Gould,CR,Craig,XGH6A C; mapserver-users at lists.gis.umn.edu
			Subject: RE: [Mapserver-users] WMS Label Strangenss
		=09
		=09
			hmm, I should run, I don't know where is the mistake. When remove =
turn antialias false, everything goes well again?
			=20
			Stepan

				-----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 18:36
				Komu: mapserver-users at lists.gis.umn.edu
				P=F8edm=ECt: RE: [Mapserver-users] WMS Label Strangenss
			=09
			=09
				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_01C42938.337DF31B
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><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =

size=3D2>Stepan</FONT></SPAN></DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
tried changing the text colour to 1 0 0 ,instead of 0 0 0 and the =
problem=20
disappears.</FONT></SPAN></DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>The=20
text is now readable but interestingly still has a little shadow of =
whiteness on=20
the right hand side.</FONT></SPAN></DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>If I=20
try the ANTIALIAS FALSE I don't get the shadow but the text does not =
look as=20
good.</FONT></SPAN></DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>Using=20
the bitmap the text is perfect, except the font doesn't look very=20
good.</FONT></SPAN></DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>In=20
summary I think I'll use the ANTILALIAS FALSE option with the truetype =
font with=20
a colour of 1 1 1.</FONT></SPAN></DIV>
<DIV><SPAN class=3D968272613-23042004></SPAN><SPAN=20
class=3D968272613-23042004></SPAN><SPAN class=3D968272613-23042004><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>Many=20
thanks again for the replies, </FONT></SPAN></DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =

size=3D2>Craig.</FONT></SPAN></DIV>
<DIV><SPAN class=3D968272613-23042004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN> </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> 23 April 2004=20
  14:25<BR><B>To:</B> Gould,CR,Craig,XGH6A C; stepan.kafka at centrum.cz;=20
  mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> RE: =
[Mapserver-users] WMS=20
  Label Strangenss<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Craig,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>  mapserver as client processes WMS layer as other =
raster data. If=20
  the picture has transparent background, underlying data are seen=20
  too.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff size=3D2>When=20
  I am thinking about this, your problems may also be =
caused by=20
  background color and transparency colision in the picture. Please=20
  try:</FONT></SPAN></DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff size=3D2>1.=20
  temporarily change the text color - what is the =
result?</FONT></SPAN></DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff size=3D2>2.=20
  show the WMS maps in some DHTML client (maps are stacked at the client =
html=20
  page) e.g. <A=20
  =
href=3D"http://www.wmsviewer.com">www.wmsviewer.com</A></FONT></SPAN></DI=
V>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff size=3D2>Are=20
  your WMS maps seen from world? What is the address? I'd like to test=20
  them.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN> </DIV>
  <DIV><SPAN class=3D178081613-23042004><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Stepan</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
    <DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20
    size=3D2>-----P=F9vodn=ED zpr=E1va-----<BR><B>Od:</B> =
craig.gould at bt.com=20
    [mailto:craig.gould at bt.com]<BR><B>Odesl=E1no:</B> 23. dubna 2004=20
    14:45<BR><B>Komu:</B> stepan.kafka at centrum.cz;=20
    mapserver-users at lists.gis.umn.edu<BR><B>P=F8edm=ECt:</B> RE: =
[Mapserver-users]=20
    WMS Label Strangenss<BR><BR></FONT></DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>Thanks for the reply. </FONT></SPAN><SPAN=20
    class=3D156404509-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>The text=20
    returns when antialias false is turned off.</FONT></SPAN></DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2></FONT></SPAN> </DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>However, I don't really understand how this would make any=20
    difference.</FONT></SPAN></DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>The png file being created by the server has the text in, =
it's just=20
    when it's merged with the client </FONT></SPAN><SPAN=20
    class=3D156404509-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>map that the=20
    text dissappears (in the case of antialias false) or becomes fuzzy =
(in the=20
    case of antialias true).</FONT></SPAN></DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2></FONT></SPAN> </DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>Forgive my ignorance but how do the client and server =
images get=20
    merged? </FONT></SPAN></DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>Could the caause be in the merge =
somewhere?</FONT></SPAN></DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2></FONT></SPAN> </DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>Thanks again</FONT></SPAN></DIV>
    <DIV><SPAN class=3D156404509-23042004><FONT face=3DArial =
color=3D#0000ff=20
    size=3D2>Craig.</FONT></SPAN></DIV>
    <DIV><SPAN class=3D156404509-23042004></SPAN><SPAN=20
    class=3D156404509-23042004><FONT face=3DArial color=3D#0000ff=20
    size=3D2></FONT></SPAN> </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> 23 April 2004=20
      10:26<BR><B>To:</B> Gould,CR,Craig,XGH6A C;=20
      mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B> RE: =
[Mapserver-users]=20
      WMS Label Strangenss<BR><BR></FONT></DIV>
      <DIV><SPAN class=3D915442409-23042004><FONT face=3DArial =
color=3D#0000ff=20
      size=3D2>hmm, I should run, I don't know where is the mistake. =
When remove=20
      turn antialias false, everything goes well =
again?</FONT></SPAN></DIV>
      <DIV><SPAN class=3D915442409-23042004><FONT face=3DArial =
color=3D#0000ff=20
      size=3D2></FONT></SPAN> </DIV>
      <DIV><SPAN class=3D915442409-23042004><FONT face=3DArial =
color=3D#0000ff=20
      size=3D2>Stepan</FONT></SPAN></DIV>
      <BLOCKQUOTE dir=3Dltr=20
      style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff =
2px solid; MARGIN-RIGHT: 0px">
        <DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman" =

        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=20
        18:36<BR><B>Komu:</B>=20
        mapserver-users at lists.gis.umn.edu<BR><B>P=F8edm=ECt:</B> RE:=20
        [Mapserver-users] WMS Label Strangenss<BR><BR></FONT></DIV>
        <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=20
        class=3D171163516-22042004>The labels disappear completely when =
I use the=20
        ANTIALIAS FALSE 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=20
          Kafka [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:=20
          [Mapserver-users] WMS Label Strangenss<BR><BR></FONT></DIV>
          <DIV>
          <DIV><SPAN class=3D492331114-22042004><FONT face=3DArial><FONT =

          color=3D#0000ff><FONT size=3D2>Your layer <SPAN=20
          class=3D30021314-22042004>uses </SPAN>anti-aliased fonts (to =
be=20
          smoother)<SPAN class=3D30021314-22042004> as default =
option</SPAN>. Try=20
          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>=20
          <BR>       =20
                 =20
                  <FONT =
face=3D"Courier New"=20
          size=3D2>TYPE TRUETYPE</FONT>=20
          <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>=20
          <BR>       =20
                 =20
                  <FONT =
face=3D"Courier New"=20
          size=3D2>POSITION cc</FONT>=20
          <BR>       =20
                 =20
                  <FONT =
face=3D"Courier New"=20
          size=3D2>OFFSET 0 0</FONT></SPAN></DIV>
          <DIV><SPAN class=3D492331114-22042004><SPAN=20
          class=3D30021314-22042004><FONT 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=20
          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=20
            14:57<BR><B>Komu:</B>=20
            mapserver-users at lists.gis.umn.edu<BR><B>P=F8edm=ECt:</B>=20
            [Mapserver-users] WMS 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=20
            pretty new to this WMS stuff.</FONT> </P>
            <P><FONT face=3DArial size=3D2>I have some layer labels =
coming through a=20
            WMS server that when displayed on the client map lose their =
focus=20
            and become off colour and fuzzy. They are supposed to be =
black, but=20
            appear in the final image as a mix of grey/white/black. =
Hopefully my=20
            image attachments will appear on the list. If not then =
please mail=20
            me for them if you know anything about this.</FONT></P>
            <P><FONT face=3DArial size=3D2>The WMS server is passing an =
image that=20
            looks just as it should, e.g.</FONT> <BR><FONT face=3DArial=20
            color=3D#000000 =
size=3D2><<1082638016134960.png>>=20
</FONT></P>
            <P><FONT face=3DArial size=3D2>However, when this is placed =
on the=20
            client map the labels appear like this:</FONT> <BR><FONT =
face=3DArial=20
            color=3D#000000 =
size=3D2><<DEMO108263801613496.gif>>=20
            </FONT></P>
            <P><FONT face=3DArial size=3D2>Both maps are using the =
British National=20
            Grid projection epsg:27700.</FONT> </P>
            <P><FONT face=3DArial size=3D2>My client map layer looks =
like=20
            this:</FONT> </P>
            <P><FONT face=3D"Courier New" size=3D2>LAYER =
</FONT><BR><FONT=20
            face=3D"Courier New" size=3D2>    NAME =
OS</FONT>=20
            <BR><FONT face=3D"Courier New" size=3D2>    =
TYPE=20
            RASTER</FONT> <BR><FONT face=3D"Courier New" =
size=3D2>   =20
            OFFSITE 0 0 0</FONT> <BR><FONT face=3D"Courier New"=20
            size=3D2>    STATUS DEFAULT</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>MAXSCALE 50000</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>MINSCALE 0   =20
            </FONT><BR><FONT face=3D"Courier New" =
size=3D2>   =20
            CONNECTIONTYPE WMS</FONT> <BR><FONT face=3D"Courier New"=20
            size=3D2>    CONNECTION "</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=20
            face=3D"Courier New" size=3D2>      =
"wms_title"=20
            "OS"</FONT> <BR><FONT face=3D"Courier New"=20
            size=3D2>      "wms_name" =
"OS_Road"</FONT>=20
            <BR><FONT face=3D"Courier New" =
size=3D2>     =20
            "wms_server_version" "1.1.0"</FONT> <BR><FONT =
face=3D"Courier New"=20
            size=3D2>      "wms_srs" =
"epsg:27700"</FONT>=20
            <BR><FONT face=3D"Courier New" =
size=3D2>     =20
            "wms_format" "image/png"</FONT> <BR><FONT face=3D"Courier =
New"=20
            size=3D2>      "wms_map"=20
            "C:\Inetpub\WWWRoot\OSMapServer\OS.map"</FONT> <BR><FONT=20
            face=3D"Courier New" size=3D2>    END</FONT> =
<BR><FONT=20
            face=3D"Courier New" size=3D2>END</FONT> </P>
            <P><FONT face=3DArial size=3D2>[ For the sharp eyed among =
you, you may=20
            notice this is directed to an asp page. This redirects the =
request=20
            to the mapserv cgi-bin script with all the same parameters =
but=20
            without the epsg parameter as this is the only way I can get =
a=20
            client using projection 27700 and a server using the same =
projection=20
            to respond with a map. Mapserver crashes with a page fault=20
            otherwise! This is not restricted to just epsg 27700 - if =
the=20
            server/client has the same family of projection as 27700 =
this page=20
            fault will occurr. Not knowing enough about the projection =
code and=20
            being too dum to get it to compile on my own windoze machine =
I've=20
            failed to trace what's causing this problem ]</FONT></P><BR>
            <P><FONT face=3DArial size=3D2>My server map layer looks =
like=20
            this:</FONT> </P>
            <P><FONT face=3D"Courier New" size=3D2>LAYER</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>NAME   =20
                   =20
                    "OS_Text"</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>TYPE   =20
                   =20
                    POINT</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>CONNECTIONTYPE  =
OGR</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" =
size=3D2>CONNECTION     =20
                   =20
            "C:\OS_Maps\SO\SOText.Tab"</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>STATUS =20
                    DEFAULT</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New"=20
            size=3D2>MAXSCALE       =20
                    4000</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New"=20
            size=3D2>LABELITEM      =20
                    'Name'</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>METADATA</FONT>=20
            <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=20
            face=3D"Courier New" 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>=20
            <BR>       =20
                    <FONT =
face=3D"Courier New"=20
            size=3D2>COLOR 0 0 0</FONT>=20
            <BR>       =20
                    <FONT =
face=3D"Courier New"=20
            size=3D2>LABEL =20
            </FONT><BR>       =20
                   =20
                    <FONT =
face=3D"Courier New"=20
            size=3D2>FONT "arial"</FONT>=20
            <BR>       =20
                   =20
                    <FONT =
face=3D"Courier New"=20
            size=3D2>TYPE TRUETYPE</FONT>=20
            <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>=20
            <BR>       =20
                   =20
                    <FONT =
face=3D"Courier New"=20
            size=3D2>POSITION cc</FONT>=20
            <BR>       =20
                   =20
                    <FONT =
face=3D"Courier New"=20
            size=3D2>OFFSET 0 0</FONT>=20
            <BR>       =20
                    <FONT =
face=3D"Courier New"=20
            size=3D2>END</FONT> =
<BR>       =20
            <FONT face=3D"Courier New" size=3D2>END</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>PROJECTION</FONT>=20
            <BR>       =20
                    <FONT =
face=3D"Courier New"=20
            size=3D2>"init=3Depsg:27700"</FONT>=20
            <BR>        <FONT=20
            face=3D"Courier New" size=3D2>END </FONT><BR><FONT =
face=3D"Courier New"=20
            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=20
            Gould<BR>BT 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 office: 81 Newgate Street London EC1A=20
            7AJ<BR>Registered in England no. 1800000</FONT></B> =
</SPAN><BR><SPAN=20
            lang=3Den-gb><B><FONT face=3D"Times New Roman" size=3D2>This =
electronic=20
            message contains information from British Telecommunications =
plc=20
            which may be privileged and confidential. The information is =

            intended to be for the use of the individual(s) or entity =
named=20
            above. If you are not the intended recipient, be aware that =
any=20
            disclosure, copying, distribution or use of the contents of =
this=20
            information is prohibited. If you have received this =
electronic=20
            message in error, please notify us by telephone or email (to =
the=20
            number or address above) immediately.</FONT><FONT=20
            face=3D"Times New Roman"></FONT></B> </SPAN></P>
            <P><SPAN lang=3Den-gb><B><FONT face=3D"Times New Roman" =
size=3D2>Activity=20
            and use of the British Telecommunications plc email system =
is=20
            monitored to secure its effective operation and for other =
lawful=20
            business purposes. Communications using this system will =
also be=20
            monitored and may be recorded to secure effective operation =
and for=20
            other lawful business=20
        =
purposes</FONT></B></SPAN></P><BR></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE>=
</BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
=00
------_=_NextPart_001_01C42938.337DF31B--



More information about the MapServer-users mailing list