PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ _lwt_CheckFacesExist()

static int _lwt_CheckFacesExist ( LWT_TOPOLOGY topo)
static

Definition at line 777 of file lwgeom_topo_polygonizer.c.

778 {
779  LWT_ISO_FACE *faces;
780  int fields = LWT_COL_FACE_FACE_ID;
781  uint64_t nelems = 1;
782  GBOX qbox;
783 
784  qbox.xmin = qbox.ymin = -DBL_MAX;
785  qbox.xmax = qbox.ymax = DBL_MAX;
786  faces = lwt_be_getFaceWithinBox2D( topo, &qbox, &nelems, fields, 1);
787  if (nelems == UINT64_MAX)
788  {
789  PGTOPO_BE_ERROR();
790  return -1;
791  }
792  if ( faces )
793  {
794  /* we do not call _lwt_release_faces because we are not asking
795  * for the MBR so there are no nested objects to release */
796  lwfree(faces);
797  }
798  return nelems;
799 }
void lwfree(void *mem)
Definition: lwutil.c:248
#define LWT_COL_FACE_FACE_ID
Face fields.
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:179
#define PGTOPO_BE_ERROR()
double ymax
Definition: liblwgeom.h:357
double xmax
Definition: liblwgeom.h:355
double ymin
Definition: liblwgeom.h:356
double xmin
Definition: liblwgeom.h:354

References lwfree(), lwt_be_getFaceWithinBox2D(), LWT_COL_FACE_FACE_ID, PGTOPO_BE_ERROR, 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: