Question

Moving point to coresponding polygon

  • 4 February 2019
  • 2 replies
  • 9 views

Badge

Hi,

I have two shape files, one is polygon and second one is point. I need to reposition point shape that are outside of polygon so every point is inside of polygon with same id.

Input:

 

Output:

Thank you.


2 replies

Userlevel 2
Badge +17

If you mean that the polygon has the same ID as a corresponding point, you can create the inside point of the polygon with the CenterPointReplacer (Mode: Inside Point) and merge all the attributes of the original point to the inside point using the ID as join key (FeatureMerger).

Userlevel 4

If you mean that the polygon has the same ID as a corresponding point, you can create the inside point of the polygon with the CenterPointReplacer (Mode: Inside Point) and merge all the attributes of the original point to the inside point using the ID as join key (FeatureMerger).

Agreed. And if you don't have a common ID, you can use the NeighborFinder to find the closest center point from each outside point.

Reply