If you are storing the data in PostGIS, you could possibly take advantage of
ST_Azimuth(). http://www.postgis.org/docs/ST_Azimuth.html
It takes two point objects as the args, but you could potentially use the start
and end points of your linestring.
David.
From: mapserver-users-boun...@lists.
Going a step further:
st_longestline(st_collect(the_geom),st_collect(the_geom))
gives the longest line segment that can be drawn within the cluster of
street address points. Works for non-curved streets. I'm still looking
for a more intelligent way to thin out a polygon to a (multi)line.
Jan
rendering time.
David.
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jan Hartmann
Sent: Tuesday, February 21, 2012 11:18 AM
To: Fawcett, David (MPCA)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Aligning labels