2

I am solving the same problem as How to split a polygon into quadrants?, except that I am looking for a solution in R or QGis. So I have a polygon layer shapefile, which is unfortunatelly not exactly rectangular (due to some reprojections etc.). I would like to split the "squares" into 2x2, 4x4 or 8x8 smaller squares, as equal as possible.

enter image description here

Note that I am not looking for tool to generate a new grid, but to split the one I already have.

  • In QGIS, I don't think there's a built-in function to "split" polygons into your desired dimensions. If via the interface then you would have to create a new grid, clip your polygon layer onto it and then use Join by location. I'm fairly certain it's possible to do this from R or writing a python script in QGIS if you know your coding but hopefully others can advise. – Joseph Dec 5 '14 at 11:12
  • Thanks @Joseph, I don't think this is a good solution, the square net is little bit irregular so each polygon should be divided separately so that we get it split into sub-squares as-equal-as-possible. I will wait for other advices. – Tomas Dec 5 '14 at 11:59
  • No problem @Thomas, a final question. Couldn't you Dissolve the polygon layer first to remove all "squares" and then do those steps mentioned? Or must the "squares" remain at their exact location? – Joseph Dec 5 '14 at 12:08
  • @Joseph please see the last sentence of my question. – Tomas Dec 5 '14 at 12:10
  • Ahh...don't know how I missed that! – Joseph Dec 5 '14 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.