[Qgis-developer] QgsField::length semantic

Jürgen E. Fischer jef at norbit.de
Tue Oct 11 02:42:12 PDT 2016


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.

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

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden             http://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode                         
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20161011/c64375b5/attachment-0001.sig>


More information about the Qgis-developer mailing list