[gdal-dev] dbf data types

Martin Landa landa.martin at gmail.com
Sun Jun 14 02:30:51 PDT 2015


Hi all,

recently I was converting dbf files [1] to PostgreSQL database. Some
fields are recognized as characters even they contain numeric types,
eg.

ogrinfo OBCE.DBF OBCE -so
INFO: Open of `OBCE.DBF'
      using driver `ESRI Shapefile' successful.

Layer name: OBCE
ICOB: String (6.0)

ICOB is ID of a city, OGR driver defines this attribute as character.
I tried ADJUST_TYPE option, but it didn't make difference.

Thanks in advance for any hint, Martin

[1] http://geo102.fsv.cvut.cz/~landa/tmp/OBCE.DBF

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the gdal-dev mailing list