<?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: cumulative sum in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/cumulative-sum/m-p/274659#M21222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have two shapefiles, one is a polyline (Oil Pipeline) and the other is a polygon (land parcels). What I want to is too have a field display the distance (in km) from the start of pipeline when it crosses into a polygon and another when it leaves the polygon. To make things a litte harder in some instances the pipeline crosses then leaves, then re-crosses the same polygon again, I'm only interested in when it first enters the polygon and when it finally leaves.&lt;BR /&gt;&lt;BR /&gt;Any help at all would be really appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would an intersection or union between your polygon and polyline shapefiles give you what you need? Those tools would segment the polyline where it crosses the polygon, and you would then have to calculate the length of the line segments.&amp;nbsp; If you only wanted one value per polygon then you could 'dissolve' the polylines by the polygon ID and create a multipart shape.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 12:37:21 GMT</pubDate>
    <dc:creator>ChristopherThompson</dc:creator>
    <dc:date>2012-10-15T12:37:21Z</dc:date>
    <item>
      <title>cumulative sum</title>
      <link>https://community.esri.com/t5/python-questions/cumulative-sum/m-p/274658#M21221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two shapefiles, one is a polyline (Oil Pipeline) and the other is a polygon (land parcels). What I want to is too have a field display the distance (in km) from the start of pipeline when it crosses into a polygon and another when it leaves the polygon. To make things a litte harder in some instances the pipeline crosses then leaves, then re-crosses the same polygon again, I'm only interested in when it first enters the polygon and when it finally leaves.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help at all would be really appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 21:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cumulative-sum/m-p/274658#M21221</guid>
      <dc:creator>TomCoveney</dc:creator>
      <dc:date>2012-10-12T21:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum</title>
      <link>https://community.esri.com/t5/python-questions/cumulative-sum/m-p/274659#M21222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have two shapefiles, one is a polyline (Oil Pipeline) and the other is a polygon (land parcels). What I want to is too have a field display the distance (in km) from the start of pipeline when it crosses into a polygon and another when it leaves the polygon. To make things a litte harder in some instances the pipeline crosses then leaves, then re-crosses the same polygon again, I'm only interested in when it first enters the polygon and when it finally leaves.&lt;BR /&gt;&lt;BR /&gt;Any help at all would be really appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would an intersection or union between your polygon and polyline shapefiles give you what you need? Those tools would segment the polyline where it crosses the polygon, and you would then have to calculate the length of the line segments.&amp;nbsp; If you only wanted one value per polygon then you could 'dissolve' the polylines by the polygon ID and create a multipart shape.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 12:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cumulative-sum/m-p/274659#M21222</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-10-15T12:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: cumulative sum</title>
      <link>https://community.esri.com/t5/python-questions/cumulative-sum/m-p/274660#M21223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another option is to use the&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/An_overview_of_the_Linear_Referencing_toolbox/003m00000002000000/"&gt; Linear Referencing &lt;/A&gt;&lt;SPAN&gt;tools. Intersect the pipelines with parcels, &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Create_Routes/003m00000005000000/"&gt;create a route &lt;/A&gt;&lt;SPAN&gt;from your pipelines, &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Locate_Features_Along_Routes/003m00000007000000/"&gt;locate&lt;/A&gt;&lt;SPAN&gt; the intersections along the route, &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Make_Route_Event_Layer/003m00000008000000/"&gt;make route events&lt;/A&gt;&lt;SPAN&gt; from the locate table, and export to a permanent feature class. This calculates the distance from the beginning of your pipeline to each intersection point - you're still left with the task of deleting those intermediate points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 21:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/cumulative-sum/m-p/274660#M21223</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-10-15T21:33:28Z</dc:date>
    </item>
  </channel>
</rss>

