Skip to main content
Solved

Polygon orientation in GML

  • October 6, 2015
  • 2 replies
  • 81 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?

Best answer by ebygomm

You can use the orientator transformer to change the polygon orientation before extracting two points
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • October 6, 2015
You can use the orientator transformer to change the polygon orientation before extracting two points

  • Author
  • October 6, 2015
Thanks. I didn't initially find that transformer.