PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ ST_ForcePolygonCCW()

Datum ST_ForcePolygonCCW ( PG_FUNCTION_ARGS  )

Definition at line 1943 of file lwgeom_functions_basic.c.

1944 {
1945  GSERIALIZED *ingeom, *outgeom;
1946  LWGEOM *lwgeom;
1947 
1948  POSTGIS_DEBUG(2, "ST_ForcePolygonCCW called");
1949 
1950  ingeom = PG_GETARG_GSERIALIZED_P_COPY(0);
1951 
1952  lwgeom = lwgeom_from_gserialized(ingeom);
1954 
1955  outgeom = geometry_serialize(lwgeom);
1956 
1957  lwgeom_free(lwgeom);
1958  PG_FREE_IF_COPY(ingeom, 0);
1959  PG_RETURN_POINTER(outgeom);
1960 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:268
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1246
void lwgeom_force_counterclockwise(LWGEOM *lwgeom)
Definition: lwgeom.c:79

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

Here is the call graph for this function: