Skip to main content

Hi,

 

 

I have GML dataset with different polygon orientation. I need to get two points in clockwise order from that polygon.

E.g. (in WKT): POLYGON ((0 0, 10 0, 10 10, 0 10)) - counter clockwise

Points from this polygon: First Point - POINT (0 0);  Second Point - POINT (0 10)

It doesn't matter which two points, but they need to be one after another, and orientation must be clockwise.

How to determin or change direction of polygon in FME to know what point I need?

You can use the orientator transformer to change the polygon orientation before extracting two points
Thanks. I didn't initially find that transformer.

Reply