<?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 Determining Upstream and Downstream polylines in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/determining-upstream-and-downstream-polylines/m-p/518663#M14005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for the best approach to determining the upstream and downstream polylines of two segments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code that has just split a polyline into two segments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
ISet newSet = featureEditor.Split(_pointFeature);
IFeature newLine = (IFeature)newSet.Next();
while (newLine != null)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // determine up / downstream?&amp;nbsp; or old / new sewer?
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newLine = (IFeature)newSet.Next();
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 14:53:52 GMT</pubDate>
    <dc:creator>KevinYanuk</dc:creator>
    <dc:date>2013-05-14T14:53:52Z</dc:date>
    <item>
      <title>Determining Upstream and Downstream polylines</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/determining-upstream-and-downstream-polylines/m-p/518663#M14005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for the best approach to determining the upstream and downstream polylines of two segments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code that has just split a polyline into two segments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
ISet newSet = featureEditor.Split(_pointFeature);
IFeature newLine = (IFeature)newSet.Next();
while (newLine != null)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // determine up / downstream?&amp;nbsp; or old / new sewer?
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newLine = (IFeature)newSet.Next();
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 14:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/determining-upstream-and-downstream-polylines/m-p/518663#M14005</guid>
      <dc:creator>KevinYanuk</dc:creator>
      <dc:date>2013-05-14T14:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Determining Upstream and Downstream polylines</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/determining-upstream-and-downstream-polylines/m-p/518664#M14006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's been a while but my recollection from dealing with street centerlines is that both resulting geometries would follow the direction of the origin polyline.&amp;nbsp; A polyline has a FromPoint and ToPoint which gives you an idea of the direction it is going.&amp;nbsp; If you need to know which is upstream for the other, check the new segments ToPoint &amp;amp; FromPoint... if lineA.FromPoint = LineB.ToPoint then Line B is 'upstream' (according to the original feature's direction).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 00:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/determining-upstream-and-downstream-polylines/m-p/518664#M14006</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2013-05-23T00:55:26Z</dc:date>
    </item>
  </channel>
</rss>

