Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have tried using the dissolve tool with unsplit_lines option but it does not merge the lines ... maybe there is a step I am missing?

share|improve this question

closed as off-topic by PolyGeo Mar 6 at 7:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

Can you post your code Angie? – Hairy May 20 '11 at 16:52
@Angle, so there are gaps between you polylines? – artwork21 May 20 '11 at 17:20
I do not have any code to post. In general, lets say you have street dgn (Cad file) and you open it in ArcGIS. You'll see the street lines, but they are broken in some areas. The problem is the mapper who created the dgn file did not connect all the lines. I am not allowed to attached any images so I can't show you. look at this example: Broken line ---------------- -------------- ----------- ------- I want the Python script in ArcGis to look at the line above and combine it to one line, like--------------------------------------------------------------------- this. – user3057 May 21 '11 at 13:04
Angie, if you post the image to I will put it in the question. – djq May 22 '11 at 21:55

You could convert you dgn layer into ar feature dataset and create a topology to bridge the road gaps. You must have either ArcEditor or ArcInfo license level to create topologies. After you are comfortable doing this you could create a model using the topology geoprocessing tools to automate the process. Once you have the model set you can export it out to a python script.

ArcGIS 10 Topology Overview

Toplogy geoprocessing toolset

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.