PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ _lwt_FetchAllEdges()

static LWT_ISO_EDGE* _lwt_FetchAllEdges ( LWT_TOPOLOGY topo,
int *  numedges 
)
static

Definition at line 6321 of file lwgeom_topo.c.

6322 {
6323  LWT_ISO_EDGE *edge;
6324  int fields = LWT_COL_EDGE_ALL;
6325  uint64_t nelems = 1;
6326 
6327  edge = lwt_be_getEdgeWithinBox2D( topo, NULL, &nelems, fields, 0);
6328  *numedges = nelems;
6329  if (nelems == UINT64_MAX)
6330  {
6331  lwerror("Backend error: %s", lwt_be_lastErrorMessage(topo->be_iface));
6332  return NULL;
6333  }
6334  return edge;
6335 }
#define LWT_COL_EDGE_ALL
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
Definition: lwgeom_topo.c:125
static LWT_ISO_EDGE * lwt_be_getEdgeWithinBox2D(const LWT_TOPOLOGY *topo, const GBOX *box, uint64_t *numelems, int fields, uint64_t limit)
Definition: lwgeom_topo.c:184
const LWT_BE_IFACE * be_iface

References LWT_TOPOLOGY_T::be_iface, lwerror(), lwt_be_getEdgeWithinBox2D(), lwt_be_lastErrorMessage(), and LWT_COL_EDGE_ALL.

Referenced by lwt_Polygonize().

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