[Qgis-developer] QgsField::length semantic

Even Rouault even.rouault at spatialys.com
Tue Oct 11 02:53:27 PDT 2016


Le mardi 11 octobre 2016 11:42:12, Jürgen E. Fischer a écrit :
> On Tue, 11. Oct 2016 at 10:45:18 +0200, Sandro Santilli wrote:
> > Chasing a regression bug upon importing shapefile to postgresql [1]
> > I've stumbled upon an unclear semantic of the "length" member of
> > QgsField class [2].
> 
> Hm, I though that was following database semantics - at least that's what I
> recall - maybe it was changed.
> 
> Not sure OGR has a general semantic of it's own, maybe it follows the data
> source and those are inconsistent.

More or less. My analysis of the OGR situation at:
http://hub.qgis.org/issues/15188#note-8

> 
> For what I know in shapes and postgres the semantics is different as the
> decimal separator is considered part of the precision in one, but not the
> other.
> 
> 
> Jürgen

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


More information about the Qgis-developer mailing list