Re: [QGIS-Developer] QGIS equivalent of Turf/nearest-point function

2023-11-17 Thread Pankajeshwara Sharma via QGIS-Developer
Hello, These QGIS features need to be invoked manually, and I was hoping that these functions (or a similar one) could somehow be called using a Python script from within QGIS. Maybe someone with knowledge of QGIS internal functions can give advice on how these functions can be called. Yours sinc

Re: [QGIS-Developer] QGIS equivalent of Turf/nearest-point function

2023-11-12 Thread Pankajeshwara Sharma via QGIS-Developer
Dear Sebastian, Thank you so much. I was just wondering if this tool can be called using Python from within QGIS. I am trying to write a Python equivalent of the following JavaScript block of code. nearestPoint = turf.nearestPoint(currentFeature, entire_dataset) Yours sincerely, Pankaj On Mon,

Re: [QGIS-Developer] QGIS equivalent of Turf/nearest-point function

2023-11-12 Thread Sebastian Gutwein via QGIS-Developer
Not that exact function that I am aware of but there is a *Distance to nearest hub (points) *tool in the processing toolbox that will give you the distance to all of the points and then you can choose the one with the shortest distance. You could also use select by expression using the *Closest Poi