Skip to main content
Question

Moving point to coresponding polygon

  • February 4, 2019
  • 2 replies
  • 46 views

Forum|alt.badge.img

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.

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.

2 replies

takashi
Celebrity
  • 7843 replies
  • February 4, 2019

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).


david_r
Celebrity
  • 8394 replies
  • February 4, 2019

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.