[Qgis-developer] QgsField::length semantic

Even Rouault even.rouault at spatialys.com
Tue Oct 11 03:28:11 PDT 2016


Le mardi 11 octobre 2016 12:21:31, Sandro Santilli a écrit :
> On Tue, Oct 11, 2016 at 12:11:06PM +0200, Even Rouault wrote:
> > > According to this:
> > > http://devzone.advantagedatabase.com/dz/webhelp/advantage9.0/server1/db
> > > f_fi eld_types_and_specifications.htm
> > > 
> > > A DBF field with extended data type "double" does not affect the
> > > precision of the stored data, and the length information is simply
> > > ignored.
> > 
> > I had never seen such "double" type in use in .dbf, and it is certainly
> > not handled by shapelib/OGR, and I have never seen reports that other
> > shapefile producing software generate such field types. Might be a
> > "Visual FoxPro" specific thing.
> 
> So what are those OFTReal types coming from ?

From DBF 'N'umeric or 'F'loat fields :
https://github.com/OSGeo/gdal/blob/trunk/gdal/ogr/ogrsf_frmts/shape/dbfopen.c#L1273

which are mapped to Shapelib FTDouble which is then mapped to OGR OFTReal

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the Qgis-developer mailing list