diff --git a/services_scripts/add_new_field.py b/services_scripts/add_new_field.py index 50209ec..3c72c9b 100644 --- a/services_scripts/add_new_field.py +++ b/services_scripts/add_new_field.py @@ -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()