upside down labels

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Sat Mar 19 11:38:24 EST 2005


Regardless of the reason (forced or not) the math that computed the
angle and tries to keep the label right side up is flawed and needs to
be fixed. For any of the upside down labels you could flip them 180
degrees and they would fit in the same space.

On 4.01, I was the only person that reported and complained about it,
but it now seems to be a much more common problem. Maps with upside down
labels do not show mapserver off in its best light. Also the code should
be pretty localized so knowing where to look should not be a problem.

As for localizing a trivial example, that is harder. I'm not sure how to
  identify just the objects required to render a map with the problem
and to extract them into a small set of data files.

-Steve

blaise wrote:
> Le samedi 19 Mars 2005 07:10, John Hagstrand a écrit :
>
>>Hi Andy,
>>
>>To answer your question, this is the label statement.
>>
>>      LABEL
>>        PARTIALS FALSE
>>        TYPE TRUETYPE
>>        FONT ARIAL
>>        COLOR 0 0 0
>>        SIZE 7
>>        ANGLE AUTO
>>        POSITION AUTO
>>        MINDISTANCE 300
>>      END
>>
>>And here is the URL again.
>>
>>http://www.westportnow.com/realestate/map.php?irn=41.134325436851&irs=41.11
>>9548563149&ire=-73.309842191861&irw=-73.324483808139&iract=zoomout&irsacct=1
>>0283
>>
>>For this URL, with these explicit boundaries, the same 5 out of 48 labels
>>are always upside down.
>>
>>But, if you pan to the left a quarter-inch, then some of these 5 might be
>>right-side up and a different set of labels will be upside down.
>>
>>John
>
>
> hi
> It seems that the labels that are upside down are this way to avoid collision
> with other ? I understand you don't want to force all labels to draw... but
> can you try to see if forced labels are upside down as well ?
> blaise
>



More information about the mapserver-users mailing list