<?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: Using ESRI.ArcGIS.DataManagementTools.RepairGeometry in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-esri-arcgis-datamanagementtools/m-p/440727#M11965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dale,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I was calling an existing geoprocessing tool in VB then I would use the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IGeoProcessor&lt;/SPAN&gt;&lt;SPAN&gt; Interface. Search for this in the Help and then may be the forum to see how to set it up and supply the parameters to execute it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at this &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/15517-geoprocessor?highlight=igeoprocessor"&gt;thread&lt;/A&gt;&lt;SPAN&gt;, the basic syntax is all there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Jan 2011 12:05:19 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2011-01-09T12:05:19Z</dc:date>
    <item>
      <title>Using ESRI.ArcGIS.DataManagementTools.RepairGeometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-esri-arcgis-datamanagementtools/m-p/440726#M11964</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 am trying to update some code from VB6 to VB.Net 2008 and have been generally successful.&amp;nbsp; However, I come across an issue where, as it processes each polygon in the shapefile and implements the following code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Dim lngExtRing as Integer
lngExtRing = pPolygon.ExteriorRingCount - 1
ReDim pExtRings(pPolygon.ExteriorRingCount - 1)
pPolygon.QueryExteriorRingsEx(pPolygon.ExteriorRingCount, pExtRings(0))
pExtRings(lngExtRing)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Once that code runs and you hover over the pExtRings portion of pExtRings(lngExtRing) for some polygons (not all), the first popup lists a ComObject but if you expand the plus, it indicates "Nothing".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have run this on a shapefile that has 5 polygons and the two polygons that it fails on have negative areas.&amp;nbsp; There are two ways that might resolve this, but I don't know how to implement either.&amp;nbsp; One was to reverse the orientation if the area was negative, but I tried that on a different shapefile and it still failed on a polygon that did not have a negative area.&amp;nbsp; The other, perhaps better, approach would be to implement the RepairGeometry class of ESRI.ArcGIS.DataManagementTools, but I have no clue on how to make it happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone has any insight or examples of how to use RepairGeometry, I would certainly appreciate being enlightened.&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;Dale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 11:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-esri-arcgis-datamanagementtools/m-p/440726#M11964</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2011-01-06T11:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using ESRI.ArcGIS.DataManagementTools.RepairGeometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-esri-arcgis-datamanagementtools/m-p/440727#M11965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dale,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I was calling an existing geoprocessing tool in VB then I would use the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IGeoProcessor&lt;/SPAN&gt;&lt;SPAN&gt; Interface. Search for this in the Help and then may be the forum to see how to set it up and supply the parameters to execute it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at this &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/15517-geoprocessor?highlight=igeoprocessor"&gt;thread&lt;/A&gt;&lt;SPAN&gt;, the basic syntax is all there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 12:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-esri-arcgis-datamanagementtools/m-p/440727#M11965</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2011-01-09T12:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using ESRI.ArcGIS.DataManagementTools.RepairGeometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/using-esri-arcgis-datamanagementtools/m-p/440728#M11966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Duncan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I will pursue that next week when I get a little time to revisit the project.&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;Dale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 15:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/using-esri-arcgis-datamanagementtools/m-p/440728#M11966</guid>
      <dc:creator>DaleBridgford</dc:creator>
      <dc:date>2011-01-14T15:38:16Z</dc:date>
    </item>
  </channel>
</rss>

