<?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 Finding Ellipses in a polygon feature class? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/finding-ellipses-in-a-polygon-feature-class/m-p/156995#M8775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently had difficulty running the geoprocessing tool Find Identical (arcpy.FindIdentical_management) in ArcMap - it was crashing with the unhelpful&amp;nbsp;"999999: Error executing function."&amp;nbsp; I eventually&amp;nbsp;eliminated possibilities down to two very small ellipse polygons (as opposed to our typical multi-vertex polygons).&amp;nbsp; Once i eliminated these two polygons, the tool ran fine on the remaining 200,000+ features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find anything particularly helpful in the ST_Geometry&amp;nbsp;functions (Oracle) that would help me query for an ellipse polygon next time I need to determine if I have some in my data.&amp;nbsp; Even sde.st_astext(shape) spits out a significant list of coordinate pairs that I would guess would be the ellipse if generalized to multiple vertices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A rather clumsy method in geoprocessing is to run the Feature Vertices to Points tool ("All" option) and summarize the output on the original feature identifier - ellipses appear to return only two&amp;nbsp;output points (start and end point) opposed to&amp;nbsp;the 3 or more points from a valid polygon composed of vertices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to select records that use ellipse (and circle) types&amp;nbsp;for their geometry?&amp;nbsp; I'm not a ArcObjects programmer but that might be an alternative there if not in SQL or ArcPy?&amp;nbsp; Thanks for any ideas!&amp;nbsp; &amp;nbsp; -S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2018 19:47:07 GMT</pubDate>
    <dc:creator>Steve_Salas</dc:creator>
    <dc:date>2018-05-09T19:47:07Z</dc:date>
    <item>
      <title>Finding Ellipses in a polygon feature class?</title>
      <link>https://community.esri.com/t5/data-management-questions/finding-ellipses-in-a-polygon-feature-class/m-p/156995#M8775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently had difficulty running the geoprocessing tool Find Identical (arcpy.FindIdentical_management) in ArcMap - it was crashing with the unhelpful&amp;nbsp;"999999: Error executing function."&amp;nbsp; I eventually&amp;nbsp;eliminated possibilities down to two very small ellipse polygons (as opposed to our typical multi-vertex polygons).&amp;nbsp; Once i eliminated these two polygons, the tool ran fine on the remaining 200,000+ features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find anything particularly helpful in the ST_Geometry&amp;nbsp;functions (Oracle) that would help me query for an ellipse polygon next time I need to determine if I have some in my data.&amp;nbsp; Even sde.st_astext(shape) spits out a significant list of coordinate pairs that I would guess would be the ellipse if generalized to multiple vertices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A rather clumsy method in geoprocessing is to run the Feature Vertices to Points tool ("All" option) and summarize the output on the original feature identifier - ellipses appear to return only two&amp;nbsp;output points (start and end point) opposed to&amp;nbsp;the 3 or more points from a valid polygon composed of vertices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to select records that use ellipse (and circle) types&amp;nbsp;for their geometry?&amp;nbsp; I'm not a ArcObjects programmer but that might be an alternative there if not in SQL or ArcPy?&amp;nbsp; Thanks for any ideas!&amp;nbsp; &amp;nbsp; -S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 19:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/finding-ellipses-in-a-polygon-feature-class/m-p/156995#M8775</guid>
      <dc:creator>Steve_Salas</dc:creator>
      <dc:date>2018-05-09T19:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Ellipses in a polygon feature class?</title>
      <link>https://community.esri.com/t5/data-management-questions/finding-ellipses-in-a-polygon-feature-class/m-p/156996#M8776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although Esri's &lt;A class="link-titled" href="https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm" title="https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Geometry objects—Common Data Types | ArcGIS for Developers&lt;/A&gt; support circular arcs, elliptical arcs, and Bezier curves, there is a catch when it comes to enterprise geodatabases.&amp;nbsp; Esri's curved shapes are not always stored natively in the spatial data column.&amp;nbsp; Depending on the DBMS and spatial data type, Esri's curved shapes are stored in a separate field in a separate table, and what is stored in the base table's spatial data column is a linear approximation of the curved shape.&amp;nbsp; This is why your sde.ST_AsText is returning the long list of coordinates you are seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the variablitiy of how Esri's curved shapes are handled in different DMBSs and spatial data types, I recommend using an ArcPy cursor to retrieve the true Esri shape and then test it for circular arcs, elliptical arcs, and Bezier curves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like the following should work:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# feature class to check for curved polygons&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"OID@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SHAPE@JSON"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cur&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; oid_list &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;oid &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; oid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;json &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cur &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; json &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"curveRing"&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; json&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;oid_list&lt;SPAN class="punctuation token"&gt;)&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If &lt;SPAN style="font-family: courier\ new, courier, monospace;"&gt;oid_list&lt;/SPAN&gt; is empty, there are no curved polygons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:19:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/finding-ellipses-in-a-polygon-feature-class/m-p/156996#M8776</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T08:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Ellipses in a polygon feature class?</title>
      <link>https://community.esri.com/t5/data-management-questions/finding-ellipses-in-a-polygon-feature-class/m-p/156997#M8777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the code snippet to find curved polygons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 15:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/finding-ellipses-in-a-polygon-feature-class/m-p/156997#M8777</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2018-05-10T15:47:21Z</dc:date>
    </item>
  </channel>
</rss>

