<?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: Create a circular polygon in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294394#M7655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is also a Densify Method on IGeometryBridge, IGeometryService, IPolycurve and ISegment. This should convert a curve shape to an array of points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Apr 2010 17:03:58 GMT</pubDate>
    <dc:creator>EricPaitz</dc:creator>
    <dc:date>2010-04-30T17:03:58Z</dc:date>
    <item>
      <title>Create a circular polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294391#M7652</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 have written a C# tool that extracts the points of a given polygon and modifies some of the z-values. The result will then be used to create a new polygon feature. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private IPolygon GetPolygonFromShape(IFeature feature, bool hasz)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPointCollection4 pcol1 = (IPointCollection4)feature.Shape;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; pcol1.PointCount; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// do something.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPolygon polygon = pcol1 as IPolygon;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return polygon;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have now the problem that the original feature is sometimes a circle and the extracted PointCollection contains only 2 points. When I try to create the new polygon I get of course an exception 'The number of points is less than required for feature'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I find out that a feature in a polygon class is a circle or a cicular arc? And how do I create the new feature as a circle from the 2 points?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks an regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas Waenke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 15:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294391#M7652</guid>
      <dc:creator>ThomasWaenke</dc:creator>
      <dc:date>2010-04-22T15:36:41Z</dc:date>
    </item>
    <item>
      <title>Create a circular polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294392#M7653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ISegmentCollection.HasNonLinearSegments should be true for polygons having any segments that are ICircularArcs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 16:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294392#M7653</guid>
      <dc:creator>KirkKuykendall</dc:creator>
      <dc:date>2010-04-22T16:35:13Z</dc:date>
    </item>
    <item>
      <title>Create a circular polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294393#M7654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your hints. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem seems to be more complex than I thought.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to read features from a FeatureClass that has no Z-values and write the features - after adding Z -&amp;nbsp; to a z-aware class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There seems to be no functionality in the API to change the geometry this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way that I found is to recreate the features from the original vertices. This workes fine for simple lines and polygons but not when there are more complex elements. Looks like a lot of programming work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas Waenke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 07:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294393#M7654</guid>
      <dc:creator>ThomasWaenke</dc:creator>
      <dc:date>2010-04-23T07:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create a circular polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294394#M7655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is also a Densify Method on IGeometryBridge, IGeometryService, IPolycurve and ISegment. This should convert a curve shape to an array of points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 17:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294394#M7655</guid>
      <dc:creator>EricPaitz</dc:creator>
      <dc:date>2010-04-30T17:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a circular polygon</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294395#M7656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There is also a Densify Method on IGeometryBridge, IGeometryService, IPolycurve and ISegment. This should convert a curve shape to an array of points.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the second post &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/42700-.NET-Modify-Z-or-M-without-modifying-curves"&gt;in the thread&lt;/A&gt;&lt;SPAN&gt; for a method that will modify either Z or M values of a nonlinear polyine without destrying the feature's curved segments (written for VB .NET, but similar to VBA if you add the Set keyword).&amp;nbsp; The same principles and coding concepts apply to manipulating Z and M values in nonlinear polygons.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2011 16:47:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/create-a-circular-polygon/m-p/294395#M7656</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2011-10-29T16:47:26Z</dc:date>
    </item>
  </channel>
</rss>

