Specifies that a vector of polylines should be constructed using the given options.
Specifies that a vector of polylines should be constructed using the given options, and that any labels attached to the input edges should be returned in "label_set_ids" and "label_set_lexicion".
Defines options for building the edge graph that is passed to Build().
Assembles a graph of snapped edges into the geometry type implemented by this layer. If an error is encountered, sets "error" appropriately.
A layer type that assembles edges (directed or undirected) into multiple S2Polylines. Returns an error if S2Builder found any problem with the input edges; this layer type does not generate any errors of its own.
Duplicate edges are handled correctly (e.g., if a polyline backtracks on itself, or loops around and retraces some of its previous edges.) The implementation attempts to preserve the order of the input edges whenever possible, so that if the input is a polyline and it is not modified by S2Builder, then the output will be the same polyline even if the polyline forms a loop. However, note that this is not guaranteed when undirected edges are used: for example, if the input consists of a single undirected edge, then either directed edge may be returned.