Fix the exit code

This commit is contained in:
Alireza Adli 2024-02-13 15:28:36 -05:00
parent 60dcd3dd94
commit ec0448685e

View File

@ -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.")