PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ _lwt_GetIsoNode()

static LWT_ISO_NODE* _lwt_GetIsoNode ( LWT_TOPOLOGY topo,
LWT_ELEMID  nid 
)
static

Definition at line 3699 of file lwgeom_topo.c.

3700 {
3701  LWT_ISO_NODE *node;
3702  uint64_t n = 1;
3703 
3704  node = lwt_be_getNodeById( topo, &nid, &n, LWT_COL_NODE_CONTAINING_FACE );
3705  if (n == UINT64_MAX)
3706  {
3707  lwerror("Backend error: %s", lwt_be_lastErrorMessage(topo->be_iface));
3708  return 0;
3709  }
3710  if ( n < 1 ) {
3711  lwerror("SQL/MM Spatial exception - non-existent node");
3712  return 0;
3713  }
3714  if ( node->containing_face == -1 )
3715  {
3716  lwfree(node);
3717  lwerror("SQL/MM Spatial exception - not isolated node");
3718  return 0;
3719  }
3720 
3721  return node;
3722 }
void lwfree(void *mem)
Definition: lwutil.c:242
#define LWT_COL_NODE_CONTAINING_FACE
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:119
LWT_ISO_NODE * lwt_be_getNodeById(LWT_TOPOLOGY *topo, const LWT_ELEMID *ids, uint64_t *numelems, int fields)
Definition: lwgeom_topo.c:155
LWT_ELEMID containing_face
const LWT_BE_IFACE * be_iface

References LWT_TOPOLOGY_T::be_iface, LWT_ISO_NODE::containing_face, lwerror(), lwfree(), lwt_be_getNodeById(), lwt_be_lastErrorMessage(), and LWT_COL_NODE_CONTAINING_FACE.

Referenced by lwt_MoveIsoNode(), and lwt_RemoveIsoNode().

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