[GRASS-dev] [GRASS GIS] #1747: v.rast.stats on dbf shapefile not enough precision even with DOUBLE PRECISION

GRASS GIS trac at osgeo.org
Wed May 14 16:04:37 PDT 2014


#1747: v.rast.stats on dbf shapefile not enough precision even with DOUBLE
PRECISION
-----------------------+----------------------------------------------------
  Reporter:  vesnikos  |       Owner:  grass-dev@…              
      Type:  defect    |      Status:  closed                   
  Priority:  normal    |   Milestone:  6.4.4                    
 Component:  Vector    |     Version:  6.4.2                    
Resolution:  fixed     |    Keywords:  v.rast.stats             
  Platform:  Linux     |         Cpu:  x86-32                   
-----------------------+----------------------------------------------------
Changes (by neteler):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 In r57560 it got already changed to %.15g, so that looks like solved.

 Test case (long line broken by me for trac formatting):
 {{{
 v.db.connect mysoils_wake -p
 g.copy vect=soils_wake,mysoils_wake
 v.rast.stats vector=mysoils_wake raster=slope colprefix=slope
 v.db.select mysoils_wake
 ...
 3364|120028|1653.86|35468|34409|Co|B|34|0.142551511526108|2.868412733078|
   2.7258612215519|1.10701639950275|0.692389694214987|0.479403488655124|
   62.5455679361202|37.6385575830936
 ...

 d.mon x0
 d.rast slope
 d.vect type=boundary
 }}}

 To speed v.rast.stats up I added DB TRANSACTION in r60243, r60244.

 Closing as solved.

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



More information about the grass-dev mailing list