Fix the exit code
This commit is contained in:
parent
60dcd3dd94
commit
ec0448685e
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user