PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_extract_endpoints()

static LWMPOINT* lwgeom_extract_endpoints ( const LWGEOM lwg)
static

Definition at line 73 of file lwgeom_geos_node.c.

References LWGEOM::flags, FLAGS_GET_M, FLAGS_GET_Z, lwgeom_collect_endpoints(), lwmpoint_construct_empty(), and SRID_UNKNOWN.

Referenced by lwgeom_extract_unique_endpoints().

74 {
76  FLAGS_GET_Z(lwg->flags),
77  FLAGS_GET_M(lwg->flags));
78  lwgeom_collect_endpoints(lwg, col);
79 
80  return col;
81 }
uint8_t flags
Definition: liblwgeom.h:381
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:172
LWMPOINT * lwmpoint_construct_empty(int srid, char hasz, char hasm)
Definition: lwmpoint.c:26
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:124
static void lwgeom_collect_endpoints(const LWGEOM *lwg, LWMPOINT *col)
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:125
Here is the call graph for this function:
Here is the caller graph for this function: