From the left polygon to right polygon, May I know how to achieve it by using QGIS?
I have tried the orthogonalized tool in QGIS, but there is no change in shape.
From the left polygon to right polygon, May I know how to achieve it by using QGIS?
I have tried the orthogonalized tool in QGIS, but there is no change in shape.
Create the Oriented Bounding box of the polygon with the Oriented minimum bounding box tool or with QGIS expressions (use Geoemtry Generator or Geometry by expression) with this expression (see oriented_bbox()):
oriented_bbox ($geometry)
Orange: initial polygon; blue: created by the expression above:

Variant: same area
And, a bit more sophisticated, you can scale the resulting rectangle to get the same area as the input polygon:
with_variable (
'scale',
sqrt (area ($geometry) / area (oriented_bbox ($geometry))),
scale(
oriented_bbox ($geometry),
@scale,
@scale
)
)
Blue polygon created by the expression has the same area as the initial orange polygon:
