PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_is_trajectory()

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 growing from start to end vertex.

Definition at line 2650 of file lwgeom.c.

2651{
2652 int type = geom->type;
2653
2654 if( type != LINETYPE )
2655 {
2656 lwnotice("Geometry is not a LINESTRING");
2657 return LW_FALSE;
2658 }
2659 return lwline_is_trajectory((LWLINE*)geom);
2660}
#define LW_FALSE
Definition liblwgeom.h:94
#define LINETYPE
Definition liblwgeom.h:103
int lwline_is_trajectory(const LWLINE *geom)
Definition lwline.c:464
void lwnotice(const char *fmt,...) __attribute__((format(printf
Write a notice out to the notice handler.
uint8_t type
Definition liblwgeom.h:462

References LINETYPE, LW_FALSE, lwline_is_trajectory(), lwnotice(), and LWGEOM::type.

Referenced by ST_IsValidTrajectory(), and test_lwgeom_is_trajectory().

Here is the call graph for this function:
Here is the caller graph for this function: