PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwt_be_ExistsCoincidentNode()

int lwt_be_ExistsCoincidentNode ( LWT_TOPOLOGY topo,
LWPOINT pt 
)

Definition at line 390 of file lwgeom_topo.c.

References LWT_TOPOLOGY_T::be_iface, lwerror(), lwt_be_getNodeWithinDistance2D(), and lwt_be_lastErrorMessage().

Referenced by _lwt_EdgeSplit(), lwt_AddIsoNode(), and lwt_MoveIsoNode().

391 {
392  int exists = 0;
393  lwt_be_getNodeWithinDistance2D(topo, pt, 0, &exists, 0, -1);
394  if ( exists == -1 ) {
395  lwerror("Backend error: %s", lwt_be_lastErrorMessage(topo->be_iface));
396  return 0;
397  }
398  return exists;
399 }
LWT_ISO_NODE * lwt_be_getNodeWithinDistance2D(LWT_TOPOLOGY *topo, LWPOINT *pt, double dist, int *numelems, int fields, int limit)
Definition: lwgeom_topo.c:163
const LWT_BE_IFACE * be_iface
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: