PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwt_AddLineNoFace()

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

Adds a linestring to the topology without determining generated faces.

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

Side faces for the new edges will not be determined and no new faces will be created, effectively leaving the topology in an invalid state (WARNING!)

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

5802 {
5803  return _lwt_AddLine(topo, line, tol, nedges, 0);
5804 }
static LWT_ELEMID * _lwt_AddLine(LWT_TOPOLOGY *topo, LWLINE *line, double tol, int *nedges, int handleFaceSplit)
Definition: lwgeom_topo.c:5517

References _lwt_AddLine().

Here is the call graph for this function: