[GIS] Polygon to polyline conversion

convertlinepolygonqgis

I've got a polygon of agriculture field. I want to fill this polygon area with polylines in equal spaces between them (it supposed to represent the tree lines). those lines are not only for symbolic use, its should be for analysis.

Is there any way to convert this polygon into polyline like I described? I have tried to use the "polygons to line" tool but it gives me only the scope of the polygon and not the fill.

Best Answer

Suppose a field like this (orthophoto + field limit shapefile):

enter image description here

Calculate distance between trees (I take minimum 10 trees prior to calculate mean):

enter image description here

Create a vector grid with tree spacing in x and a big space in y (in this case, you could use tree spacing in y):

enter image description here

Rotate lines (if needed):

enter image description here

The result should be something like this:

enter image description here

The final step is to clip geometries... I used intersect tool:

enter image description here

And the final result:

enter image description here

Related Question