<?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 Better error messages from ST_GEOMETRY in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/better-error-messages-from-st-geometry/idi-p/1180921</link>
    <description>&lt;P&gt;SDE.ST_GEOMETRY in Oracle 18c:&lt;/P&gt;&lt;P&gt;If I were to create a polygon geometry from this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;&lt;EM&gt;incorrect&lt;/EM&gt;&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;WKT (the last vertex is slightly different from the first vertex, which is wrong), I would get the following error in SQL Developer:&lt;/P&gt;&lt;PRE&gt;select
    sde.st_geometry ('polygon ((6768&lt;STRONG&gt;32&lt;/STRONG&gt;.320 48575&lt;STRONG&gt;78&lt;/STRONG&gt;.086, 665287.423 4857578.086, 665277.423 4878109.585, 
                                676832.320 4878119.585, 6768&lt;STRONG&gt;42&lt;/STRONG&gt;.320 48575&lt;STRONG&gt;88&lt;/STRONG&gt;.086))', 26917)
from
    dual&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ORA-20004: &amp;#3;                    &lt;/STRONG&gt;--Note: I'm not sure why that junk symbol is being returned.&lt;BR /&gt;&lt;STRONG&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 12&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ORA-06512: at "SDE.ST_GEOMETRY", line 55&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;That error message isn't very helpful.&lt;/P&gt;&lt;P&gt;The problem is: the polygon doesn't close properly. But ST_GEOMETRY doesn't say anything to that effect.&lt;/P&gt;&lt;P&gt;Could the ST_GEOMETRY error messages be improved? That would really help when troubleshooting issues.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jun 2022 07:00:24 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-06-08T07:00:24Z</dc:date>
    <item>
      <title>Better error messages from ST_GEOMETRY</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/better-error-messages-from-st-geometry/idi-p/1180921</link>
      <description>&lt;P&gt;SDE.ST_GEOMETRY in Oracle 18c:&lt;/P&gt;&lt;P&gt;If I were to create a polygon geometry from this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;&lt;EM&gt;incorrect&lt;/EM&gt;&lt;/U&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;WKT (the last vertex is slightly different from the first vertex, which is wrong), I would get the following error in SQL Developer:&lt;/P&gt;&lt;PRE&gt;select
    sde.st_geometry ('polygon ((6768&lt;STRONG&gt;32&lt;/STRONG&gt;.320 48575&lt;STRONG&gt;78&lt;/STRONG&gt;.086, 665287.423 4857578.086, 665277.423 4878109.585, 
                                676832.320 4878119.585, 6768&lt;STRONG&gt;42&lt;/STRONG&gt;.320 48575&lt;STRONG&gt;88&lt;/STRONG&gt;.086))', 26917)
from
    dual&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;ORA-20004: &amp;#3;                    &lt;/STRONG&gt;--Note: I'm not sure why that junk symbol is being returned.&lt;BR /&gt;&lt;STRONG&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 12&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ORA-06512: at "SDE.ST_GEOMETRY", line 55&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;That error message isn't very helpful.&lt;/P&gt;&lt;P&gt;The problem is: the polygon doesn't close properly. But ST_GEOMETRY doesn't say anything to that effect.&lt;/P&gt;&lt;P&gt;Could the ST_GEOMETRY error messages be improved? That would really help when troubleshooting issues.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 07:00:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/better-error-messages-from-st-geometry/idi-p/1180921</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-08T07:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Better error messages from ST_GEOMETRY</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/better-error-messages-from-st-geometry/idc-p/1181120#M2870</link>
      <description>&lt;P&gt;For example, SDO_GEOMETRY provides a helpful error when validating that geometry:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;select&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;sdo_geom.validate_geometry_with_context(&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sdo_geometry (&lt;SPAN class=""&gt;'polygon ((6768&lt;STRONG&gt;32&lt;/STRONG&gt;.320 48575&lt;STRONG&gt;78&lt;/STRONG&gt;.086, 665287.423 4857578.086, 665277.423 4878109.585,&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;676832.320 4878119.585, 6768&lt;STRONG&gt;42&lt;/STRONG&gt;.320 48575&lt;STRONG&gt;88&lt;/STRONG&gt;.086))'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;26917&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, &lt;SPAN class=""&gt;0.005&lt;/SPAN&gt;)    
&lt;SPAN class=""&gt;from&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;dual

&lt;SPAN class=""&gt;Result&lt;/SPAN&gt;:
&lt;STRONG&gt;&lt;SPAN class=""&gt;13348&lt;/SPAN&gt;&lt;/STRONG&gt; [&lt;SPAN class=""&gt;Element&lt;/SPAN&gt; &amp;lt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&amp;gt;] [Ring &amp;lt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&amp;gt;]&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;ORA-13348: polygon boundary is not closed&lt;/LI&gt;&lt;LI&gt;Cause: The boundary of a polygon does not close.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 15:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/better-error-messages-from-st-geometry/idc-p/1181120#M2870</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-08T15:34:44Z</dc:date>
    </item>
  </channel>
</rss>

