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

Definition at line 59 of file lwgeom_functions_temporal.c.

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

60 {
61  GSERIALIZED *gs0 = PG_GETARG_GSERIALIZED_P(0);
62  /* All checks already performed by liblwgeom, not worth checking again */
64  int ret = lwgeom_is_trajectory(g0);
65  lwgeom_free(g0);
66  PG_RETURN_BOOL(ret == LW_TRUE);
67 }
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:2034
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1050
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61

Here is the call graph for this function: