I've migrated some 50,000 buildings from some crappy CAD environment into an SDE database. The problem is that the majority of the buildings is represented as lines, not polylines I.e. every wall is a single line feature.
Now I need to merge these features into polylines. I've been thinking about some ways to do this: check geometry, create topology rules, buffer and merge but it doesn't seem to work as expected. The buildings doesn't have a unique ID and some of them are adjacent to other buildings which makes it a bit harder.
Is there a best practice for these kinds of operations?