PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ _lwt_FetchAllEdges()

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

Definition at line 6113 of file lwgeom_topo.c.

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

Referenced by lwt_Polygonize().

6114 {
6115  LWT_ISO_EDGE *edge;
6116  int fields = LWT_COL_EDGE_ALL;
6117  int nelems = 1;
6118 
6119  edge = lwt_be_getEdgeWithinBox2D( topo, NULL, &nelems, fields, 0);
6120  *numedges = nelems;
6121  if ( nelems == -1 ) {
6122  lwerror("Backend error: %s", lwt_be_lastErrorMessage(topo->be_iface));
6123  return NULL;
6124  }
6125  return edge;
6126 }
const LWT_BE_IFACE * be_iface
#define LWT_COL_EDGE_ALL
static LWT_ISO_EDGE * lwt_be_getEdgeWithinBox2D(const LWT_TOPOLOGY *topo, const GBOX *box, int *numelems, int fields, int limit)
Definition: lwgeom_topo.c:179
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
Definition: lwgeom_topo.c:120
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
Here is the call graph for this function:
Here is the caller graph for this function: