I am trying to measure the distance from several points to the edge of lake polygons. When I use the Distance to Nearest hub function in Vector analysis, I get the following error message:
QGIS version: 3.30.0-'s-Hertogenbosch
QGIS code revision: f186b8efe0
Qt version: 5.15.2
Python version: 3.9.5
GDAL version: 3.3.2
GEOS version: 3.9.1-CAPI-1.14.2
PROJ version: Rel. 8.1.1, September 1st, 2021
PDAL version: 2.3.0 (git-version: Release)
Algorithm started at: 2023-03-23T23:45:14
Algorithm 'Distance to nearest hub (line to hub)' starting…
Input parameters:
{ 'FIELD' : 'Hylak_id', 'HUBS' : '/Users/user/Downloads/HydroLAKES_polys_v10_shp/HydroLAKES_polys_v10_shp/HydroLAKES_polys_v10.shp', 'INPUT' : 'delimitedtext://file:///Users/user/Documents/Grebe_Population_Points.csv?type=csv&maxFields=10000&detectTypes=yes&xField=Longitude&yField=Latitude&crs=EPSG:4326&spatialIndex=yes&subsetIndex=no&watchFile=no', 'OUTPUT' : 'TEMPORARY_OUTPUT', 'UNIT' : 0 }
Traceback (most recent call last):
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/algs/qgis/HubDistanceLines.py", line 120, in processAlgorithm
index = QgsSpatialIndex(hub_source.getFeatures(QgsFeatureRequest().setSubsetOfAttributes([]).setDestinationCrs(point_source.sourceCrs(), context.transformContext())))
Exception: unknown
Execution failed after 0.13 seconds
Loading resulting layers
Algorithm 'Distance to nearest hub (line to hub)' finished
What am I doing wrong? Is there a different function I should be using?