3

How can I scale a polygon about his center? I find only transform function, but the scale function here can only move the polygon with the scale factor and don't enlarge it.

enlarge

3
  • 1
    Try the v.transform algorithm in the Processing Toolbox.
    – csk
    Commented Jan 24, 2019 at 16:59
  • @csk I had taken a look at the linked question but hadn't thought of GRASS.
    – Gabriel
    Commented Jan 24, 2019 at 17:09
  • Instal Shape Tools Plugin. Use Geodesic Transformation Tool, select layer and feature/s, change scale factor about centroid. Run
    – Pedroq
    Commented Jan 12, 2021 at 1:37

1 Answer 1

3

Except you have to do it for many polygons, I think the best solution is to establish a customized CRS and using v.transform.

v.transform algorithm scales the feature from the coordinates origin of the layer CRS, and also can move a fixed distance all their vertices, or rotate them. But the reference is the CRS origin.

If you would prefer to calculate the new (scaled) coordinates of each vertex scaling vectors that start from the centroid towards each of them, surely there would be some way to do (and I just don't know) it.

However, the management of custom coordinate refernce systems is very common when you work in specific regions, and you may be encouraged to familiarize with it.


  • Find out the coordinates of the centroid of your polygon.

  • Create a custom CRS, centered at the centroid.

  • Export your feature to the new CRS.

  • Scale with v.transform from there.

If necessary, export it again to its original CRS and merge it to the original layer.

Not the answer you're looking for? Browse other questions tagged or ask your own question.