Ticket #809 (closed defect: duplicate)
shape driver no longer recognizes INT columns in DBF file?
|Reported by:||neteler||Owned by:||warmerdam|
Description (last modified by warmerdam) (diff)
Frank, I have updated the dbf driver in GRASS 6.1-CVS to the 1.2.6 version (dbfopen.c, shpopen.c shapefil.h). Now I face the problem that the 'cat' (GRASS ID) column is no longer detected as INT but as FLOAT. Further testing showed that it seems to be a new bug (?) in OGR: ogrinfo -al -summary ~/grassdata/pat/neteler/dbf/mygrafo_bclosed.dbf ERROR 4: Unable to open /home/neteler/grassdata/pat/neteler/dbf/mygrafo_bclosed.shp or /home/neteler/grassdata/pat/neteler/dbf/mygrafo_bclosed.SHP. INFO: Open of `/home/neteler/grassdata/pat/neteler/dbf/mygrafo_bclosed.dbf' using driver `ESRI Shapefile' successful. Layer name: mygrafo_bclosed Geometry: None Feature Count: 3 Layer SRS WKT: (unknown) cat: Real (11.0) cat2: Real (11.0) label: String (80.0) forward: Real (20.6) backward: Real (20.6) length: Real (20.6) I have an old statically compiled dbfinfo here which reports correctly dbfinfo ~/grassdata/pat/neteler/dbf/mygrafo_bclosed.dbf Info for /home/neteler/grassdata/pat/neteler/dbf/mygrafo_bclosed.dbf 6 Columns, 3 Records in file cat integer (11,0) cat2 integer (11,0) label string (80,0) forward float (20,6) backward float (20,6) length float (20,6) I don't know currently how to fix that (go back to GDAL 1.1.x is not what I want to do). Hopefully you have a suggestion, thanks Markus
Note: See TracTickets for help on using tickets.