<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: merging two features from the same shapefile in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41675#M3322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can ZIP the files of the shapefile and attach the zip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be possible to flip the lines. I'll look into it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 13:31:45 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2013-11-22T13:31:45Z</dc:date>
    <item>
      <title>merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41669#M3316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a shapefile with all the roads in my county. Unfortunately, they are in segments. I am trying to combine them all into the same shapefile where each road has one continuous segment instead of hundreds of little segments. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought about using a loop, SearchCursor, selectByAttribute, and unSplitLine, but that is going to put them all into separate shapefiles (or continuously overwrite them). I need them all in the same shapefile so I can run my analysis on them. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts about how I can move forward are appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bryce&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 11:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41669#M3316</guid>
      <dc:creator>BryceGardner1</dc:creator>
      <dc:date>2013-11-22T11:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41670#M3317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bryce,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you try the "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000005n000000" rel="nofollow" target="_blank"&gt;Dissolve (Data Management)&lt;/A&gt;&lt;SPAN&gt;" tool?&amp;nbsp; Dissolve on your Road ID or name field and with these options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Create multi part features (switched off)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Unsplit lines (switched on)&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;There is also the "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000040000000" rel="nofollow" target="_blank"&gt;Unsplit Line (Data Management)&lt;/A&gt;&lt;SPAN&gt;" tool (Advanced license).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 12:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41670#M3317</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-11-22T12:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41671#M3318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply, Xander. I will try that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bryce&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 12:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41671#M3318</guid>
      <dc:creator>BryceGardner1</dc:creator>
      <dc:date>2013-11-22T12:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41672#M3319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The dissolve tool is working almost as well as it should. For example, the original shapefile has 24 records for E MARKET ST. The dissolved shapefile has 5 records for it. I tried changing to DISSOLVE_LINES thinking that maybe the end vertices aren't exactly coincident, but I am still getting the same result. Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 12:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41672#M3319</guid>
      <dc:creator>BryceGardner1</dc:creator>
      <dc:date>2013-11-22T12:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41673#M3320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bryce,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would probably start with trying to find out why those features couldn't be dissolved into one feature. If they exactly connect, then maybe the direction of the lines is not matching? Try and symbolize the lines using a Cartographic Line Symbol, with in the Line Properties tab defining a line decoration as an arrow (second of the three options). What do you see?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possibility is going into edit mode and examine the feature vertices. Select a feature click Edit Vertices and look at the sketch properties. In case of Z or M do they match?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want share a few features and I can have a look at it...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 12:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41673#M3320</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-11-22T12:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41674#M3321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that appears to be the problem. The lines are pointing in opposite directions for whatever reason. Is there a way around this? I would share the features with you if I knew how. I tried attaching a shapefile, but it seems that is unsupported by the attachment manager.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41674#M3321</guid>
      <dc:creator>BryceGardner1</dc:creator>
      <dc:date>2013-11-22T13:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41675#M3322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can ZIP the files of the shapefile and attach the zip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be possible to flip the lines. I'll look into it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:31:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41675#M3322</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-11-22T13:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41676#M3323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am learning more than I bargained for here. :cool: Here is the zip file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41676#M3323</guid>
      <dc:creator>BryceGardner1</dc:creator>
      <dc:date>2013-11-22T13:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41677#M3324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just tried using switching to MULTI-PART instead of SINGLE_PART. It worked! It doesn't matter if they are separated, the street names in our county aren't allowed to clash with one another. So, we only have one road name per road, instead of a weird situation where 11th St. is on two different sides of town. Thank you for all your help, Xander.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41677#M3324</guid>
      <dc:creator>BryceGardner1</dc:creator>
      <dc:date>2013-11-22T13:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41678#M3325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now, where is the green checkmark? I want to show others that this was answered.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 14:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41678#M3325</guid>
      <dc:creator>BryceGardner1</dc:creator>
      <dc:date>2013-11-22T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: merging two features from the same shapefile</title>
      <link>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41679#M3326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just tried using switching to MULTI-PART instead of SINGLE_PART. It worked! It doesn't matter if they are separated, the street names in our county aren't allowed to clash with one another. So, we only have one road name per road, instead of a weird situation where 11th St. is on two different sides of town. Thank you for all your help, Xander.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hu Bryce,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to hear that the multiparts work for you. In case you want to eventually correct the lines, there is a tool called "&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001v00000005000000"&gt;Flip Line (Editing)&lt;/A&gt;&lt;SPAN&gt;", which can flip the orientation of a polyline. (It is available for standard and advanced licenses.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcObjects the IPolyline interface has a ReverseOrientation method. I don't see this in arcpy, but it wouldn't be too difficult to write.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 14:07:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merging-two-features-from-the-same-shapefile/m-p/41679#M3326</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-11-22T14:07:17Z</dc:date>
    </item>
  </channel>
</rss>

