PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwt_AddLine()

LWT_ELEMID* lwt_AddLine ( LWT_TOPOLOGY topo,
LWLINE line,
double  tol,
int *  nedges 
)

Adds a linestring to the topology.

The given line will snap to existing nodes or edges within given tolerance. Existing edges or faces may be split by the line.

Parameters
topothe topology to operate on
linethe line to add
tolsnap tolerance, the topology tolerance will be used if 0
nedgesoutput parameter, will be set to number of edges the line was split into, or -1 on error (liblwgeom error handler will be invoked with error message)
Returns
an array of <nedges> edge identifiers that sewed togheter will build up the input linestring (after snapping). Caller will need to free the array using lwfree(), if not null.

Definition at line 5795 of file lwgeom_topo.c.

5796 {
5797  return _lwt_AddLine(topo, line, tol, nedges, 1);
5798 }
static LWT_ELEMID * _lwt_AddLine(LWT_TOPOLOGY *topo, LWLINE *line, double tol, int *nedges, int handleFaceSplit)
Definition: lwgeom_topo.c:5517

References _lwt_AddLine().

Referenced by lwt_AddPolygon().

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