PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ 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 2459 of file lwgeom.c.

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

Referenced by ST_IsValidTrajectory(), and test_lwgeom_is_trajectory().

2460 {
2461  int type = geom->type;
2463  if( type != LINETYPE )
2464  {
2465  lwnotice("Geometry is not a LINESTRING");
2466  return LW_FALSE;
2467  }
2468  return lwline_is_trajectory((LWLINE*)geom);
2469 }
#define LINETYPE
Definition: liblwgeom.h:86
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
Definition: lwutil.c:177
int lwline_is_trajectory(const LWLINE *geom)
Definition: lwline.c:463
#define LW_FALSE
Definition: liblwgeom.h:77
uint8_t type
Definition: liblwgeom.h:399
Here is the call graph for this function:
Here is the caller graph for this function: