Remove an isolated node.
For ST_RemoveIsoNode
- Parameters
-
topo | the topology to operate on |
node | the identifier of the node to be moved |
- Returns
- 0 on success, -1 on error (liblwgeom error handler will be invoked with error message)
Definition at line 3636 of file lwgeom_topo.c.
3642 if ( ! node )
return -1;
3654 lwerror(
"Unexpected error: %d nodes deleted when expecting 1", n);
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
static int lwt_be_deleteNodesById(const LWT_TOPOLOGY *topo, const LWT_ELEMID *ids, uint64_t numelems)
static LWT_ISO_NODE * _lwt_GetIsoNode(LWT_TOPOLOGY *topo, LWT_ELEMID nid)
static int lwt_be_checkTopoGeomRemIsoNode(LWT_TOPOLOGY *topo, LWT_ELEMID node_id)
const LWT_BE_IFACE * be_iface
References _lwt_GetIsoNode(), LWT_TOPOLOGY_T::be_iface, lwerror(), lwfree(), lwt_be_checkTopoGeomRemIsoNode(), lwt_be_deleteNodesById(), and lwt_be_lastErrorMessage().