PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ ST_IsValidTrajectory()

Datum ST_IsValidTrajectory ( PG_FUNCTION_ARGS  )

Definition at line 71 of file lwgeom_functions_temporal.c.

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 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
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:2472
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76

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

Here is the call graph for this function: