I have received a single ArcGIS feature class which contains polyline segments. The segments appear to be joined together at their endpoints, but upon closer inspection they are not perfectly docked to the next polyline. I want to merge the segments according to a specific attribute, but need to maintain valid geometries without creating multipart features. How can I test whether the the vertices of 2 lines actually share the same coordinate and if not how can I force them to snap together if within a certain threshold (e.g 1 meter)? Software: ArcGIS Advanced or SAFE FME
As per dmh126 answer you need to build a topology in ArcGIS (any GIS software that supports it) to do this.
Additionally you can force nodes to snap together by changing the XY Tolerance and resolution of the data. Care needs to be taken in doing this as changes need to be appropriate to the scale of your data and its spatial reference. The help links below will give a more detailed guide.
To build a topology you will need to load the datasets into a "feature dataset" - if you change the tolerance and resolution of the feature dataset when you import the data will be recalculated by the software and nodes that have are less than the tolerance distance away from the next node will be effectively snapped together (and the duplicate deleted).
The Fastest Way to do it, is tool - Feature Vertices to Point, then choosing the "Dangle node" option. If there a gaps between lines, you will have a points there. Then you could join it manually or use Snap tool.