fmeobjects.FMEFeature.orient
- FMEFeature.orient(rule)
Optionally set and get the orientation rule of the feature. This descends into aggregates and orients any polygons or donuts found. Geometries other than polygons or donuts are left unchanged.
- Parameters:
rule (int) –
(Optional) If the parameter is not supplied, the orientation is not changed. If the rule is supplied, the feature is adjusted so that rule is followed.
With the right hand rule, the area of the polygon is always on the right and the coordinates of the outer boundary are in the clockwise direction, and for any holes they are counterclockwise.
- Return type:
- Returns:
The orientation rule of the feature.
- Raises:
FMEException – An exception is raised if an error occurred..