1

I have a provincial grid used for the legal subdivision of land and need to split each grid cell into four for analysis purpose: https://github.com/matthewmeadows81/grid.

The problem lies in the properties of this grid: some of the cells are irregular and the method in https://gis.stackexchange.com/a/402281/168648 by @babel is the best method I've found so far, but the first step of creating a line from the centroid of each cell to the centroid of each neighboring cell just doesn't work because I suspect the irregular cell properties shown below cause issue:

enter image description here

Picture 1 (above): Overall grid shape.

enter image description here

Picture 2 (above): Top left-hand corner of grid after creating lines from centroid of each cell to the centroid of each neighboring cell.

Picture 3 (below): Top of grid where a small rectangle cell exists. enter image description here

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
MJM
  • 975
  • 4
  • 17

1 Answers1

0

I ended up using the SAGA 'Split Features Layer' tool inside a python script. The grid was quite large and it overloaded QGIS. My quick workaround was as follows:

  1. Split each polygon grid feature apart into a separate shapefile.
  2. Write a little script to iterate across the files and split each polygon as desired.

See post: Iterating SAGA Split Features Layer tool across files in directory using python

MJM
  • 975
  • 4
  • 17