[GRASS-dev] Re: [GRASS GIS] #335: export floats and doubles with correct precision

GRASS GIS trac at osgeo.org
Thu Jan 27 16:47:46 EST 2011


#335: export floats and doubles with correct precision
-----------------------+----------------------------------------------------
 Reporter:  hamish     |       Owner:  grass-dev@…              
     Type:  task       |      Status:  new                      
 Priority:  critical   |   Milestone:  6.4.1                    
Component:  Default    |     Version:  svn-develbranch6         
 Keywords:  precision  |    Platform:  All                      
      Cpu:  All        |  
-----------------------+----------------------------------------------------

Comment(by hamish):

 with respect to raster/r.stats/raw_stats.c (and so r.out.xyz), the
 _is_fp() array-filling in main.c needs to be changed to fill the array
 with the map type, instead of just categorical or FP. The array is already
 type int, so this shouldn't be too hard. Then raw_stats.c can output %.7g
 or %.15g depending on FCELL or DCELL (see r.info), instead of the current
 %.10f for all.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/335#comment:14>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list