I have a problem, but I didn't find usable solution. I created a line shape as a reference/guideline and made grid with grass v.mkgrid and I should correctly fit the grid onto the line. enter image description here

It isn't possible to fitted precision with manual method, and QGIS Geometry snapping didn't work correctly.I approached the line with move and rotation, the distance within 5 meter

enter image description here

If I used geometry snapper, the tool modified shape and size of polygon, connected to line. Other situation, if line was within the grid, the tool worked as clip.

Somebody knows such QGIS tool/plugin what solving this problem?

There is nothing logic between layers, line attributes contains just one id, grid contains mkgrid generated data

I tried snap geometry to layer, the results was wrong, the tool stretched the cells to the line, modified first column's size and because the grid wasn't parallel to line formed the cells into trapeze

  • Is there any logic or banding "id"s between grids and lines?
    – Taras
    Apr 21, 2020 at 7:25

1 Answer 1


I would suggest using a rectangle (make it a separate layer) instead of a line and then using 'Create grid' algorithm with rectangle layer as the grid extent. That way the grid will fit into the rectangle.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.