<?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 ST Geometry : how to check for invalid geometry? and how to repair? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/st-geometry-how-to-check-for-invalid-geometry-and/m-p/394635#M22578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcSDE 9.3.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server 9.3.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Web Application .NET Web ADF 9.3.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everyone, we have an application with the web adf editor so users can create the polygon features. I have noticed that this control (web adf editor) allows user to insert self intersecting features (!), so after a while, my ST_FUNCTIONs will throw an error saying "Error coverting shape into rectangle".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, is there any tool or st function that will check for invalid geometry of the features stored in the sde geodatabase?? I seem to be unable to locate such tool/function and that's why am I asking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using the following function : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT SO_ID, sde.st_MaxX(sde.st_envelope(SO.shape)) MaxX FROM SO WHERE (some condition here)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and that one has failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT SO_ID, sde.st_MaxX(SO.shape) MaxX FROM SO WHERE (some condition here)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;than it works ok...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;obviously, there is some trouble with st_envelope ... I've tracked down the 'problematic' record(s), but there is nothing wrong by the first sight. I need to investigate this a bit further.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 09:29:48 GMT</pubDate>
    <dc:creator>MichalGasparovic</dc:creator>
    <dc:date>2010-10-21T09:29:48Z</dc:date>
    <item>
      <title>ST Geometry : how to check for invalid geometry? and how to repair?</title>
      <link>https://community.esri.com/t5/data-management-questions/st-geometry-how-to-check-for-invalid-geometry-and/m-p/394635#M22578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcSDE 9.3.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server 9.3.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Web Application .NET Web ADF 9.3.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everyone, we have an application with the web adf editor so users can create the polygon features. I have noticed that this control (web adf editor) allows user to insert self intersecting features (!), so after a while, my ST_FUNCTIONs will throw an error saying "Error coverting shape into rectangle".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, is there any tool or st function that will check for invalid geometry of the features stored in the sde geodatabase?? I seem to be unable to locate such tool/function and that's why am I asking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using the following function : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT SO_ID, sde.st_MaxX(sde.st_envelope(SO.shape)) MaxX FROM SO WHERE (some condition here)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and that one has failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT SO_ID, sde.st_MaxX(SO.shape) MaxX FROM SO WHERE (some condition here)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;than it works ok...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;obviously, there is some trouble with st_envelope ... I've tracked down the 'problematic' record(s), but there is nothing wrong by the first sight. I need to investigate this a bit further.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 09:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/st-geometry-how-to-check-for-invalid-geometry-and/m-p/394635#M22578</guid>
      <dc:creator>MichalGasparovic</dc:creator>
      <dc:date>2010-10-21T09:29:48Z</dc:date>
    </item>
  </channel>
</rss>

