PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwt_be_ExistsEdgeIntersectingPoint()

int lwt_be_ExistsEdgeIntersectingPoint ( LWT_TOPOLOGY topo,
LWPOINT pt 
)

Definition at line 406 of file lwgeom_topo.c.

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

Referenced by lwt_AddIsoNode(), and lwt_MoveIsoNode().

407 {
408  int exists = 0;
409  lwt_be_getEdgeWithinDistance2D(topo, pt, 0, &exists, 0, -1);
410  if ( exists == -1 ) {
411  lwerror("Backend error: %s", lwt_be_lastErrorMessage(topo->be_iface));
412  return 0;
413  }
414  return exists;
415 }
const LWT_BE_IFACE * be_iface
LWT_ISO_EDGE * lwt_be_getEdgeWithinDistance2D(LWT_TOPOLOGY *topo, LWPOINT *pt, double dist, int *numelems, int fields, int limit)
Definition: lwgeom_topo.c:264
const char * lwt_be_lastErrorMessage(const LWT_BE_IFACE *be)
Definition: lwgeom_topo.c:124
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:74
Here is the call graph for this function:
Here is the caller graph for this function: