From 0082c8c9e7f9c81f435588379ebbb3b08689d51f Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Tue, 12 Mar 2024 12:21:57 -0400 Subject: [PATCH] Delete comment --- services_scripts/add_new_field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()