[Mapserver-users] WMS Label Strangenss

Stepan Kafka stepan.kafka at centrum.cz
Fri Apr 23 02:26:29 PDT 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0027_01C42925.D2925270
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: 8bit

Messagehmm, I should run, I don't know where is the mistake. When remove
turn antialias false, everything goes well again?

Stepan
  -----Pùvodní 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 18:36
  Komu: mapserver-users at lists.gis.umn.edu
  Pøedmìt: RE: [Mapserver-users] WMS Label Strangenss


  Stepan,
  The labels disappear completely when I use the ANTIALIAS FALSE option
  Craig.
    -----Original Message-----
    From: Stepan Kafka [mailto:stepan.kafka at centrum.cz]
    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


    Your 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


      -----Pùvodní 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
      Pøedmìt: [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_0027_01C42925.D2925270
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.1106" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D915442409-23042004><FONT face=3DArial color=3D#0000ff =
size=3D2>hmm, I=20
should run, I don't know where is the mistake. When remove turn =
antialias false,=20
everything goes well again?</FONT></SPAN></DIV>
<DIV><SPAN class=3D915442409-23042004><FONT face=3DArial color=3D#0000ff =

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

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>=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 =
18:36<BR><B>Komu:</B>=20
  mapserver-users at lists.gis.umn.edu<BR><B>P=F8edm=ECt:</B> RE: =
[Mapserver-users] WMS=20
  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 =
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]=20
    WMS Label Strangenss<BR><BR></FONT></DIV>
    <DIV>
    <DIV><SPAN class=3D492331114-22042004><FONT face=3DArial><FONT=20
    color=3D#0000ff><FONT size=3D2>Your layer <SPAN=20
    class=3D30021314-22042004>uses </SPAN>anti-aliased fonts (to be =
smoother)<SPAN=20
    class=3D30021314-22042004> as default option</SPAN>. Try set =
ANTIALIAS FALSE=20
    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
           =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=20
      14:57<BR><B>Komu:</B> =
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 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=20
      off colour and fuzzy. They are supposed to be black, but appear in =
the=20
      final image as a mix of grey/white/black. Hopefully my image =
attachments=20
      will appear on the list. If not then please mail me for them if =
you know=20
      anything 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>=20
</P>
      <P><FONT face=3D"Courier New" size=3D2>LAYER </FONT><BR><FONT=20
      face=3D"Courier New" size=3D2>    NAME OS</FONT> =
<BR><FONT=20
      face=3D"Courier New" size=3D2>    TYPE =
RASTER</FONT> <BR><FONT=20
      face=3D"Courier New" size=3D2>    OFFSITE 0 0 =
0</FONT>=20
      <BR><FONT face=3D"Courier New" size=3D2>    STATUS=20
      DEFAULT</FONT> <BR>        =
<FONT=20
      face=3D"Courier New" size=3D2>MAXSCALE 50000</FONT>=20
      <BR>        <FONT =
face=3D"Courier New"=20
      size=3D2>MINSCALE 0    </FONT><BR><FONT =
face=3D"Courier New"=20
      size=3D2>    CONNECTIONTYPE WMS</FONT> <BR><FONT=20
      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>     =20
      "wms_srs" "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>     =20
      "wms_map" "C:\Inetpub\WWWRoot\OSMapServer\OS.map"</FONT> <BR><FONT =

      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 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 -=20
      if the server/client has the same family of projection as 27700 =
this page=20
      fault will occurr. Not knowing enough about the projection code =
and being=20
      too dum to get it to compile on my own windoze machine I've failed =
to=20
      trace what's causing this problem ]</FONT></P><BR>
      <P><FONT face=3DArial size=3D2>My server map layer looks like =
this:</FONT>=20
</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
             =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"=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=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> =
<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=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=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 =

      individual(s) or entity named above. If you are not the intended=20
      recipient, be aware that any disclosure, copying, distribution or =
use of=20
      the contents of this information is prohibited. If you have =
received this=20
      electronic message in error, please notify us by telephone or =
email (to=20
      the 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 and=20
      use of the British Telecommunications plc email system is =
monitored to=20
      secure its effective operation and for other lawful business =
purposes.=20
      Communications 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></BLOCKQUOTE></BLOCKQUOTE>=
</BODY></HTML>

------=_NextPart_000_0027_01C42925.D2925270--




More information about the MapServer-users mailing list