I am looking for a way to create a list of polygons that each polygon touches. I am a complete novice at QGIS and I have no idea where to even start. I am using a map of voting precincts in Utah that looks like this:
I want to generate a list that shows the precinct name (the attribute is called PrecinctID). Preferably, the output list would be in the form of a CSV file. How would I accomplish this?
Edit: When following the instructions provided by PieterB, I get an empty error window. The Python error log reads:
Traceback (most recent call last): File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/db_manager/db_plugins/gpkg/data_model.py", line 63, in run self.model = GPKGSqlResultModel(self.db, self.sql, None) File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/db_manager/db_plugins/data_model.py", line 195, in __init__ c = self.db._execute(None, sql) File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/plugins/db_manager/db_plugins/gpkg/connector.py", line 147, in _execute self.connection = spatialite_connect(str(self.dbname)) File "/Applications/QGIS3.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 595, in spatialite_connect con.enable_load_extension(True) AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'