Delete comment

This commit is contained in:
Alireza Adli 2024-03-12 12:21:57 -04:00
parent 77ea20260f
commit 0082c8c9e7

View File

@ -9,6 +9,6 @@ layer = QgsVectorLayer(
functionalities = layer.dataProvider().capabilities()
if functionalities & QgsVectorDataProvider.AddAttributes:
new_field = QgsField("Area", QVariant.Double) # Using QVariant.Double for area
new_field = QgsField("Area", QVariant.Double)
layer.dataProvider().addAttributes([new_field])
layer.updateFields()