PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ _lwt_GetIsoNode()

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

Definition at line 3813 of file lwgeom_topo.c.

3814{
3815 LWT_ISO_NODE *node;
3816 uint64_t n = 1;
3817
3818 node = lwt_be_getNodeById( topo, &nid, &n, LWT_COL_NODE_CONTAINING_FACE );
3819 if (n == UINT64_MAX)
3820 {
3822 return 0;
3823 }
3824 if ( n < 1 ) {
3825 lwerror("SQL/MM Spatial exception - non-existent node");
3826 return 0;
3827 }
3828 if ( node->containing_face == -1 )
3829 {
3830 lwfree(node);
3831 lwerror("SQL/MM Spatial exception - not isolated node");
3832 return 0;
3833 }
3834
3835 return node;
3836}
void lwfree(void *mem)
Definition lwutil.c:248
#define LWT_COL_NODE_CONTAINING_FACE
#define PGTOPO_BE_ERROR()
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
LWT_ISO_NODE * lwt_be_getNodeById(LWT_TOPOLOGY *topo, const LWT_ELEMID *ids, uint64_t *numelems, int fields)
LWT_ELEMID containing_face

References LWT_ISO_NODE::containing_face, lwerror(), lwfree(), lwt_be_getNodeById(), LWT_COL_NODE_CONTAINING_FACE, and PGTOPO_BE_ERROR.

Referenced by lwt_MoveIsoNode(), and lwt_RemoveIsoNode().

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