[Mapserver-users] Labels with strange AUTO angles

Steve Lime steve.lime at dnr.state.mn.us
Tue Mar 4 17:41:43 PST 2003


Except that the angle and placement code was *very* responsive to gd-1.x
and freetype 1.x. It was written to fit those libraries. There may well
be problems with the code. Gd 2.x and freetype 2.x are where we want to
be. I'd really like to loose support for the 1.x libs anyway. Let me
know what you find. A robust test dataset would really help.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> "Ed McNierney" <ed at topozone.com> 03/04/03 17:39 PM >>>
Yes, it's not new code.  That's what makes me think I'm not yet looking
in the right place.

	- Ed

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



-----Original Message-----
From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] 
Sent: Tuesday, March 04, 2003 6:09 PM
To: bfraser at geoanalytic.com; mapserver-users at lists.gis.umn.edu; Ed
McNierney
Subject: RE: [Mapserver-users] Labels with strange AUTO angles

Funny since that code hasn't been changed in years (not by me anyway).

>>> "Ed McNierney" <ed at topozone.com> 03/04/03 04:26PM >>>
Brent, Steve -

I had to leave the office before double-checking my math, but the
angle
calculation (for the single string I was running through the debugger)
seemed to have a sign reversal.

Yes, I think this is a very serious bug.  I will do some more problem
isolation and post a good test case.

	- Ed

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


-----Original Message-----
From: Brent Fraser [mailto:bfraser at geoanalytic.com] 
Sent: Tuesday, March 04, 2003 4:58 PM
To: Ed McNierney; mapserver-users at lists.gis.umn.edu 
Subject: Re: [Mapserver-users] Labels with strange AUTO angles

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



_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list