FME – Is There a Transformer to Snap Point on Point of Nearest Line?

fmesnapping

I have a DWG file which has lines and points. I use FME (2014) to translate it into a shapefile. This works fine but now I want to add some transformers in the workflow.

The first thing I want is to make a simplification of the line network. I did that using Generalizer. Now I want to snap the "points to point on nearest line" of the network.

Is there is transformer for this purpose?

It is a very common tool in GIS packages.

I have read online I could use a combination of "Neighbor Finder" and "2D Point Replacer".


I have followed this workflow:

Workflow

Best Answer

Mapperz is right, the Snapper and Anchored Snapper are the ones to use. If you don't want to move the lines after you generalise them, then stick with the Anchored Snapper. Your lines will go into the Anchor port and your points into the Candidate port. The points will snap to the lines.

I have recently applied this exact workflow (Generalize and Anchored Snapper) with much success.

If you want to know how far your points are moving, you can calculate the coordinates using a CoordinateExtractor before the snap, then again after the snap and calculate the distance moved using the distance formula.