PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum ST_IsValidTrajectory ( PG_FUNCTION_ARGS  )

Definition at line 71 of file lwgeom_functions_temporal.c.

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

72 {
73  GSERIALIZED *gs0 = PG_GETARG_GSERIALIZED_P(0);
74  /* All checks already performed by liblwgeom, not worth checking again */
76  int ret = lwgeom_is_trajectory(g0);
77  lwgeom_free(g0);
78  PG_RETURN_BOOL(ret == LW_TRUE);
79 }
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:2386
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1137
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75

Here is the call graph for this function: