Skip to main content

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

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


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