Let say I have an irregular polygon layer that I want to divide into squares of fixed size (i.e. 50 x 50m). The simplest solution is to create a grid based on the polygon extension and then use the intersection tool to fit it to the polygon. In such a scenario, the area of the trimmed fields varies considerably, and sometimes a field may be only a few square meters.
I'd like to avoid such a small 'orphans' so I'm looking for a solution, where the area of the smallest field created by clipping the grid to the polygon goes to the maximum.
Moving the grid left or right and testing the size of the smallest field by each test can be quite computationally intensive, but perhaps there is a more pragmatic solution to this problem.
Any ideas?