I am using QGIS and I need to calculate the minimum distance from points to line. I have the points in .txt format and this is ok, but I have to extract the line from the raster file showed the following figure: So I made "raster to vector" and I have this situation
The vector file contains, of course, a lot of id values. My purpose is to have only 1 id value, that is having only a line shapefile.
I tried also to convert the vector file in lines, but the output was the following:
I would like to have only 1 line (like a "mean" line) which has only 1 attribute so that I can calculate the minimum distance from points.
Of course, if you know a different procedure to calculate the minimum distance between points and a raster, it is welcome.