Closed rrousselot closed 8 months ago
@UrbanGISer can you please check if this option solves the problem. If this is the case we could expose it with the next release as advanced setting.
FWIW I used a Python Script node to set the exclusive to True in sjoin_nearest and it worked the way I needed it to.
Perfect, thanks for the info @rrousselot . Will add the ticket to the next release
I am having issues using the Nearest Join node because it only returns 1 item. I am searching for proximity to nearest point that is not the current point I am at. As it works now if the same point is in the dataset, you get a zero-distance returned and the record for the same point you are searching with. I need the nearest point that is not the current point. I think this can be solved by exposing the GeoPandas sjoin_nearest parameter exclusive to the nodes settings. I believe this is currently always set to false. Please make it possible to set this parameter in the Nearest Join node settings.
https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoDataFrame.sjoin_nearest.html#geopandas.GeoDataFrame.sjoin_nearest