2

I am dealing with a multipart polygon shapefile of Canada, where each province is its own polygon. Simply for cartographic purposes I want to display the provincial boundaries as a dashed line but given that shared boundaries are not actually shared (2 lines overlapping) in a multipart polygon I am unable to use a dashed line as it does not line up between the two shapes and is no longer dashed!

My end goal would be to 'merge' those shared boundaries so they appear as a single line rather than two overlapping lines. I have tried dissolving, multipart to singlepart, topology, polygon to polyline and nothing seems to achieve my goal.

Like I said, this is purely for cartographic purposes so the method does not have to be perfect and a MacGyver workflow would suffice. I am running ArcGIS 10.4.1 for Desktop basic lisence.

  • Why doesn't polygon to polyline work for you? If you converted your polygons to lines and removed duplicate lines or merged them, you'd have only one line between provinces. – Fezter Mar 1 '17 at 23:42
  • Feature to line plus dissolve will do – FelixIP Mar 2 '17 at 0:13
  • Polygon to Line resources.arcgis.com/en/help/main/10.2/index.html#//… is the tool you want (advanced license required) this will generate a single line at the abutment of two polygons, optionally with OIDs from left and right polygon... that is assuming the polygons are coalescing and not just a visual close enough. If you can't get an advanced license then you will need to get QGIS to use gis.stackexchange.com/questions/33217/… – Michael Stimson Mar 2 '17 at 1:21
1

Use the intersect tool and set the 'Output Type' to 'LINE'. This will return only lines where the polygons intersect:

enter image description here

The polygon boundaries must match for this to work. Here is my example - the red line is the result of the intersect tool:

enter image description here

To get all your lines at once, intersect the provinces with themselves (add the layer twice to the intersect input). Then you get all your lines back in one step.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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