QGIS-Documentation icon indicating copy to clipboard operation
QGIS-Documentation copied to clipboard

Duplicate policy on QgsFields when duplicate features (Request in QGIS)

Open qgis-bot opened this issue 1 year ago • 1 comments
trafficstars

Request for documentation

From pull request qgis/QGIS#57217 Author: @signedav QGIS version: 3.38

Duplicate policy on QgsFields when duplicate features

PR Description:

Description

On duplicating a feature (and it's children) the duplicate policy will be concerned for fields. There are three options:

Screenshot from 2024-04-22 11-38-37

Default is "Duplicate Value".

A good use case where this is useful is on a timestamp as default value, when this feature has been created (means duplicated).

Technical info

This functionality is implemented the same way than the split policy, although the split policy is based on the policy of the field domain (if available) what means it concerns the OGRFieldDomainSplitPolicy. This is not part of the duplicate policy. The duplicate policy only concerns the QgsFields and is configured over the attribute form properties.

~Still I named the enum FieldDomainDuplicatePolicy - because maybe one time the OGR api offers this policy as well and with this we can use it the same way.~

That's why it's named FieldDuplicatePolicy.

Commits tagged with [need-docs] or [FEATURE]

qgis-bot avatar May 08 '24 17:05 qgis-bot

Technical info is not relevant for the documentation...

signedav avatar May 08 '24 18:05 signedav