hello there we need to calculate the length of each polygon edge , the polygona could be in irregular shape considering the polygon is 4 edges
if we use chopper or Geometrycoercer transformer we get many edge we are suppose to get only 4
Thanks

hello there we need to calculate the length of each polygon edge , the polygona could be in irregular shape considering the polygon is 4 edges
if we use chopper or Geometrycoercer transformer we get many edge we are suppose to get only 4
Thanks
Best answer by geomancer
I can think of an algorithm for this particular polygon, but it will not work for all polygons.
For this polygon I would isolate the 2 longest segments, and combine the other segments if they are connecting to each other.
But this will not work when the two longest segments of your polygon share a vertex, or when the long segments are made up of several shorter segments. So this is by no means a complete solution.
The attached workspace makes use of the custom transformer PolylineAnalyzer from FME Hub. This transformer calculates a lot of other useful information, that may lead to other solutions.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.