[QGIS-trac] Re: [Quantum GIS] #3643: wrong direction of label direction symbol

Quantum GIS qgis at qgis.org
Tue Mar 29 09:26:17 EDT 2011


#3643: wrong direction of label direction symbol
-----------------------------------------------------+----------------------
        Reporter:  strk                              |         Owner:  mhugent      
            Type:  bug                               |        Status:  reopened     
        Priority:  major: does not work as expected  |     Milestone:  Version 1.7.0
       Component:  Symbology                         |       Version:  Trunk        
      Resolution:                                    |      Keywords:  label        
Platform_version:                                    |      Platform:  Debian       
        Must_fix:  No                                |   Status_info:  0            
-----------------------------------------------------+----------------------

Comment(by strk):

 Even smaller is just moving re-adding the equal sign but to the right
 part:

 {{{
 -          reversed = ( alpha > M_PI / 2 || alpha < -M_PI / 2 );
 +          reversed = ( alpha > M_PI / 2 || alpha <= -M_PI / 2 );
 }}}

 Works fine in my case, altought the equality comparison between the return
 from atan2 and M_PI/2 looks scary (miracles!)

 This final version seems to be the closest to the original code, where the
 equal sign was in the first rather than second side of ||.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3643#comment:9>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list