<?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: how to: constructing polygon boundary with circular arc segments in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503042#M39523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2016 08:53:04 GMT</pubDate>
    <dc:creator>BernhardEhrminger</dc:creator>
    <dc:date>2016-07-29T08:53:04Z</dc:date>
    <item>
      <title>how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503038#M39519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear group members&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to construct polygons with linear boundary segments.&lt;/P&gt;&lt;P&gt;So here is a short python expample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array = arcpy.Array()&lt;/P&gt;&lt;P&gt;coordinates=['some data']&lt;/P&gt;&lt;P&gt;for coordinate in coordinates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(coordinate[0], coordinate[1]))&lt;/P&gt;&lt;P&gt;array.add(array.getObject(0))&amp;nbsp; #close polygon&lt;/P&gt;&lt;P&gt;polygon = arcpy.Polygon(array)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please, is there some advice on how to construct a polygon boundary with circular arc segments alternating with linear segments using python &amp;amp; arcpy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 07:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503038#M39519</guid>
      <dc:creator>BernhardEhrminger</dc:creator>
      <dc:date>2016-07-29T07:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503039#M39520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arcobjects &lt;A href="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#icirculararc.htm" title="http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#icirculararc.htm"&gt;http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#icirculararc.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;no mention of python here &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/editing-existing-features/changing-a-segment-to-straight-or-curved.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/editing-existing-features/changing-a-segment-to-straight-or-curved.htm"&gt;Changing a segment into a straight line, a circular arc, or a Bézier curve—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;nor is there an arc geometry objec &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/geometry.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/geometry.htm"&gt;Geometry—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;perhaps if you could elaborate on what you are trying to do, then a solution might be at hand.&amp;nbsp; Circular arcs can be replaced by densified line segments and would suit most situations unless you are trying to replace CAD functionality&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 07:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503039#M39520</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-29T07:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503040#M39521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, thank you for your reply.&lt;/P&gt;&lt;P&gt;I am searching for a technique for importing geographic data form ASCII files. In those data sets, circular arcs are described by three points on the arc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503040#M39521</guid>
      <dc:creator>BernhardEhrminger</dc:creator>
      <dc:date>2016-07-29T08:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503041#M39522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am familiar with how circular arcs, I am just saying there is no built in way to generate an arc using builtin python for use in ArcMap. If you examine the arcpy interface you will see there is no arc class... you can connect the dots at worst or generate a multisegmented polyline, but if you intent is to generate a true arc, then you should look at arcobjects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503041#M39522</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-29T08:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503042#M39523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, thank you again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503042#M39523</guid>
      <dc:creator>BernhardEhrminger</dc:creator>
      <dc:date>2016-07-29T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503043#M39524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan is right, no objects in arcpy to construct these. There is a possible solution provided here: &lt;A href="http://stackoverflow.com/questions/23436421/drawing-a-circular-arc-using-arcpy" title="http://stackoverflow.com/questions/23436421/drawing-a-circular-arc-using-arcpy"&gt;arcgis - drawing a circular arc using arcpy - Stack Overflow&lt;/A&gt; . It uses arcpy.XYToLine_management: &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/xy-to-line.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/xy-to-line.htm"&gt;XY To Line—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 12:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503043#M39524</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-07-29T12:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503044#M39525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah the old arc-through-three-points problem.&lt;/P&gt;&lt;P&gt;In the attached is a script that has the math, you'll need to figure out how to clip the part of the circle you want.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 14:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503044#M39525</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2016-07-29T14:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503045#M39526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ArcPy Geometry classes support curves, at least the internal data structures do.&amp;nbsp; Unfortunately, none of their constructors support curves, and several of their properties also don't work well with curves.&amp;nbsp; The following StackExchange thread demonstrates a way to do it:&amp;nbsp; &lt;A href="http://gis.stackexchange.com/questions/66551/can-arcpy-10-1-be-used-to-generate-true-curve-elliptical-polygons-in-a-file-geod" rel="nofollow noopener noreferrer" target="_blank"&gt;Can ArcPy 10.1 be used to generate true curve elliptical polygons in a file geodatabase?&lt;/A&gt;&amp;nbsp; Basically, you use Esri JSON and &lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.AsShape&lt;/SPAN&gt; to create the geometry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; esri_json = {
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "curvePaths": [[
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [1,5],
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {"c": [[7,3], [6,2]]}
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]],
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "spatialReference": {"wkid": 0}
... }
... 
&amp;gt;&amp;gt;&amp;gt; ln = arcpy.AsShape(esri_json, True)
&amp;gt;&amp;gt;&amp;gt; arcpy.CopyFeatures_management(ln, 'in_memory/tmpFC')
&amp;lt;Result 'in_memory\\tmpFC'&amp;gt;
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="circularstring_example.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/213891_circularstring_example.PNG" style="height: auto; margin-left: 60px;" /&gt;&lt;/P&gt;&lt;P&gt;If you are going to take this approach, I encourage you to read the &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Geometry_Objects/02r3000000n1000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Geometry objects &lt;/A&gt;section of the ArcGIS REST API.&amp;nbsp; The Geometry objects section explains the syntax for working with the various curved objects.&amp;nbsp; Also, always define a spatial reference with the Esri json because not doing so causes some really strange behaviors with the geometry objects that are created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503045#M39526</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T22:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to: constructing polygon boundary with circular arc segments</title>
      <link>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503046#M39527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is very interesting and helpful. thank you Joshua&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 06:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-constructing-polygon-boundary-with-circular/m-p/503046#M39527</guid>
      <dc:creator>BernhardEhrminger</dc:creator>
      <dc:date>2016-08-02T06:14:05Z</dc:date>
    </item>
  </channel>
</rss>

