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

GRASS GIS trac at osgeo.org
Fri May 3 08:50:19 PDT 2013


#1747: v.rast.stats on dbf shapefile not enough precision even with DOUBLE
PRECISION
--------------------------+-------------------------------------------------
 Reporter:  vesnikos      |       Owner:  grass-dev@…              
     Type:  defect        |      Status:  new                      
 Priority:  normal        |   Milestone:  6.4.3                    
Component:  Vector        |     Version:  6.4.2                    
 Keywords:  v.rast.stats  |    Platform:  Linux                    
      Cpu:  x86-32        |  
--------------------------+-------------------------------------------------

Comment(by elcol):

 Replying to [comment:5 hamish]:
 > Replying to [comment:4 elcol]:
 > > I can confirm this bug. I also only get 2 decimals instead of double
 precision
 > > for column attributes, also when using v.db.select. I am using GRASS
 6.4.2
 >
 > is the database backend dbf?
 >
 > if so, can you look at it with a utility like 'dbview' or
 {Open|Libre}Office Calc and inspect the data values in it? Perhaps the raw
 data is that way and v.db.* is just rounding off the .000000000s
 >
 >
 > Hamish

 I'm using the default dbf backend. I've just checked the .dbf file with
 LibreOffice, and all data has only 2 decimals in the actual file too.

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



More information about the grass-dev mailing list