Question

how to measure distance to polygon ?

  • 19 January 2017
  • 2 replies
  • 83 views

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


2 replies

Userlevel 2
Badge +16

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

Badge +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.

 

 

Reply