Dissolve a polyline feature class so that touching features dissolve into a single feature ...
Is high blood pressure ever a symptom attributable solely to dehydration?
What is this single-engine low-wing propeller plane?
Why did the IBM 650 use bi-quinary?
How does cp -a work
Why are there no cargo aircraft with "flying wing" design?
Java 8 stream max() function argument type Comparator vs Comparable
What does the "x" in "x86" represent?
Disable hyphenation for an entire paragraph
Models of set theory where not every set can be linearly ordered
Sorting numerically
Can a non-EU citizen traveling with me come with me through the EU passport line?
Do you forfeit tax refunds/credits if you aren't required to and don't file by April 15?
Is it true to say that an hosting provider's DNS server is what links the entire hosting environment to ICANN?
Single word antonym of "flightless"
Are my PIs rude or am I just being too sensitive?
Does accepting a pardon have any bearing on trying that person for the same crime in a sovereign jurisdiction?
How widely used is the term Treppenwitz? Is it something that most Germans know?
What do you call a plan that's an alternative plan in case your initial plan fails?
How discoverable are IPv6 addresses and AAAA names by potential attackers?
What's the purpose of writing one's academic bio in 3rd person?
Stars Make Stars
What LEGO pieces have "real-world" functionality?
How much radiation do nuclear physics experiments expose researchers to nowadays?
Right-skewed distribution with mean equals to mode?
Dissolve a polyline feature class so that touching features dissolve into a single feature
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How to dissolve polygons that have been split back into their original polygons?Remove/dissolve parts in ESRI line feature classWhy is my dissolve not outputting my features correctly?Copy selected features to another feature classUnsplit/Dissolve multiple touching lines in Stream Network using ArcGIS Desktop?Collapsing multiple lines into single line?Merging lines (that might cross) at common endpoints without multi-part features in the resultCombining touching polygons, keeping all attributes from Class “A” feature, using ArcGIS Desktop?Weighted-area averages using dissolve for SINGLE PART featuresUnsplitting lines with ArcGIS tool 'Unsplit Lines'
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm trying to dissolve a polyline feature class so that spatially intersecting features become a single feature. When I run the Dissolve tool, setting Create multipart features and Unsplit lines both to false, I get unexpected results. In the example below, two line features I'd hoped to dissolve into one became three line features:

Is there a way to dissolve a line feature class so that any touching features dissolve into one?
arcgis-desktop arcgis-10.1 dissolve
|
show 7 more comments
I'm trying to dissolve a polyline feature class so that spatially intersecting features become a single feature. When I run the Dissolve tool, setting Create multipart features and Unsplit lines both to false, I get unexpected results. In the example below, two line features I'd hoped to dissolve into one became three line features:

Is there a way to dissolve a line feature class so that any touching features dissolve into one?
arcgis-desktop arcgis-10.1 dissolve
Why setUnsplit linesto false?
– yanes
Dec 22 '15 at 22:09
@yanes because I want my features to dissolve if the intersect, even if there are no vertices at the point of intersection
– Emil Brundage
Dec 22 '15 at 22:11
I see, the standard dissolve function doesn't have a tolerance option, are you sure your lines touch? or may be you need to do a snapping procedure if not-touching lines are the problem
– yanes
Dec 22 '15 at 22:16
you can also usemergebut I am not sure if automating is possible with that option
– yanes
Dec 22 '15 at 22:17
1
Try building a geometric network from the lines. The build "should" snap and insert vertices at intersections, including flattening the lines you describe. From there it should be easy to dissolve. Set unsplit lines = true and multipart = false
– Ben S Nadler
Dec 23 '15 at 4:37
|
show 7 more comments
I'm trying to dissolve a polyline feature class so that spatially intersecting features become a single feature. When I run the Dissolve tool, setting Create multipart features and Unsplit lines both to false, I get unexpected results. In the example below, two line features I'd hoped to dissolve into one became three line features:

Is there a way to dissolve a line feature class so that any touching features dissolve into one?
arcgis-desktop arcgis-10.1 dissolve
I'm trying to dissolve a polyline feature class so that spatially intersecting features become a single feature. When I run the Dissolve tool, setting Create multipart features and Unsplit lines both to false, I get unexpected results. In the example below, two line features I'd hoped to dissolve into one became three line features:

