Skip to main content
Question

how to measure distance to polygon ?

  • January 19, 2017
  • 2 replies
  • 322 views

i have two tables one table of points and seconds of polygon and i want to calculate distance of polygon.

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

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • January 19, 2017

You could use the NeighborFinder transformer to do this. Points as BASE, Polygon(s) as CANDIDATE. This will add an attribute _distance to the Points. See NeighborFinder


Forum|alt.badge.img+7

You could use the NeighborFinder transformer to do this. Points as BASE, Polygon(s) as CANDIDATE. This will add an attribute _distance to the Points. See NeighborFinder

I was going to suggest the same thing.

 

This method will calculate the distance to the closest side of the polygon. If you need the distance to the center of the polygon, just add a CenterPointReplacer right before the NeigborFinder its CANDIDATE port.