[Mapserver-users] Labels with strange AUTO angles

Brent Fraser bfraser at geoanalytic.com
Tue Mar 4 16:58:20 EST 2003


Ed,

  I don't think too many people are using Mapserver 3.7 with GD2-FT2.  A few
of us are, and have reported the label angle problem. See
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=268

The angle seems to be mirrored about the X-axis when angles are 0-45
degrees, and the Y-axis for 45-90 degrees (could be a tan/atan problem?).  I
don't know if this is a problem in Mapserver, GD or Freetype, or a
combination.

  Personally I think this is a show-stopper for the 3.7 release.  Is anybody
willing to debug this problem?

Brent Fraser
bfraser at geoanalytic.com


----- Original Message -----
From: "Ed McNierney" <ed at topozone.com>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, March 04, 2003 2:08 PM
Subject: [Mapserver-users] Labels with strange AUTO angles


I'm having more label problems.  I can't believe I'm the only one seeing
this, so I thought I'd ask <g>.

Attached is a map with very strange label angles.  The brown line is the
railroad that goes with the "Boston and Maine Railroad" label, and the
stream labels are equally screwy.

These are all linear shapefiles (polylines) with ANGLE AUTO labels.  I'm
using the current CVS code (as of this morning) with GD 2.0.11 and FreeType
2.1.2, running on Windows.  I've walked through the code and I don't quite
understand the numbers msPolylineLabelPoint is calculating for angles; but
if it's really doing them incorrectly I'd expect lots of people to notice.

If this rings a bell, let me know - thanks.

- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242





More information about the mapserver-users mailing list