<?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 Merge Geometric Network edges in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/merge-geometric-network-edges/m-p/76059#M2045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to merge two adjacent edge in a network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In particular, i need to merge the geometries and put the new in the oldest&lt;/P&gt;&lt;P&gt;one, deleting the newest (I have modification data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code I using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ((INetworkFeature)finalFeature).Disconnect();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ((INetworkFeature)deletingFeature).Disconnect();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                IPolyline6 new_shape = polyline1.ShapeCopy as IPolyline6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ITopologicalOperator6 topOp = new_shape as&lt;/P&gt;&lt;P&gt;ITopologicalOperator6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                topOp.SimplifyAsFeature();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                IPolyline6 poly2 = polyline2.ShapeCopy as IPolyline6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                poly2.SimplifyNetwork();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                IGeometry finalGeom = topOp.UnionEx(poly2,false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                topOp = finalGeom as ITopologicalOperator6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                topOp.SimplifyAsFeature();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                finalFeature.Shape = finalGeom;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                deletingFeature.Delete();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                finalFeature.Delete();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                finalFeature.Store();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ((INetworkFeature)finalFeature).Connect();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It throw the exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"there is no point geometry associated with the feature element"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabiano Ferrazza&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GIS Specialist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gruppo Engineering&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2016 07:05:58 GMT</pubDate>
    <dc:creator>FabianoFerrazza1</dc:creator>
    <dc:date>2016-08-09T07:05:58Z</dc:date>
    <item>
      <title>Merge Geometric Network edges</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/merge-geometric-network-edges/m-p/76059#M2045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to merge two adjacent edge in a network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In particular, i need to merge the geometries and put the new in the oldest&lt;/P&gt;&lt;P&gt;one, deleting the newest (I have modification data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code I using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ((INetworkFeature)finalFeature).Disconnect();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ((INetworkFeature)deletingFeature).Disconnect();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                IPolyline6 new_shape = polyline1.ShapeCopy as IPolyline6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ITopologicalOperator6 topOp = new_shape as&lt;/P&gt;&lt;P&gt;ITopologicalOperator6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                topOp.SimplifyAsFeature();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                IPolyline6 poly2 = polyline2.ShapeCopy as IPolyline6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                poly2.SimplifyNetwork();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                IGeometry finalGeom = topOp.UnionEx(poly2,false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                topOp = finalGeom as ITopologicalOperator6;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                topOp.SimplifyAsFeature();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                finalFeature.Shape = finalGeom;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                deletingFeature.Delete();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                finalFeature.Delete();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                finalFeature.Store();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                ((INetworkFeature)finalFeature).Connect();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It throw the exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"there is no point geometry associated with the feature element"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is the mistake?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabiano Ferrazza&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GIS Specialist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gruppo Engineering&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 07:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/merge-geometric-network-edges/m-p/76059#M2045</guid>
      <dc:creator>FabianoFerrazza1</dc:creator>
      <dc:date>2016-08-09T07:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Geometric Network edges</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/merge-geometric-network-edges/m-p/76060#M2046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all it is helpful if you use the syntax highlighter on you code to make it easier for everyone else to read. Just go to the advanced editor &amp;gt; more &amp;gt; syntax highlighter. You can retrospectively edit your question and improve it by using the syntax highlighter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an idea, try using &lt;EM&gt;ITopologicaloperator&lt;/EM&gt; and not&amp;nbsp;&lt;EM&gt;ITopologicaloperator6?&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 12:07:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/merge-geometric-network-edges/m-p/76060#M2046</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2016-10-17T12:07:28Z</dc:date>
    </item>
  </channel>
</rss>

