Delete comment
This commit is contained in:
parent
77ea20260f
commit
0082c8c9e7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user