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.
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.
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).
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.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.