AnchoredSnapper - make vertex snapping optional while snapping segments

Related products: FME Form

Right now, selecting Segment Snapping while using the AnchoredSnapper means that candidate features will also be snapped to line segments within the specified tolerance. However, candidates will also still be snapped to vertices, and the AnchoredSnapper even prefers vertices to segments, even in Segment Snapping-mode.

My use case is that I need to snap certain features to the closest point on a line. However, in some cases there is a vertex nearby that is not the closest point, but still within tolerance, and the AnchoredSnapper prefers these points. I can probably find some workaround, but a simple checkbox to force the AnchoredSnapper not to snap to vertices but only segments would be a cleaner solution.

yeah I've found this to be a problem too, causing degenerate geometries as both points are snapping to the same vertex instead of the nearest bit of segment. Would appreciate this addition to the anchored snapper


Hi @ngoorman, I'm pleased to let you know that in our FME 2018.0 Betas you can use the AnchorSnapper to snap to segments even if the vertex is within the snapping tolerance. You can set the transformer to use "Segment Snapping". Give 2018.0 Beta a try if you can.


Great that this is sorted in 2018. I'm sure there was a logical reason for prioritising vertices over segments, even in segment snapping mode, but it was an annoying feature!!

 

 


Maybe slightly premature with that comment. Tried in 2018 but still snapping to vertices..