Is there a way to dissolve a line feature class so that any touching features dissolve into one?
arcgis-desktop arcgis-10.1 dissolve
arcgis-desktop arcgis-10.1 dissolve
edited Dec 23 '15 at 0:22
Emil Brundage
asked Dec 22 '15 at 21:54
Emil BrundageEmil Brundage
9,70811645
9,70811645
Why setUnsplit linesto false?
– yanes
Dec 22 '15 at 22:09
@yanes because I want my features to dissolve if the intersect, even if there are no vertices at the point of intersection
– Emil Brundage
Dec 22 '15 at 22:11
I see, the standard dissolve function doesn't have a tolerance option, are you sure your lines touch? or may be you need to do a snapping procedure if not-touching lines are the problem
– yanes
Dec 22 '15 at 22:16
you can also usemergebut I am not sure if automating is possible with that option
– yanes
Dec 22 '15 at 22:17
1
Try building a geometric network from the lines. The build "should" snap and insert vertices at intersections, including flattening the lines you describe. From there it should be easy to dissolve. Set unsplit lines = true and multipart = false
– Ben S Nadler
Dec 23 '15 at 4:37
|
show 7 more comments
Why setUnsplit linesto false?
– yanes
Dec 22 '15 at 22:09
@yanes because I want my features to dissolve if the intersect, even if there are no vertices at the point of intersection
– Emil Brundage
Dec 22 '15 at 22:11
I see, the standard dissolve function doesn't have a tolerance option, are you sure your lines touch? or may be you need to do a snapping procedure if not-touching lines are the problem
– yanes
Dec 22 '15 at 22:16
you can also usemergebut I am not sure if automating is possible with that option
– yanes
Dec 22 '15 at 22:17
1
Try building a geometric network from the lines. The build "should" snap and insert vertices at intersections, including flattening the lines you describe. From there it should be easy to dissolve. Set unsplit lines = true and multipart = false
– Ben S Nadler
Dec 23 '15 at 4:37
Why set
Unsplit lines to false?– yanes
Dec 22 '15 at 22:09
Why set
Unsplit lines to false?– yanes
Dec 22 '15 at 22:09
@yanes because I want my features to dissolve if the intersect, even if there are no vertices at the point of intersection
– Emil Brundage
Dec 22 '15 at 22:11
@yanes because I want my features to dissolve if the intersect, even if there are no vertices at the point of intersection
– Emil Brundage
Dec 22 '15 at 22:11
I see, the standard dissolve function doesn't have a tolerance option, are you sure your lines touch? or may be you need to do a snapping procedure if not-touching lines are the problem
– yanes
Dec 22 '15 at 22:16
I see, the standard dissolve function doesn't have a tolerance option, are you sure your lines touch? or may be you need to do a snapping procedure if not-touching lines are the problem
– yanes
Dec 22 '15 at 22:16
you can also use
merge but I am not sure if automating is possible with that option– yanes
Dec 22 '15 at 22:17
you can also use
merge but I am not sure if automating is possible with that option– yanes
Dec 22 '15 at 22:17
1
1
Try building a geometric network from the lines. The build "should" snap and insert vertices at intersections, including flattening the lines you describe. From there it should be easy to dissolve. Set unsplit lines = true and multipart = false
– Ben S Nadler
Dec 23 '15 at 4:37
Try building a geometric network from the lines. The build "should" snap and insert vertices at intersections, including flattening the lines you describe. From there it should be easy to dissolve. Set unsplit lines = true and multipart = false
– Ben S Nadler
Dec 23 '15 at 4:37
|
show 7 more comments
3 Answers
3
active
oldest
votes
All three or four way intersections or non-intersecting crossing lines that dissolve are by definition going to form multi-part lines, since single part lines by definition can only have two end vertices and only two segments maximum can meet at any connecting vertex.
The way to do this is as follows:
- Buffer the lines a very, very small amount and create a single feature (multi-part polygon).
- Explode the polygon buffer into its separate parts to form polygons that cover only the lines that touch within the very, very small buffer distance.
- Calculate a long field in the polygons to be equal to the ObjectID of each exploded polygon.
- Use the Spatial Join tool with the lines as the target and the polygons as the join features.
- Dissolve the lines created by the spatial join output using the long field from the polygon that has the ObjectID of the polygon as the Dissolve field (Case field). Make sure the Create Multipart feature option is checked and the line ends option is unchecked.
You will end up with what you are looking. Every lines that touches another line at any crossing or intersection of any kind will have merged into a single polyline feature. These polyline features will nonetheless be a multi-part line feature anytime a line crossing or 3-way or greater intersection exists.
add a comment |
I think your problem is that you need to leave "Create Multipart Features" set to True. The line you're describing is a multi-part line. By setting "Create Multipart Features" to false, you're telling the GIS to split those lines into two features.
Setting that to true creates a single feature from the entire feature class.
– Emil Brundage
Dec 22 '15 at 22:29
is the entire feature class connected (like a network where there are no gaps)?
– yanes
Dec 22 '15 at 22:33
No, the single feature is multipart.
– Emil Brundage
Dec 22 '15 at 22:34
then did you check if seemingly touching lines may be are not touching? or that is not the case?
– yanes
Dec 22 '15 at 22:36
Oh, now I see your problem. You'd likely have to write a script that, at the geometry level, detects whether two lines are touching, then union that geometry into one object and write it back to a new file.
– CStarbird
Dec 22 '15 at 22:36
|
show 3 more comments
I think you will get what you want if you set both Create multipart features and Unsplit lines to TRUE (on).
That unsplits contiguous lines but does not create discontiguous multipart features.
New contributor
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f174752%2fdissolve-a-polyline-feature-class-so-that-touching-features-dissolve-into-a-sing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
All three or four way intersections or non-intersecting crossing lines that dissolve are by definition going to form multi-part lines, since single part lines by definition can only have two end vertices and only two segments maximum can meet at any connecting vertex.
The way to do this is as follows:
- Buffer the lines a very, very small amount and create a single feature (multi-part polygon).
- Explode the polygon buffer into its separate parts to form polygons that cover only the lines that touch within the very, very small buffer distance.
- Calculate a long field in the polygons to be equal to the ObjectID of each exploded polygon.
- Use the Spatial Join tool with the lines as the target and the polygons as the join features.
- Dissolve the lines created by the spatial join output using the long field from the polygon that has the ObjectID of the polygon as the Dissolve field (Case field). Make sure the Create Multipart feature option is checked and the line ends option is unchecked.
You will end up with what you are looking. Every lines that touches another line at any crossing or intersection of any kind will have merged into a single polyline feature. These polyline features will nonetheless be a multi-part line feature anytime a line crossing or 3-way or greater intersection exists.
add a comment |
All three or four way intersections or non-intersecting crossing lines that dissolve are by definition going to form multi-part lines, since single part lines by definition can only have two end vertices and only two segments maximum can meet at any connecting vertex.
The way to do this is as follows:
- Buffer the lines a very, very small amount and create a single feature (multi-part polygon).
- Explode the polygon buffer into its separate parts to form polygons that cover only the lines that touch within the very, very small buffer distance.
- Calculate a long field in the polygons to be equal to the ObjectID of each exploded polygon.
- Use the Spatial Join tool with the lines as the target and the polygons as the join features.
- Dissolve the lines created by the spatial join output using the long field from the polygon that has the ObjectID of the polygon as the Dissolve field (Case field). Make sure the Create Multipart feature option is checked and the line ends option is unchecked.
You will end up with what you are looking. Every lines that touches another line at any crossing or intersection of any kind will have merged into a single polyline feature. These polyline features will nonetheless be a multi-part line feature anytime a line crossing or 3-way or greater intersection exists.
add a comment |
All three or four way intersections or non-intersecting crossing lines that dissolve are by definition going to form multi-part lines, since single part lines by definition can only have two end vertices and only two segments maximum can meet at any connecting vertex.
The way to do this is as follows:
- Buffer the lines a very, very small amount and create a single feature (multi-part polygon).
- Explode the polygon buffer into its separate parts to form polygons that cover only the lines that touch within the very, very small buffer distance.
- Calculate a long field in the polygons to be equal to the ObjectID of each exploded polygon.
- Use the Spatial Join tool with the lines as the target and the polygons as the join features.
- Dissolve the lines created by the spatial join output using the long field from the polygon that has the ObjectID of the polygon as the Dissolve field (Case field). Make sure the Create Multipart feature option is checked and the line ends option is unchecked.
You will end up with what you are looking. Every lines that touches another line at any crossing or intersection of any kind will have merged into a single polyline feature. These polyline features will nonetheless be a multi-part line feature anytime a line crossing or 3-way or greater intersection exists.
All three or four way intersections or non-intersecting crossing lines that dissolve are by definition going to form multi-part lines, since single part lines by definition can only have two end vertices and only two segments maximum can meet at any connecting vertex.
The way to do this is as follows:
- Buffer the lines a very, very small amount and create a single feature (multi-part polygon).
- Explode the polygon buffer into its separate parts to form polygons that cover only the lines that touch within the very, very small buffer distance.
- Calculate a long field in the polygons to be equal to the ObjectID of each exploded polygon.
- Use the Spatial Join tool with the lines as the target and the polygons as the join features.
- Dissolve the lines created by the spatial join output using the long field from the polygon that has the ObjectID of the polygon as the Dissolve field (Case field). Make sure the Create Multipart feature option is checked and the line ends option is unchecked.
You will end up with what you are looking. Every lines that touches another line at any crossing or intersection of any kind will have merged into a single polyline feature. These polyline features will nonetheless be a multi-part line feature anytime a line crossing or 3-way or greater intersection exists.
edited Dec 23 '15 at 21:04
answered Dec 23 '15 at 0:59
Richard FairhurstRichard Fairhurst
7,98511017
7,98511017
add a comment |
add a comment |
I think your problem is that you need to leave "Create Multipart Features" set to True. The line you're describing is a multi-part line. By setting "Create Multipart Features" to false, you're telling the GIS to split those lines into two features.
Setting that to true creates a single feature from the entire feature class.
– Emil Brundage
Dec 22 '15 at 22:29
is the entire feature class connected (like a network where there are no gaps)?
– yanes
Dec 22 '15 at 22:33
No, the single feature is multipart.
– Emil Brundage
Dec 22 '15 at 22:34
then did you check if seemingly touching lines may be are not touching? or that is not the case?
– yanes
Dec 22 '15 at 22:36
Oh, now I see your problem. You'd likely have to write a script that, at the geometry level, detects whether two lines are touching, then union that geometry into one object and write it back to a new file.
– CStarbird
Dec 22 '15 at 22:36
|
show 3 more comments
I think your problem is that you need to leave "Create Multipart Features" set to True. The line you're describing is a multi-part line. By setting "Create Multipart Features" to false, you're telling the GIS to split those lines into two features.
Setting that to true creates a single feature from the entire feature class.
– Emil Brundage
Dec 22 '15 at 22:29
is the entire feature class connected (like a network where there are no gaps)?
– yanes
Dec 22 '15 at 22:33
No, the single feature is multipart.
– Emil Brundage
Dec 22 '15 at 22:34
then did you check if seemingly touching lines may be are not touching? or that is not the case?
– yanes
Dec 22 '15 at 22:36
Oh, now I see your problem. You'd likely have to write a script that, at the geometry level, detects whether two lines are touching, then union that geometry into one object and write it back to a new file.
– CStarbird
Dec 22 '15 at 22:36
|
show 3 more comments
I think your problem is that you need to leave "Create Multipart Features" set to True. The line you're describing is a multi-part line. By setting "Create Multipart Features" to false, you're telling the GIS to split those lines into two features.
I think your problem is that you need to leave "Create Multipart Features" set to True. The line you're describing is a multi-part line. By setting "Create Multipart Features" to false, you're telling the GIS to split those lines into two features.
answered Dec 22 '15 at 22:28
CStarbirdCStarbird
1067
1067
Setting that to true creates a single feature from the entire feature class.
– Emil Brundage
Dec 22 '15 at 22:29
is the entire feature class connected (like a network where there are no gaps)?
– yanes
Dec 22 '15 at 22:33
No, the single feature is multipart.
– Emil Brundage
Dec 22 '15 at 22:34
then did you check if seemingly touching lines may be are not touching? or that is not the case?
– yanes
Dec 22 '15 at 22:36
Oh, now I see your problem. You'd likely have to write a script that, at the geometry level, detects whether two lines are touching, then union that geometry into one object and write it back to a new file.
– CStarbird
Dec 22 '15 at 22:36
|
show 3 more comments
Setting that to true creates a single feature from the entire feature class.
– Emil Brundage
Dec 22 '15 at 22:29
is the entire feature class connected (like a network where there are no gaps)?
– yanes
Dec 22 '15 at 22:33
No, the single feature is multipart.
– Emil Brundage
Dec 22 '15 at 22:34
then did you check if seemingly touching lines may be are not touching? or that is not the case?
– yanes
Dec 22 '15 at 22:36
Oh, now I see your problem. You'd likely have to write a script that, at the geometry level, detects whether two lines are touching, then union that geometry into one object and write it back to a new file.
– CStarbird
Dec 22 '15 at 22:36
Setting that to true creates a single feature from the entire feature class.
– Emil Brundage
Dec 22 '15 at 22:29
Setting that to true creates a single feature from the entire feature class.
– Emil Brundage
Dec 22 '15 at 22:29
is the entire feature class connected (like a network where there are no gaps)?
– yanes
Dec 22 '15 at 22:33
is the entire feature class connected (like a network where there are no gaps)?
– yanes
Dec 22 '15 at 22:33
No, the single feature is multipart.
– Emil Brundage
Dec 22 '15 at 22:34
No, the single feature is multipart.
– Emil Brundage
Dec 22 '15 at 22:34
then did you check if seemingly touching lines may be are not touching? or that is not the case?
– yanes
Dec 22 '15 at 22:36
then did you check if seemingly touching lines may be are not touching? or that is not the case?
– yanes
Dec 22 '15 at 22:36
Oh, now I see your problem. You'd likely have to write a script that, at the geometry level, detects whether two lines are touching, then union that geometry into one object and write it back to a new file.
– CStarbird
Dec 22 '15 at 22:36
Oh, now I see your problem. You'd likely have to write a script that, at the geometry level, detects whether two lines are touching, then union that geometry into one object and write it back to a new file.
– CStarbird
Dec 22 '15 at 22:36
|
show 3 more comments
I think you will get what you want if you set both Create multipart features and Unsplit lines to TRUE (on).
That unsplits contiguous lines but does not create discontiguous multipart features.
New contributor
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I think you will get what you want if you set both Create multipart features and Unsplit lines to TRUE (on).
That unsplits contiguous lines but does not create discontiguous multipart features.
New contributor
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I think you will get what you want if you set both Create multipart features and Unsplit lines to TRUE (on).
That unsplits contiguous lines but does not create discontiguous multipart features.
New contributor
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I think you will get what you want if you set both Create multipart features and Unsplit lines to TRUE (on).
That unsplits contiguous lines but does not create discontiguous multipart features.
New contributor
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 10 mins ago
fionag11fionag11
11
11
New contributor
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
fionag11 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f174752%2fdissolve-a-polyline-feature-class-so-that-touching-features-dissolve-into-a-sing%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why set
Unsplit linesto false?– yanes
Dec 22 '15 at 22:09
@yanes because I want my features to dissolve if the intersect, even if there are no vertices at the point of intersection
– Emil Brundage
Dec 22 '15 at 22:11
I see, the standard dissolve function doesn't have a tolerance option, are you sure your lines touch? or may be you need to do a snapping procedure if not-touching lines are the problem
– yanes
Dec 22 '15 at 22:16
you can also use
mergebut I am not sure if automating is possible with that option– yanes
Dec 22 '15 at 22:17
1
Try building a geometric network from the lines. The build "should" snap and insert vertices at intersections, including flattening the lines you describe. From there it should be easy to dissolve. Set unsplit lines = true and multipart = false
– Ben S Nadler
Dec 23 '15 at 4:37