Skip to main content
Solved

Move or anchored snapping polygons to a point by ID

  • November 29, 2018
  • 1 reply
  • 76 views

Hi,

I have 2 AGOL layers a polygon layer and a point layer were i need to snap the polygons to the points based on a unique asset ID. The points are in the right location and i have 4000 of the polygons grouped over 1 of the points but need them to move to their corresponding point.

Best answer by david_r

One possible solution could be to use the NeighborFinder (with a Group By) to get the X,Y values of the corresponding point. You can then calculate the deltas using the _closest_candiate_x/y and _closest_base_x/y values. Then use the Offsetter to move the polygons as needed.

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

david_r
Celebrity
  • Best Answer
  • November 29, 2018

One possible solution could be to use the NeighborFinder (with a Group By) to get the X,Y values of the corresponding point. You can then calculate the deltas using the _closest_candiate_x/y and _closest_base_x/y values. Then use the Offsetter to move the polygons as needed.