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