Skip to main content

Hello,

 

Is there a transfomer to know the direction a polyline was drawn (forward or backward) ?

 

Thank you

This is a polyline:

_______________________________

What means here forward or backward?


This is a polyline:

_______________________________

What means here forward or backward?

Maybe first vertex = start, last vertex = end, and direction = start to end?

Use CoordinateExtractor to get _indices{} list attribute added to feature and then access the first and last coordinates as _incices{0} and _indices{-1}


This is a polyline:

_______________________________

What means here forward or backward?

I'm working on wast water, a web application needs to know the network flow orientation in order to define symboly for the layer.


Maybe first vertex = start, last vertex = end, and direction = start to end?

Use CoordinateExtractor to get _indices{} list attribute added to feature and then access the first and last coordinates as _incices{0} and _indices{-1}

Thank you I'll see


Have a look at the OrientationExtractor - http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/orientationextractor.htm


Reply