<?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: Does ArcObjects ConstructUnion operation sometimes fail to merge touching parcels in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728964#M19426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try using a ITopologicalOperator and just Union them together.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in c++ assuming ipGeometryOne and ipGeometryTwo are valid IGeometryPtr's:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;HRESULT hr = ((ITopologicalOperatorPtr)ipGeometryOne)-&amp;gt;Union(ipGeometryTwo, &amp;amp;ipGeometryOne);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Sep 2013 11:41:56 GMT</pubDate>
    <dc:creator>BennettChamberland</dc:creator>
    <dc:date>2013-09-25T11:41:56Z</dc:date>
    <item>
      <title>Does ArcObjects ConstructUnion operation sometimes fail to merge touching parcels?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728962#M19424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have some code which identifies touching parcels and uses ConstructUnion to produce a single polygon from them. Just occasionally&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the touching parcels remain unmerged even though they have been selected with esriSpatialRelTouches. Is this a known bug? Or, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the reason might be that I am using a geometryBag to store the parcels to be merged. The constructUnion documentation states &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that it does not work on a geometrybag but I cannot find a single example on the web of anything else being used instead - can &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;anyone advise what I should be using?&amp;nbsp; I am working with shapefiles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Val&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 03:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728962#M19424</guid>
      <dc:creator>ValMacduff</dc:creator>
      <dc:date>2013-09-25T03:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Does ArcObjects ConstructUnion operation sometimes fail to merge touching parcels</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728963#M19425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a link to one example of ConstructUnion: &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=1170&amp;amp;t=80838"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=1170&amp;amp;t=80838&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One possibility is your polygon is not simple. I had the same issue. The polygon ring must be clockwise, if it is not constructed this way, your polygon is not simple and you need to simplify it shown in the link above before you put it into geometry bag.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 11:40:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728963#M19425</guid>
      <dc:creator>HailiangShen</dc:creator>
      <dc:date>2013-09-25T11:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Does ArcObjects ConstructUnion operation sometimes fail to merge touching parcels</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728964#M19426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try using a ITopologicalOperator and just Union them together.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in c++ assuming ipGeometryOne and ipGeometryTwo are valid IGeometryPtr's:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;HRESULT hr = ((ITopologicalOperatorPtr)ipGeometryOne)-&amp;gt;Union(ipGeometryTwo, &amp;amp;ipGeometryOne);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 11:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728964#M19426</guid>
      <dc:creator>BennettChamberland</dc:creator>
      <dc:date>2013-09-25T11:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Does ArcObjects ConstructUnion operation sometimes fail to merge touching parcels</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728965#M19427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shenh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your response. I think that anti-clockwise rings are almost certainly causing the problem as the data I am working with is not always very clean. Interestingly, ARCMAP Dissolve does not have a problem with the same data so I am looking at using that in Python instead of ArcObjects. It is a great deal faster than my own ArcObjects code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Val&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 10:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/does-arcobjects-constructunion-operation-sometimes/m-p/728965#M19427</guid>
      <dc:creator>ValMacduff</dc:creator>
      <dc:date>2013-09-26T10:15:52Z</dc:date>
    </item>
  </channel>
</rss>

