<?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: SDO_Geometry to St_Geometry in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322958#M8569</link>
    <description>&lt;P&gt;-2035 is a low-level "SG_SELF_INTERSECTING" error.&amp;nbsp;&lt;BR /&gt;-2008 is "SG_SHAPE_INTEGRITY_ERROR".&lt;/P&gt;&lt;P&gt;You should probably convert the SDO geometries to file geodatabase, then do a Repair Geometry there, then tie them back across.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;P&gt;PS: Note that there are TWO validation procedures (at least). One uses the SDO function. The other is the ArcPy &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/check-geometry.htm" target="_blank" rel="noopener"&gt;Check Geometry&lt;/A&gt; (and its sibling, &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/repair-geometry.htm" target="_blank" rel="noopener"&gt;Repair Geometry&lt;/A&gt;) Note that some "repairs" will corrupt the original intended shape (as when a "bowtie" rectangle is converted into two touching triangles, not a properly ordered quadrilateral), so you should review any repairs.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 14:45:50 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2023-08-28T14:45:50Z</dc:date>
    <item>
      <title>SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322137#M8559</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am trying to convert SDO_Geometry to ST_Geometry by using&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDE.ST_GEOMFROMTEXT(SDO_GEOMETRY.GET_WKT(SHAPE),4326)&amp;nbsp; &amp;nbsp; and&amp;nbsp;&lt;/P&gt;&lt;P&gt;SDE.ST_GEOMFROMWKB(SDO_GEOMETRY.GET_WKB(SHAPE)),4326).&lt;/P&gt;&lt;P&gt;When i used WKT - i am getting error as Ora-20004 Error generating shape from text (-2035)&lt;/P&gt;&lt;P&gt;Whereas if i used WKB - not getting any error, but polygon area is coming as 0. It means conversion not happened.&lt;/P&gt;&lt;P&gt;Please help me to understand - why we are getting this error and what exactly the differenece between those WKT and WKB function usage.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322137#M8559</guid>
      <dc:creator>SreenivasaRaoPigili1</dc:creator>
      <dc:date>2023-08-24T14:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322167#M8561</link>
      <description>&lt;P&gt;You could use the GP tool to migrate from SDO --&amp;gt; ST_Geometry:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tool : &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/migrate-storage.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/migrate-storage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Information: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-oracle/data-migration.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-oracle/data-migration.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It would do the entire table in place. Make sure that you fully review the documentation above, you CANNOT go backwards once done.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322167#M8561</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2023-08-24T15:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322214#M8562</link>
      <description>&lt;P&gt;Thank you George for your response. Here I need to do the migration for a single feature during some business process. For that I am using this SQL process. Can you please help me in this line. Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 16:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322214#M8562</guid>
      <dc:creator>SreenivasaRaoPigili1</dc:creator>
      <dc:date>2023-08-24T16:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322232#M8563</link>
      <description>&lt;P&gt;You haven't mentioned the Oracle release in use, but I've always used SDO_UTIL.TO_WKTGEOMETRY to generate Well-Known Text out of SDO_GEOMETRY.&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;SELECT  objectid,
        SDO_UTIL.TO_WKTGEOMETRY(geom) as wkt
