[mapserver-users] mapserver POSITION question
snaperski at gmail.com
Tue Jun 16 02:45:09 EDT 2009
still having some problems.
I added some lines in mapfile to draw polyline vertices as blue boxes
and starting points as red boxes.
And changed to ANGLE FOLLOW, the result could be seen here:
Many labels wont show up (I checked shapefile also, and label
attribute was filled in those places),
tried to go MINDISTANCE 5, but no change, even FORCE TRUE did'nt
changed the output.
Just a little sad,
On Tue, Jun 16, 2009 at 9:22 AM, Raivo Alla<snaperski at gmail.com> wrote:
> Thank you for advice!
> I will try this as soon as possible..
> On Mon, Jun 15, 2009 at 5:31 PM, Daniel
> Morissette<dmorissette at mapgears.com> wrote:
>> Raivo Alla wrote:
>>> As it could be seen on the picture
>>> street labels are strangely positioned in different ways.
>>> I want labels only when they have enough space to fit in
>>> (MINFEATURESIZE AUTO) and I want them
>>> centered. As it appears, sometimes they are aligned left, sometimes
>>> right, only lucky ones at the center.
>>> Those red boxes are to visualize vertex points.
>> You are using "ANGLE AUTO" in your label definition. In this case, MapServer
>> places the label at the center of the longest segment of the polyline that
>> define the street, and follows the angle of that segment.
>> If you use ANGLE FOLLOW then the label will be placed at the center of the
>> polyline itself (i.e. at total_length/2)... that should give the results
>> that you expect.
>> Daniel Morissette
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
More information about the mapserver-users