[Mapserver-users] Polygon layer disrupt display of TTF based symbols ?

Lars V. Nielsen LVN at hvm.dk
Mon Jan 26 07:08:08 PST 2004


This is a multi-part message in MIME format.

------=_NextPart_000_001A_01C3E426.96D94F20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

I've stumbled on a problem in Mapserver 4.0 that has me puzzled.

I have a number of point layers in my map that utilizes TrueType font =
symbols. When displayed by themselves they display perfectly.

But as soon as I turn on _any_ polygon layer, the symbols disappear, and =
colored rectangles replace them.

Pixmap symbols are not affected, only TrueType symbols are.
Turning on Raster, WMS or LINE layers doesn't seem to influence the =
symbol display at all.

Using Mapserver (Mapscript) 4.0 on Windows 2000 running PHP 4.3.2
Layers are displayed using a CLASS/STYLE definition.
Polygon layers use the TRANSPARENCY setting (if it matters).
Output is JPEG to facilitate an orthophoto backdrop.

Has anyone got a clue to what's happening, and even better, how to =
remedy this behaviour ?

Sample from my MAP file:

LAYER
  ...
  Type POINT
  CLASS
    STYLE
      SYMBOL "MapInfo Symbols_37"
      SIZE 16
      COLOR 255 0 0
    END
    TEMPLATE void
  END
END
...
SYMBOL
  NAME "MapInfo Symbols_37"
  TYPE TRUETYPE
  FONT "mapinfo-symbols-unicode"
  FILLED true
  ANTIALIAS true
  CHARACTER "%"
END

Best regards / Med venlig hilsen
Lars V. Nielsen
--------------------------------------------------------
Hvenegaard & Meklenborg
Rugaardsvej 55, DK-5000 Odense C
Denmark
http://www.hvm.dk
------=_NextPart_000_001A_01C3E426.96D94F20
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I've stumbled on a problem in Mapserver =
4.0=20
that has me puzzled.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have a number of point layers in my =
map that=20
utilizes TrueType font symbols. When displayed by themselves they =
display=20
perfectly.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>But as soon as I turn on _any_ polygon =
layer, the=20
symbols disappear, and colored rectangles replace them.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Pixmap symbols are not affected, only =
TrueType=20
symbols are.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Turning on Raster, WMS or LINE layers =
doesn't seem=20
to influence the symbol display at all.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Using Mapserver (Mapscript) 4.0 on =
Windows 2000=20
running PHP 4.3.2</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Layers are displayed using a =
CLASS/STYLE=20
definition.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Polygon layers use the TRANSPARENCY =
setting (if it=20
matters).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Output is JPEG to facilitate an =
orthophoto=20
backdrop.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Has anyone got a clue to what's =
happening, and even=20
better, how to remedy this behaviour ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Sample from my MAP file:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>  ...<BR>  Type =
POINT<BR> =20
CLASS<BR>    STYLE<BR>      =
SYMBOL=20
"MapInfo Symbols_37"<BR>      SIZE=20
16<BR>      COLOR 255 0 0<BR>    =

END<BR>    TEMPLATE void<BR> =20
END<BR>END<BR>...<BR>SYMBOL<BR>  NAME "MapInfo =
Symbols_37"<BR>  TYPE=20
TRUETYPE<BR>  FONT "mapinfo-symbols-unicode"<BR>  FILLED=20
true<BR>  ANTIALIAS true<BR>  CHARACTER=20
"&#37;"<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Best regards / Med venlig =
hilsen<BR>Lars V.=20
Nielsen<BR>--------------------------------------------------------<BR>Hv=
enegaard=20
& Meklenborg<BR>Rugaardsvej 55, DK-5000 Odense C<BR>Denmark<BR><A=20
href=3D"http://www.hvm.dk">http://www.hvm.dk</A></FONT></DIV></BODY></HTM=
L>

------=_NextPart_000_001A_01C3E426.96D94F20--




More information about the MapServer-users mailing list