Solved

Polygon orientation in GML

  • 6 October 2015
  • 2 replies
  • 17 views

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?

icon

Best answer by ebygomm 6 October 2015, 12:56

View original

2 replies

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

Reply