PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ _lwt_CheckFacesExist()

static int _lwt_CheckFacesExist ( LWT_TOPOLOGY topo)
static

Definition at line 6683 of file lwgeom_topo.c.

6684 {
6685  LWT_ISO_FACE *faces;
6686  int fields = LWT_COL_FACE_FACE_ID;
6687  int nelems = 1;
6688  GBOX qbox;
6689 
6690  qbox.xmin = qbox.ymin = -DBL_MAX;
6691  qbox.xmax = qbox.ymax = DBL_MAX;
6692  faces = lwt_be_getFaceWithinBox2D( topo, &qbox, &nelems, fields, 1);
6693  if ( nelems == -1 ) {
6694  lwerror("Backend error: %s", lwt_be_lastErrorMessage(topo->be_iface));
6695  return -1;
6696  }
6697  if ( faces ) _lwt_release_faces(faces, nelems);
6698  return nelems;
6699 }
#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
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
Definition: lwgeom_topo.c:120
static void _lwt_release_faces(LWT_ISO_FACE *faces, int num_faces)
Definition: lwgeom_topo.c:447
static LWT_ISO_FACE * lwt_be_getFaceWithinBox2D(const LWT_TOPOLOGY *topo, const GBOX *box, int *numelems, int fields, int limit)
Definition: lwgeom_topo.c:187
double ymax
Definition: liblwgeom.h:298
double xmax
Definition: liblwgeom.h:296
double ymin
Definition: liblwgeom.h:297
double xmin
Definition: liblwgeom.h:295
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: