I have a set of parallel lines where the default distance between them is 1.4m, I need to identify where that distance is greater or less than the default:
I have a sample file where it was done but I do not know how it was calculated nor how the points were generated:
The atribute table os points shp:
Searching in GIS, I found this topic with an answer that seems to be the solution, but I do not know how to reproduce for a set of lines. I quote:
"You bet. There are a bunch of ways you can do it, but here's one potential method @Rashomon. For the set of points along each river bank, add new fields to the attribute table for Xcoord and Ycoord. Then open field calculator and use the $x and $y functions to populate the fields. You can then use anything you want to compute a simple average of the two sets of coordinates. Even Excel will work. Then just plot your new x and y coordinates that correspond to the center of the river. – lambertj Jan 25 at 16:44"
Create a center line between 2 polyline - QGIS
Solutions I thought:
- Create a buffer in the 70cm lines and then identify where they overlap or do not touch, but I do not know how to calculate this.
- Create centerlines between parallel lines, extract nodes every 1mt for example, and measure the distance to parallel lines.
There are many lines, thousands, it would need to be an automated solution as much as possible, it could be matlab, python, r or some other, or qgis or arcgis.
The sample files: https://drive.google.com/drive/folders/1XKOUECG3bY2claSqwQ-S9-C-yjYjE0r7?usp=sharing