Question

Shifting centre of geometry/bounding box to a specified point

  • 24 June 2013
  • 1 reply
  • 6 views

Badge
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

1 reply

Userlevel 4
Badge +13
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

Reply