PostGIS  2.5.2dev-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.

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)
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 5767 of file lwgeom_topo.c.

References _lwt_AddLine().

Referenced by lwt_AddPolygon().

5768 {
5769  return _lwt_AddLine(topo, line, tol, nedges, 1);
5770 }
static LWT_ELEMID * _lwt_AddLine(LWT_TOPOLOGY *topo, LWLINE *line, double tol, int *nedges, int handleFaceSplit)
Definition: lwgeom_topo.c:5489
Here is the call graph for this function:
Here is the caller graph for this function: