how can i join or snap this spatial line, what transformer can i use and how to set the parameter? i m very very new in fme
esri arcgis layer
how can i join or snap this spatial line, what transformer can i use and how to set the parameter? i m very very new in fme
esri arcgis layer
Hi
Have a look at the Snapper, you should set the snapping tolerance in ground units (meters for UTM, decimal degree for Lat/Lon, etc). Set it to endpoint snapping. This will give you the same number of output features, but the start/end vertices that are less than tolerance apart will have been snapped together.
If you need to join the lines togheter into one single object, use the LineJoiner. Just be aware that you will probably have to use the Snapper first, as the LineJoiner will assume that the start/end vertices touch perfectly.
Also look at the documentation for these two transformers, it will help a lot.
David
Hi
Have a look at the Snapper, you should set the snapping tolerance in ground units (meters for UTM, decimal degree for Lat/Lon, etc). Set it to endpoint snapping. This will give you the same number of output features, but the start/end vertices that are less than tolerance apart will have been snapped together.
If you need to join the lines togheter into one single object, use the LineJoiner. Just be aware that you will probably have to use the Snapper first, as the LineJoiner will assume that the start/end vertices touch perfectly.
Also look at the documentation for these two transformers, it will help a lot.
David
set the snapping tolerance in ground units (meters for UTM, decimal degree for Lat/Lon, etc).I can't find it. snapper.jpg
set the snapping tolerance in ground units (meters for UTM, decimal degree for Lat/Lon, etc).I can't find it. snapper.jpg
You can just enter a numerical value, FME will assume it's in the same units as the coordinate system of the data. To get an idea of what you need to enter there you can measure that gap in the FME Data Inspector (making sure not to set a background map)
set the snapping tolerance in ground units (meters for UTM, decimal degree for Lat/Lon, etc).I can't find it. snapper.jpg
Hans (@redgeographics) beat me to it, just enter some numeric value. No need to mess around with parameters unless you specifically need it.
If the endpoints are not highly relevant. (lines seem not very accurate anyway)
You could use a buffer to relate the linepieces to each neighbour.
Create a topology, extract the start/endpoints and order these.
Then u could average out neighboring points (either by calculus or genraliser after a pointconnector). Create a line using a pointconnector.
.
I like the idea of using a buffer in this case. After the Bufferer you could use the combination of Dissover to create a single narrow polygon per line and a CenterLineReplacer to create a single line in the middle of the buffer polygon. That will avoid the lines having too many edges.