AnchorGeometryProcessor
processor.AnchorGeometryProcessor(config, feedback=None)Processor that aligns linear geometries using an anchor-guided routing flow.
Anchor routing keeps start and end points as mandatory anchors, adds thematic sharp-angle vertices as anchors (threshold from ProcessorConfig.angle_threshold_degrees), and inserts periodic anchors on long stretches (spacing from ProcessorConfig.max_anchor_distance).
Routing behavior is two-phase: 1. Anchor matching is validated on a local reference subset (within relevant_distance). 2. If anchors are matched locally, segment routing can use the full reference line network.
Anchors without a local match are preserved as original thematic points and are kept in the reconstructed route.
When ProcessorConfig.network_use_directed_graph is enabled, the processor builds a directed reference graph and applies one-way constraints via the same oneway parameters used by NetworkGeometryProcessor.
For polygon inputs this processor delegates to NetworkGeometryProcessor.