[QGIS-Developer] Default QgsFeatureFid ?
Greg Troxel
gdt at lexort.com
Fri Oct 15 10:41:59 PDT 2021
Sandro Santilli <strk at kbt.io> writes:
> On Fri, Oct 15, 2021 at 08:12:07AM -0400, Greg Troxel wrote:
>
>> There's a larger question lurking behind that, which is something about
>> if tables in SQL can have NULL values and how that NULL is mapped into
>> qgis's main internal representation and then back out to various
>> formats. (I know there's a great CJ Date rant about NULL not belonging
>> in SQL and how it is a symptom of denormalized data, but it is how it is
>> these days.)
>
> I don't think QGIS needs to support "null" values for feature id.
> Features *need* to have an not-null identifier.
Sounds perfectly reasonable, but in that case I would expect that it is
a non-optional argument to a constructor, and there should not be a way
to have a default value.
There might also be a non-duplicate integrity constraint.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20211015/59e58869/attachment.sig>
More information about the QGIS-Developer
mailing list