<?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>idea Identify Curves in Python with Describe in Developers Ideas</title>
    <link>https://community.esri.com/t5/developers-ideas/identify-curves-in-python-with-describe/idi-p/932036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It would be great if python could identify curves in polylines and polygons with the describe function.&amp;nbsp; I have several applications where curves (Bezier curves) need to be densified for the tools (widgets) in the applications to work correctly.&amp;nbsp; When processing this data it would be nice to be able to log all the features that needed to be densified because they had Bezier curves, especially if a feature caused the processing tool to crash so I would be able to focus in quickly on the problematic geometry.&lt;BR /&gt;&lt;BR /&gt;In the forums people have suggested to convert the feature class to a shapefile first and then compare the original feature class to the shapefile to identify the curves, but this is a cumbersome process that seems like it could be simplified if the Bezier curves could just be identified in the original feature class.

&lt;!-- content transformation source ID: 087E00000004K6D --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 19:25:49 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2012-08-28T19:25:49Z</dc:date>
    <item>
      <title>Identify Curves in Python with Describe</title>
      <link>https://community.esri.com/t5/developers-ideas/identify-curves-in-python-with-describe/idi-p/932036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It would be great if python could identify curves in polylines and polygons with the describe function.&amp;nbsp; I have several applications where curves (Bezier curves) need to be densified for the tools (widgets) in the applications to work correctly.&amp;nbsp; When processing this data it would be nice to be able to log all the features that needed to be densified because they had Bezier curves, especially if a feature caused the processing tool to crash so I would be able to focus in quickly on the problematic geometry.&lt;BR /&gt;&lt;BR /&gt;In the forums people have suggested to convert the feature class to a shapefile first and then compare the original feature class to the shapefile to identify the curves, but this is a cumbersome process that seems like it could be simplified if the Bezier curves could just be identified in the original feature class.

&lt;!-- content transformation source ID: 087E00000004K6D --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 19:25:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/identify-curves-in-python-with-describe/idi-p/932036</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-08-28T19:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Curves in Python with Describe</title>
      <link>https://community.esri.com/t5/developers-ideas/identify-curves-in-python-with-describe/idc-p/932037#M322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# --- for posterity, c0 is a polygon circle with a piece cut off&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; json

c0
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Polygon object at &lt;SPAN class="number token"&gt;0x15b885eb860&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x15b87f800a8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;

j &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; json&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;loads&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;c0&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;JSON&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

has_curves &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;any&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'curve'&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; list&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;j&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;keys&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

has_curves
&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now if you want to count the number of curves, you have to dig into the dictionary a bit more...&lt;/P&gt;&lt;P&gt;Just add this or equivalent to arcpy.da.Describe !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-ideas/identify-curves-in-python-with-describe/idc-p/932037#M322</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T11:52:36Z</dc:date>
    </item>
  </channel>
</rss>

