Skip to main content
Question

Shifting centre of geometry/bounding box to a specified point

  • June 24, 2013
  • 1 reply
  • 131 views

Forum|alt.badge.img
Hi,

 

  I have a polygon geometry. i need to shift it to a specific point x,y.  Offsetter shifts geometry with relative values.

CenterPointReplacer replaces geometry with a point at centre. But i need to shift this center to a new location.

 

 

Any suggestion will be helpful.

 

 

Thanks,

 

Subrat
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • June 24, 2013
Hi,

 

 

Bassically the offsetter is what you need to use after calculating the shift (x,y) for each point.

 

Calculting the shift can be done in the expression evaluator.

 

Another way to do it would need a common id for the center of geometry point and destination point. You can then join the points (feature merger or point connector), claculate the line lenght and use the distance in the affiner

 

 

Itay