Skip to main content
Question

how to measure distance to polygon ?

  • January 19, 2017
  • 2 replies
  • 278 views

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

2 replies

erik_jan
Contributor
Forum|alt.badge.img+17
  • 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
erik_jan wrote:

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.

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings