[Mapserver-users] WMS Label Strangenss

Stepan Kafka stepan.kafka at centrum.cz
Thu Apr 22 07:16:23 PDT 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0034_01C42885.27833C50
Content-Type: text/plain;
	charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit

WMS Label StrangenssYour layer uses anti-aliased fonts (to be smoother) as
default option. Try set ANTIALIAS FALSE in the LABEL object:

                LABEL
                        FONT "arial"
                        TYPE TRUETYPE
                        SIZE 10
                        COLOR 0 0 0
                        POSITION cc
                        OFFSET 0 0
            ANTIALIAS FALSE
                END

Stepan Kafka
Help Service Remote Sensing
tel: +420-327514118
mailto:kafka at email.cz
ICQ: 294002967
http://www.bnhelp.cz


  -----Puvodní zpráva-----
  Od: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]za uživatele
craig.gould at bt.com
  Odesláno: 22. dubna 2004 14:57
  Komu: mapserver-users at lists.gis.umn.edu
  Predmet: [Mapserver-users] WMS Label Strangenss


  Folks,

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

  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.
  <<1082638016134960.png>>

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

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

  My client map layer looks like this:

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

  [ 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:

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



  Many thanks
  Craig.





  Craig Gould
  BT Exact
  __________________________________________
  British Telecommunications plc
  Registered office: 81 Newgate Street London EC1A 7AJ
  Registered in England no. 1800000
  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.

  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_000_0034_01C42885.27833C50
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><TITLE>WMS Label Strangenss</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY>
<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 =

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" =
size=3D2>FONT=20
"arial"</FONT> <BR>       =20
       =20
        <FONT face=3D"Courier New" =
size=3D2>TYPE=20
TRUETYPE</FONT> <BR>       =20
       =20
        <FONT face=3D"Courier New" =
size=3D2>SIZE=20
10</FONT> <BR>       =20
       =20
        <FONT face=3D"Courier New" =
size=3D2>COLOR=20
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ůvodn=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=9Eivatele</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ředmět:</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 new=20
  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 image=20
  as a mix of grey/white/black. Hopefully my image attachments will =
appear on=20
  the list. If not then please mail me for them if you know anything =
about=20
  this.</FONT></P>
  <P><FONT face=3DArial size=3D2>The WMS server is passing an image that =
looks just=20
  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 the=20
  labels appear like this:</FONT> <BR><FONT face=3DArial color=3D#000000 =

  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    =
</FONT><BR><FONT=20
  face=3D"Courier New" size=3D2>    CONNECTIONTYPE =
WMS</FONT>=20
  <BR><FONT face=3D"Courier New" 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 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 this=20
  is directed to an asp page. This redirects the request to the mapserv =
cgi-bin=20
  script with all the same parameters but without the epsg parameter as =
this is=20
  the only way I can get a client using projection 27700 and a server =
using the=20
  same projection to respond with a map. Mapserver crashes with a page =
fault=20
  otherwise! This is not restricted to just epsg 27700 - if the =
server/client=20
  has the same family of projection as 27700 this page fault will =
occurr. Not=20
  knowing enough about the projection code and being too dum to get it =
to=20
  compile on my own windoze machine I've failed to trace what's causing =
this=20
  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          =
DEFAULT</FONT>=20
  <BR>        <FONT face=3D"Courier =
New"=20
  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 =
face=3D"Courier New"=20
  size=3D2>CLASS</FONT> <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
          <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> =
<BR>       =20
  <FONT 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 =
Gould<BR>BT=20
  Exact<BR></FONT></B><FONT face=3D"Times New Roman"=20
  size=3D2>__________________________________________<BR></FONT><B><FONT =

  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. =

  1800000</FONT></B> </SPAN><BR><SPAN lang=3Den-gb><B><FONT =
face=3D"Times New Roman"=20
  size=3D2>This electronic message contains information from British=20
  Telecommunications plc which may be privileged and confidential. The=20
  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 =
disclosure,=20
  copying, distribution or use of the contents of this information is=20
  prohibited. If you have received this electronic message in error, =
please=20
  notify us by telephone or email (to the number or address above)=20
  immediately.</FONT><FONT face=3D"Times New Roman"></FONT></B> =
</SPAN></P>
  <P><SPAN lang=3Den-gb><B><FONT face=3D"Times New Roman" =
size=3D2>Activity and use of=20
  the British Telecommunications plc email system is monitored to secure =
its=20
  effective operation and for other lawful business purposes. =
Communications=20
  using this system will also be monitored and may be recorded to secure =

  effective operation and for other lawful business=20
  purposes</FONT></B></SPAN></P><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0034_01C42885.27833C50--




More information about the MapServer-users mailing list