<?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 Dissolve the feature after applying buffer to featureClass in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/dissolve-the-feature-after-applying-buffer-to/m-p/276271#M7071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am new to ArcObject C#. I want to dissolve the feature of the featureClass after applying buffer to it. Below is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ISpatialFilter spatialFilter = new SpatialFilter();&lt;BR /&gt; spatialFilter.Geometry = areafeature; &lt;BR /&gt; spatialFilter.GeometryField = priUGFtClass.ShapeFieldName;&lt;BR /&gt; spatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IFeatureCursor priUGCursor = priUGFtClass.Search(spatialFilter, true);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// priUGFTClass is my featureClass&lt;BR /&gt; IFeature priUGFeature = null;&lt;BR /&gt; IGeometry buffGeometry;&lt;BR /&gt; ITopologicalOperator topologicalOperator, topologicalOperator1;&lt;BR /&gt; IGeometry polygon, geometry;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while ((priUGFeature = priUGCursor.NextFeature()) != null)&lt;BR /&gt; {&lt;BR /&gt;Console.WriteLine("Total Fields before buffer : "+priUGFeature.Fields.FieldCount);&lt;BR /&gt; buffGeometry = priUGFeature.ShapeCopy;&lt;BR /&gt; topologicalOperator = buffGeometry as ITopologicalOperator;&lt;BR /&gt; polygon = topologicalOperator.Buffer(0.00004);&lt;BR /&gt; &lt;BR /&gt; priUGFeature = shapeFileClass.CreateFeature();&lt;BR /&gt; priUGFeature.Shape = polygon;&lt;BR /&gt; topologicalOperator1 = priUGFeature.ShapeCopy as ITopologicalOperator;&lt;BR /&gt; geometry = topologicalOperator1.Intersect(areafeature, esriGeometryDimension.esriGeometry2Dimension);&lt;BR /&gt; &lt;BR /&gt; priUGFeature.Shape = geometry;&lt;BR /&gt; priUGFeature.Store();&amp;nbsp; // I am storing feature in FeatureClass&lt;BR /&gt; // Console.WriteLine("Total fields : " + priUGFeature.Fields.FieldCount); */&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;After applying buffer to feature, at the same time I want to dissolve that featureClass. I googled but didn't find anything.&amp;nbsp;&lt;BR /&gt;I also want to Union all buffered feature.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2018 13:49:56 GMT</pubDate>
    <dc:creator>MayurPatel</dc:creator>
    <dc:date>2018-06-18T13:49:56Z</dc:date>
    <item>
      <title>Dissolve the feature after applying buffer to featureClass</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/dissolve-the-feature-after-applying-buffer-to/m-p/276271#M7071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am new to ArcObject C#. I want to dissolve the feature of the featureClass after applying buffer to it. Below is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;ISpatialFilter spatialFilter = new SpatialFilter();&lt;BR /&gt; spatialFilter.Geometry = areafeature; &lt;BR /&gt; spatialFilter.GeometryField = priUGFtClass.ShapeFieldName;&lt;BR /&gt; spatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IFeatureCursor priUGCursor = priUGFtClass.Search(spatialFilter, true);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// priUGFTClass is my featureClass&lt;BR /&gt; IFeature priUGFeature = null;&lt;BR /&gt; IGeometry buffGeometry;&lt;BR /&gt; ITopologicalOperator topologicalOperator, topologicalOperator1;&lt;BR /&gt; IGeometry polygon, geometry;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while ((priUGFeature = priUGCursor.NextFeature()) != null)&lt;BR /&gt; {&lt;BR /&gt;Console.WriteLine("Total Fields before buffer : "+priUGFeature.Fields.FieldCount);&lt;BR /&gt; buffGeometry = priUGFeature.ShapeCopy;&lt;BR /&gt; topologicalOperator = buffGeometry as ITopologicalOperator;&lt;BR /&gt; polygon = topologicalOperator.Buffer(0.00004);&lt;BR /&gt; &lt;BR /&gt; priUGFeature = shapeFileClass.CreateFeature();&lt;BR /&gt; priUGFeature.Shape = polygon;&lt;BR /&gt; topologicalOperator1 = priUGFeature.ShapeCopy as ITopologicalOperator;&lt;BR /&gt; geometry = topologicalOperator1.Intersect(areafeature, esriGeometryDimension.esriGeometry2Dimension);&lt;BR /&gt; &lt;BR /&gt; priUGFeature.Shape = geometry;&lt;BR /&gt; priUGFeature.Store();&amp;nbsp; // I am storing feature in FeatureClass&lt;BR /&gt; // Console.WriteLine("Total fields : " + priUGFeature.Fields.FieldCount); */&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;After applying buffer to feature, at the same time I want to dissolve that featureClass. I googled but didn't find anything.&amp;nbsp;&lt;BR /&gt;I also want to Union all buffered feature.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 13:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/dissolve-the-feature-after-applying-buffer-to/m-p/276271#M7071</guid>
      <dc:creator>MayurPatel</dc:creator>
      <dc:date>2018-06-18T13:49:56Z</dc:date>
    </item>
  </channel>
</rss>

