views:

104

answers:

1

Hi,

I am working with geodjango and I want to breakup a 2D Rectangular Polygon into smaller ones.

My input is a big rectangle and I want to subdivide it in smaller rectangles. The sum of the smaller rectangles must be the original rectangle.

All subrectangles should be equal size.

How can I do that?

Thank you.

+2  A: 
  1. Pick any point inside the rectangle
  2. Draw two lines through it parallel to the edges of the rectangle. Now you've divided your rectangle into four smaller ones.
BlueRaja - Danny Pflughoeft
...of course the horizontal and vertical lines must be relative the the sides of the rectangle. Otherwise, your four sub-shapes might not be rectangular.
FrustratedWithFormsDesigner
@Frustrated: You're right, fixed.
BlueRaja - Danny Pflughoeft