<?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 Improve the docs: How to &amp;quot;Convert ST_POINT subtype to ST_GEOMETRY supertype&amp;quot;? in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/improve-the-docs-how-to-quot-convert-st-point/idi-p/1184196</link>
    <description>&lt;P&gt;Regarding technical article #000011333:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&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;/P&gt;&lt;P&gt;Workaround:&lt;BR /&gt;Convert the geometry attribute field from the subtype (for example, st_point) to the supertype st_geometry.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The docs say we should convert the ST_POINT subtype to ST_GEOMETRY supertype. But they don't say&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;how&lt;/STRONG&gt;&lt;/EM&gt; to make the conversion.&lt;/P&gt;&lt;P&gt;The only way I've found so far is to convert to WKB or WKT and then back to ST_GEOMETRY:&lt;/P&gt;&lt;PRE&gt;--This works, but is clunky and slow:&lt;BR /&gt;sde.st_geomfromwkb(sde.st_asbinary(...)). &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is that how Esri recommends we make the conversion? It would help if Esri could explicitly tell us what is meant there. Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;I've tried using the TREAT() function too. But that didn't seem to work properly:&lt;BR /&gt;Stack Overflow: &lt;A href="https://stackoverflow.com/questions/72133976/convert-udt-subtype-to-supertype" target="_self"&gt;Convert UDT subtype to supertype&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Related:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://stackoverflow.com/questions/72682803/convert-mdsys-st-linestring-subtype-value-to-mdsys-st-geometry-supertype" target="_blank"&gt;Convert MDSYS.ST_LINESTRING subtype value to MDSYS.ST_GEOMETRY supertype&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 07:34:28 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-06-20T07:34:28Z</dc:date>
    <item>
      <title>Improve the docs: How to "Convert ST_POINT subtype to ST_GEOMETRY supertype"?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/improve-the-docs-how-to-quot-convert-st-point/idi-p/1184196</link>
      <description>&lt;P&gt;Regarding technical article #000011333:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&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;/P&gt;&lt;P&gt;Workaround:&lt;BR /&gt;Convert the geometry attribute field from the subtype (for example, st_point) to the supertype st_geometry.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The docs say we should convert the ST_POINT subtype to ST_GEOMETRY supertype. But they don't say&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;how&lt;/STRONG&gt;&lt;/EM&gt; to make the conversion.&lt;/P&gt;&lt;P&gt;The only way I've found so far is to convert to WKB or WKT and then back to ST_GEOMETRY:&lt;/P&gt;&lt;PRE&gt;--This works, but is clunky and slow:&lt;BR /&gt;sde.st_geomfromwkb(sde.st_asbinary(...)). &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Is that how Esri recommends we make the conversion? It would help if Esri could explicitly tell us what is meant there. Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;I've tried using the TREAT() function too. But that didn't seem to work properly:&lt;BR /&gt;Stack Overflow: &lt;A href="https://stackoverflow.com/questions/72133976/convert-udt-subtype-to-supertype" target="_self"&gt;Convert UDT subtype to supertype&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Related:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://stackoverflow.com/questions/72682803/convert-mdsys-st-linestring-subtype-value-to-mdsys-st-geometry-supertype" target="_blank"&gt;Convert MDSYS.ST_LINESTRING subtype value to MDSYS.ST_GEOMETRY supertype&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 07:34:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/improve-the-docs-how-to-quot-convert-st-point/idi-p/1184196</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-20T07:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Improve the docs: How to "Convert ST_POINT subtype to ST_GEOMETRY supertype"?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/improve-the-docs-how-to-quot-convert-st-point/idc-p/1352229#M3532</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;A href="https://support.esri.com/en-us/knowledge-base/bug-unable-to-define-a-query-layer-in-arcgis-where-the-000011333" target="_self"&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"&gt;st_geometry constructor&lt;/A&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_1-1700599041424.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86791i65DCD2E6EF42AB64/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1700599041424.png" alt="Bud_1-1700599041424.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:24:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/improve-the-docs-how-to-quot-convert-st-point/idc-p/1352229#M3532</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-11-21T21:24:38Z</dc:date>
    </item>
  </channel>
</rss>

