<?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 Function to convert from ST_GEOMETRY subtype to supertype in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/function-to-convert-from-st-geometry-subtype-to/idi-p/1171376</link>
    <description>&lt;P&gt;ST_GEOMETRY; Oracle:&lt;/P&gt;&lt;P&gt;Could ESRI create a function to convert directly from the ST_POINT subtype to the ST_GEOMETRY supertype?&lt;/P&gt;&lt;P&gt;That would solve these issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://support.esri.com/en/technical-article/000011333" target="_self"&gt;Bug: Unable to define a query layer in ArcGIS where the data source uses an st_geometry subtype in Oracle&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://gis.stackexchange.com/questions/218558/get-arcgis-to-recognize-st-point" target="_self"&gt;Get ArcGIS to recognize ST_POINT&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://stackoverflow.com/questions/72133976/use-treat-function-to-convert-udt-subtype-to-supertype" target="_self"&gt;Use TREAT() function to convert UDT subtype to supertype&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm aware that there is a quick-and-dirty workaround, where we can convert from &lt;U&gt;subtype&lt;/U&gt; to &lt;U&gt;text&lt;/U&gt; to &lt;U&gt;supertype&lt;/U&gt; (or use well-known binary instead of text). But that workaround is ugly and slow. It would be better to have a more robust &amp;amp; performant solution.&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 04:07:52 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-05-06T04:07:52Z</dc:date>
    <item>
      <title>Function to convert from ST_GEOMETRY subtype to supertype</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/function-to-convert-from-st-geometry-subtype-to/idi-p/1171376</link>
      <description>&lt;P&gt;ST_GEOMETRY; Oracle:&lt;/P&gt;&lt;P&gt;Could ESRI create a function to convert directly from the ST_POINT subtype to the ST_GEOMETRY supertype?&lt;/P&gt;&lt;P&gt;That would solve these issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://support.esri.com/en/technical-article/000011333" target="_self"&gt;Bug: Unable to define a query layer in ArcGIS where the data source uses an st_geometry subtype in Oracle&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://gis.stackexchange.com/questions/218558/get-arcgis-to-recognize-st-point" target="_self"&gt;Get ArcGIS to recognize ST_POINT&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://stackoverflow.com/questions/72133976/use-treat-function-to-convert-udt-subtype-to-supertype" target="_self"&gt;Use TREAT() function to convert UDT subtype to supertype&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm aware that there is a quick-and-dirty workaround, where we can convert from &lt;U&gt;subtype&lt;/U&gt; to &lt;U&gt;text&lt;/U&gt; to &lt;U&gt;supertype&lt;/U&gt; (or use well-known binary instead of text). But that workaround is ugly and slow. It would be better to have a more robust &amp;amp; performant solution.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 04:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/function-to-convert-from-st-geometry-subtype-to/idi-p/1171376</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-06T04:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function to convert from ST_GEOMETRY subtype to supertype</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/function-to-convert-from-st-geometry-subtype-to/idc-p/1352249#M3533</link>
      <description>&lt;P&gt;In a reply to&amp;nbsp;&lt;A href="https://community.esri.com/t5/geodatabase-questions/create-nil-zero-vertex-geometry/m-p/1352208/highlight/true#M8691" target="_self"&gt;Create NIL (zero vertex) geometry&lt;/A&gt;, I mention that&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/bug-unable-to-define-a-query-layer-in-arcgis-where-the-000011333" target="_self" rel="nofollow noopener noreferrer"&gt;the bug&lt;/A&gt;&amp;nbsp;has been updated. It now suggests that we use the&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-geometry.htm" target="_self" rel="nofollow noopener noreferrer"&gt;st_geometry constructor&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to convert from subtypes to supertypes. Which seems to work for converting&amp;nbsp;&lt;SPAN&gt;[SDE.ST_POLYFROMTEXT] to&amp;nbsp;[SDE.ST_GEOMETRY].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But that doesn't help me when c&lt;/SPAN&gt;onverting [ST_POINT] subtype to [ST_GEOMETRY] supertype:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1700599281632.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86793iBE7154057CF9B647/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1700599281632.png" alt="Bud_0-1700599281632.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 21:25:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/function-to-convert-from-st-geometry-subtype-to/idc-p/1352249#M3533</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-21T21:25:17Z</dc:date>
    </item>
  </channel>
</rss>

