PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwt_AddPoint()

LWT_ELEMID lwt_AddPoint ( LWT_TOPOLOGY topo,
LWPOINT point,
double  tol 
)

Adds a point to the topology.

The given point will snap to existing nodes or edges within given tolerance. An existing edge may be split by the point.

Parameters
topothe topology to operate on
pointthe point to add
tolsnap tolerance, the topology tolerance will be used if 0
Returns
identifier of added (or pre-existing) node or -1 on error (liblwgeom error handler will be invoked with error message)

Definition at line 5220 of file lwgeom_topo.c.

5221 {
5222  return _lwt_AddPoint(topo, point, tol, 1, NULL);
5223 }
static LWT_ELEMID _lwt_AddPoint(LWT_TOPOLOGY *topo, LWPOINT *point, double tol, int findFace, int *moved)
Definition: lwgeom_topo.c:4906

References _lwt_AddPoint().

Here is the call graph for this function: