From ec0448685e664950de5acdc0303a0a97210ca2be Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Tue, 13 Feb 2024 15:28:36 -0500 Subject: [PATCH] Fix the exit code --- services_scripts/create_spatial_index.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/services_scripts/create_spatial_index.py b/services_scripts/create_spatial_index.py index 91c8c7b..417b230 100644 --- a/services_scripts/create_spatial_index.py +++ b/services_scripts/create_spatial_index.py @@ -11,12 +11,10 @@ qgs.initQgis() # Add native algorithms provider QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms()) -layer = 'C:/Users/a_adli/PycharmProjects/hydroquebec_archetype_gispy/data/tests/python_fixed_04/py_fixes_04.shp' - -indexed_layer_path = 'C:/Users/a_adli/PycharmProjects/hydroquebec_archetype_gispy/data/tests/python_fixed_04/py_fixes_04.qix' +layer = 'C:/Users/a_adli/PycharmProjects/hydroquebec_archetype_gispy/data/tests/fixed_geoindex/fix_geo.shp' params = {'INPUT': layer, 'OUTPUT': 'Output'} -indexed_layer = processing.run("native:createspatialindex", params) +processing.run("native:createspatialindex", params) print("Creating spatial index is completed.")