[GRASS-dev] [GRASS GIS] #792: dbf driver: wrong column data type
GRASS GIS
trac at osgeo.org
Sun Oct 18 08:35:47 EDT 2009
#792: dbf driver: wrong column data type
-------------------------+--------------------------------------------------
Reporter: martinl | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Database | Version: svn-trunk
Keywords: data type | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
DBF driver in GRASS 7 reports 'double' even if decimals is zero, e.g.
{{{
D2/5: DBFFieldType 2
D3/5: add_column(): tab = 2, type = 3, name = cat, width = 11, decimals =
0
}}}
{{{
DOUBLE PRECISION|cat
}}}
Attached patch forces 'integer' if 'double' with decimal = 0 is detected.
I am not sure if it's right approach.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/792>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list