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

Lars V. Nielsen LVN at hvm.dk
Mon Jan 26 10:08:08 EST 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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've stumbled on a problem in Mapserver =
4.0=20
that&nbsp;has me puzzled.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have a number of point layers in my =
map that=20
utilizes&nbsp;TrueType font symbols. When displayed by themselves they =
display=20
perfectly.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Sample from my MAP file:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp; ...<BR>&nbsp; Type =
POINT<BR>&nbsp;=20
CLASS<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
SYMBOL=20
"MapInfo Symbols_37"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE=20
16<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<BR>&nbsp;&nbsp;&nbsp; =

END<BR>&nbsp;&nbsp;&nbsp; TEMPLATE void<BR>&nbsp;=20
END<BR>END<BR>...<BR>SYMBOL<BR>&nbsp; NAME "MapInfo =
Symbols_37"<BR>&nbsp; TYPE=20
TRUETYPE<BR>&nbsp; FONT "mapinfo-symbols-unicode"<BR>&nbsp; FILLED=20
true<BR>&nbsp; ANTIALIAS true<BR>&nbsp; CHARACTER=20
"&amp;#37;"<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards / Med venlig =
hilsen<BR>Lars V.=20
Nielsen<BR>--------------------------------------------------------<BR>Hv=
enegaard=20
&amp; 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