PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ _lwt_CheckFacesExist()

static int _lwt_CheckFacesExist ( LWT_TOPOLOGY topo)
static

Definition at line 6743 of file lwgeom_topo.c.

6744 {
6745  LWT_ISO_FACE *faces;
6746  int fields = LWT_COL_FACE_FACE_ID;
6747  uint64_t nelems = 1;
6748  GBOX qbox;
6749 
6750  qbox.xmin = qbox.ymin = -DBL_MAX;
6751  qbox.xmax = qbox.ymax = DBL_MAX;
6752  faces = lwt_be_getFaceWithinBox2D( topo, &qbox, &nelems, fields, 1);
6753  if (nelems == UINT64_MAX)
6754  {
6755  lwerror("Backend error: %s", lwt_be_lastErrorMessage(topo->be_iface));
6756  return -1;
6757  }
6758  if ( faces ) _lwt_release_faces(faces, nelems);
6759  return nelems;
6760 }
#define LWT_COL_FACE_FACE_ID
Face fields.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
static LWT_ISO_FACE * lwt_be_getFaceWithinBox2D(const LWT_TOPOLOGY *topo, const GBOX *box, uint64_t *numelems, int fields, uint64_t limit)
Definition: lwgeom_topo.c:184
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
Definition: lwgeom_topo.c:119
static void _lwt_release_faces(LWT_ISO_FACE *faces, int num_faces)
Definition: lwgeom_topo.c:441
double ymax
Definition: liblwgeom.h:343
double xmax
Definition: liblwgeom.h:341
double ymin
Definition: liblwgeom.h:342
double xmin
Definition: liblwgeom.h:340
const LWT_BE_IFACE * be_iface

References _lwt_release_faces(), LWT_TOPOLOGY_T::be_iface, lwerror(), lwt_be_getFaceWithinBox2D(), lwt_be_lastErrorMessage(), LWT_COL_FACE_FACE_ID, GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.

Referenced by lwt_Polygonize().

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