PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ ST_IsValidTrajectory()

Datum ST_IsValidTrajectory ( PG_FUNCTION_ARGS  )

Definition at line 69 of file lwgeom_functions_temporal.c.

70 {
71  GSERIALIZED *gs0 = PG_GETARG_GSERIALIZED_P(0);
72  /* All checks already performed by liblwgeom, not worth checking again */
74  int ret = lwgeom_is_trajectory(g0);
75  lwgeom_free(g0);
76  PG_RETURN_BOOL(ret == LW_TRUE);
77 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
Definition: gserialized.c:239
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138
int lwgeom_is_trajectory(const LWGEOM *geom)
Return LW_TRUE or LW_FALSE depending on whether or not a geometry is a linestring with measure value ...
Definition: lwgeom.c:2462
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:107

References LW_TRUE, lwgeom_free(), lwgeom_from_gserialized(), and lwgeom_is_trajectory().

Here is the call graph for this function: