PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ _lwt_CheckFacesExist()

static int _lwt_CheckFacesExist ( LWT_TOPOLOGY topo)
static

Definition at line 6885 of file lwgeom_topo.c.

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().

6886 {
6887  LWT_ISO_FACE *faces;
6888  int fields = LWT_COL_FACE_FACE_ID;
6889  int nelems = 1;
6890  GBOX qbox;
6891 
6892  qbox.xmin = qbox.ymin = -DBL_MAX;
6893  qbox.xmax = qbox.ymax = DBL_MAX;
6894  faces = lwt_be_getFaceWithinBox2D( topo, &qbox, &nelems, fields, 1);
6895  if ( nelems == -1 ) {
6896  lwerror("Backend error: %s", lwt_be_lastErrorMessage(topo->be_iface));
6897  return -1;
6898  }
6899  if ( faces ) _lwt_release_faces(faces, nelems);
6900  return nelems;
6901 }
#define LWT_COL_FACE_FACE_ID
Face fields.
double xmax
Definition: liblwgeom.h:295
double ymin
Definition: liblwgeom.h:296
double xmin
Definition: liblwgeom.h:294
const LWT_BE_IFACE * be_iface
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:297
static void _lwt_release_faces(LWT_ISO_FACE *faces, int num_faces)
Definition: lwgeom_topo.c:447
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: