PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ ST_IsValidTrajectory()

Datum ST_IsValidTrajectory ( PG_FUNCTION_ARGS  )

Definition at line 71 of file lwgeom_functions_temporal.c.

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

Referenced by ST_ClosestPointOfApproach().

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:2080
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
Here is the call graph for this function:
Here is the caller graph for this function: