I have a shapefile where there are polygons perfectly fitting, I created contour lines from all of the polygons so I have a shape containing only the lines. My problem is as the polygons were fitting, most of the lines cover each other. I cannot merge them because I need to keep the attributes of the lines.

What is the best way to get rid of the unnecessary second lines? ArcGIS or QGIS usage is preferred.

closed as unclear what you're asking by Chris W, underdark Jun 29 '15 at 20:38

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    How did you create the lines? if the polygons are perfectly fitting a tool like Polygon to Line resources.arcgis.com/en/help/main/10.1/index.html#//… will not create duplicate lines, then follow with Polygon Neighbors resources.arcgis.com/en/help/main/10.1/index.html#//… to access the polygon information on BOTH sides of the line. – Michael Stimson Jun 26 '15 at 0:45
  • As Michael says, if you convert polygons to lines some part of that process either has to discard attributes from the polygons (you say you need to keep attributes) or create duplicate lines for each polygon sharing that edge (in which case they aren't unnecessary). It's unclear from you question exactly what you are trying to do and how you want to handle this attribute issue - please edit to describe in more detail what you have and what your end goal is. There are tools to delete duplicate lines, combine attributes of two identical geometries, or create single lines in the first place. – Chris W Jun 29 '15 at 17:33