PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_extract_endpoints()

static LWMPOINT* lwgeom_extract_endpoints ( const LWGEOM lwg)
static

Definition at line 82 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().

83 {
85  FLAGS_GET_Z(lwg->flags),
86  FLAGS_GET_M(lwg->flags));
87  lwgeom_collect_endpoints(lwg, col);
88 
89  return col;
90 }
uint8_t flags
Definition: liblwgeom.h:397
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:188
LWMPOINT * lwmpoint_construct_empty(int srid, char hasz, char hasm)
Definition: lwmpoint.c:39
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:140
static void lwgeom_collect_endpoints(const LWGEOM *lwg, LWMPOINT *col)
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:141
Here is the call graph for this function:
Here is the caller graph for this function: