[fusion-trac] #8: Scale returned could be rounded

Fusion trac_fusion at osgeo.org
Fri Mar 7 11:18:11 EST 2008


#8: Scale returned could be rounded
-------------------------+--------------------------------------------------
 Reporter:  jfournier    |         Owner:  madair
     Type:  enhancement  |        Status:  new   
 Priority:  P2           |     Milestone:  1.0.3 
Component:  Widgets      |       Version:  1.0.2 
 Severity:  Minor        |    Resolution:        
 Keywords:               |   External_id:        
    State:  New          |       Browser:  All   
       Os:  All          |  
-------------------------+--------------------------------------------------
Comment (by pagameba):

 The previously applied patch was r1205.  This patch is incorrect because
 it is valid for scales to have fractional values, so just rounding the
 scale is not a good idea.

 The legend requests legend icon urls by scale range and the fractional
 value is causing the request to lie just outside of the valid range in
 this specific case.  The code that determines if a scale value is in a
 scale range should be modified to relax the test by either converting the
 scale to a specific precision based on the size of the number or to
 compare numbers within a certain tolerance.  !OpenLayers has a function
 for comparing within a tolerance I believe.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/8#comment:1>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer, MapGuide OS, and MapGuide Enterprise built primarily in JavaScript.


More information about the fusion-trac mailing list