FROM    schema.tablename&lt;/LI-CODE&gt;&lt;P&gt;At one point I ran into a bug (in an Oracle 19c patch release) where the SDO_UTIL function would produce invalid scientific notation near the Equator or Prime Meridian (e.g., "0.12345e-1.0" instead of&amp;nbsp; "0.12345e-1"), and I had to wrap the arcpy.FromWKT parser with a repair function.&lt;/P&gt;&lt;P&gt;You might want to assure that the source SDO_GEOMETRY is valid before passing it into SDE.ST_GEOMETRY.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 17:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322232#M8563</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2023-08-24T17:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322533#M8565</link>
      <description>&lt;P&gt;Hi VinceAngelo, Thank you for providing details. Apologies for missing Oracle version. We are using Oracle v19.8.0.0.0&lt;/P&gt;&lt;P&gt;Before conversion - yes i am checking whether SDO_Geometry is valid or not. For valid SDO_Geometries only i am trying for the conversion. But no luck.&lt;/P&gt;&lt;P&gt;Also, can you please tell what is that error number 2035. I didn't get any details about this error code in&amp;nbsp;&lt;A href="https://help.arcgis.com/en/geodatabase/10.0/sdk/arcsde/api/capi/returncodes_incl.htm" target="_blank"&gt;https://help.arcgis.com/en/geodatabase/10.0/sdk/arcsde/api/capi/returncodes_incl.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322533#M8565</guid>
      <dc:creator>SreenivasaRaoPigili1</dc:creator>
      <dc:date>2023-08-25T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322534#M8566</link>
      <description>&lt;P&gt;Ah for a single feature, I would look at Vince's post below. The tool I recommended does the entire table at once, which is nice if needed.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322534#M8566</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2023-08-25T14:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322919#M8567</link>
      <description>&lt;P&gt;Hi VinceAngelo, Along the previously mentioned details - used sdo_util.to_wktgeometry to get the WKT of the geometry. Even after when we tried to convert into ST_GEOMETRy - getting below error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select SDE.ST_GEOMFROMTEXT(SDO_UTIL.TO_WKTGEOMETRY(SHAPE),4326) from schema.sdoTable where condition;&lt;/P&gt;&lt;P&gt;ORA-20004: Error generating shape from text: (-2008).&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 12&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMFROMTEXT", line 61&lt;/P&gt;&lt;P&gt;Please do needful to understand these error code 2008.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 11:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322919#M8567</guid>
      <dc:creator>SreenivasaRaoPigili1</dc:creator>
      <dc:date>2023-08-28T11:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322926#M8568</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi VinceAngelo,, If i add&amp;nbsp;SDO_UTIL.RECTIFY_GEOMETRY for the geometry, i am getting original error message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SDE.ST_GEOMFROMTEXT(SDO_UTIL.TO_WKTGEOMETRY(SDO_UTIL.RECTIFY_GEOMETRY(shape,0.05)),4326)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ORA-20004: Error generating shape from text: (-2035).&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMETRY_SHAPELIB_PKG", line 12&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMFROMTEXT", line 61&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please do needful to understand these error codes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 12:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322926#M8568</guid>
      <dc:creator>SreenivasaRaoPigili1</dc:creator>
      <dc:date>2023-08-28T12:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322958#M8569</link>
      <description>&lt;P&gt;-2035 is a low-level "SG_SELF_INTERSECTING" error.&amp;nbsp;&lt;BR /&gt;-2008 is "SG_SHAPE_INTEGRITY_ERROR".&lt;/P&gt;&lt;P&gt;You should probably convert the SDO geometries to file geodatabase, then do a Repair Geometry there, then tie them back across.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;P&gt;PS: Note that there are TWO validation procedures (at least). One uses the SDO function. The other is the ArcPy &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/check-geometry.htm" target="_blank" rel="noopener"&gt;Check Geometry&lt;/A&gt; (and its sibling, &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/repair-geometry.htm" target="_blank" rel="noopener"&gt;Repair Geometry&lt;/A&gt;) Note that some "repairs" will corrupt the original intended shape (as when a "bowtie" rectangle is converted into two touching triangles, not a properly ordered quadrilateral), so you should review any repairs.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 14:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1322958#M8569</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2023-08-28T14:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1323042#M8570</link>
      <description>&lt;P&gt;Thank you VinceAngelo. Will check this option and will update here.&lt;/P&gt;&lt;P&gt;Meanwhile - is there any location we can see these error codes related information? Just for future issues debugging, in case if any.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 16:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1323042#M8570</guid>
      <dc:creator>SreenivasaRaoPigili1</dc:creator>
      <dc:date>2023-08-28T16:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: SDO_Geometry to St_Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1323401#M8571</link>
      <description>&lt;P&gt;FYI: I got the error code information from&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/faq-what-are-the-error-codes-returned-from-the-shape-en-000008067" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/faq-what-are-the-error-codes-returned-from-the-shape-en-000008067&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 12:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/sdo-geometry-to-st-geometry/m-p/1323401#M8571</guid>
      <dc:creator>SreenivasaRaoPigili1</dc:creator>
      <dc:date>2023-08-29T12:28:30Z</dc:date>
    </item>
  </channel>
</rss>

