|
PostGIS
3.7.0dev-r@@SVN_REVISION@@
|
| int lwgeom_has_orientation | ( | const LWGEOM * | lwgeom, |
| int | orientation | ||
| ) |
Tests that geometry is oriented LW_CLOCKWISE or LW_COUNTERCLOCKWISE.
Ensure the outer ring is oriented and all inner rings are anti-oriented. Returns LW_TRUE for oriented or non-orientable (empty or non-polygonal geometry) and LW_FALSE for misoriented.
Tests that geometry is oriented LW_CLOCKWISE or LW_COUNTERCLOCKWISE.
Definition at line 93 of file lwgeom.c.
References COLLECTIONTYPE, LWCOLLECTION::geoms, LW_FALSE, LW_TRUE, lwgeom_as_lwcollection(), lwgeom_as_lwpoly(), lwgeom_as_lwtriangle(), lwgeom_has_orientation(), lwpoly_has_orientation(), lwtriangle_has_orientation(), MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, POLYGONTYPE, TRIANGLETYPE, and LWGEOM::type.
Referenced by lwgeom_has_orientation(), ST_IsPolygonCCW(), ST_IsPolygonCW(), and test_lwgeom_force_clockwise().

