PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ LWGEOM_force_clockwise_poly()

Datum LWGEOM_force_clockwise_poly ( PG_FUNCTION_ARGS  )

Definition at line 1918 of file lwgeom_functions_basic.c.

1919{
1920 GSERIALIZED *ingeom, *outgeom;
1921 LWGEOM *lwgeom;
1922
1923 POSTGIS_DEBUG(2, "LWGEOM_force_clockwise_poly called");
1924
1925 ingeom = PG_GETARG_GSERIALIZED_P_COPY(0);
1926
1927 lwgeom = lwgeom_from_gserialized(ingeom);
1928 lwgeom_force_clockwise(lwgeom);
1929
1930 outgeom = geometry_serialize(lwgeom);
1931
1932 lwgeom_free(lwgeom);
1933 PG_FREE_IF_COPY(ingeom, 0);
1934 PG_RETURN_POINTER(outgeom);
1935}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
void lwgeom_force_clockwise(LWGEOM *lwgeom)
Definition lwgeom.c:73

References lwgeom_force_clockwise(), lwgeom_free(), and lwgeom_from_gserialized().

Here is the call graph for this function: