[GRASS-dev] Re: [GRASS GIS] #792: dbf driver: wrong column data type
GRASS GIS
trac at osgeo.org
Mon Oct 19 02:33:43 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
Resolution: | Keywords: data type
Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by martinl):
Replying to [comment:6 hamish]:
> Replying to [comment:5 hamish]:
> > could you post here which DBF from the nc_ dataset you are using for
tests?
{{{
> $ dbview -e grassdata/nc_spm_08/PERMANENT/dbf/geology.dbf | head
>
> Field Name Type Length Decimal Pos
> cat N 11 0
> onemap pro N 20 6
> Perimeter N 20 6
> Geol250 N 11 0
> Geol250 id N 11 0
> Geo name C 6 0
> Shape area N 20 6
> Shape len N 20 6
}}}
Problem are not the data, but the bug in OGR. If you use OGR for reading
dbf, 'cat' is detected as 'double precision', same for PostGIS layer
connected by OGR driver, etc.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/792#comment:8>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list