<?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 ST_GeomFromCollection function for Oracle in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/st-geomfromcollection-function-for-oracle/idi-p/1183831</link>
    <description>&lt;P&gt;SDE.ST_GEOMETRY for &lt;SPAN&gt;PostgreSQL has an&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-geomfromcollection.htm" target="_self"&gt;ST_GeomFromCollection&lt;/A&gt; function:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;--Return each linestring in the multilinestring

SELECT sde.st_astext((sde.st_geomfromcollection(gst.shape)).st_geo) shapetext, ((sde.st_geomfromcollection(gst.shape)).path[1]) path
 FROM ghanasharktracks gst;

shapetext                                                                                     path
-----------------------------------------------------------------------------------------------------------
"LINESTRING Z ( 1.00000000 1.00000000 0.00000000, 1.00000000 6.00000000 0.00000000)"          1
"LINESTRING Z ( 1.00000000 3.00000000 0.00000000, 3.00000000 3.00000000 0.00000000)"          2
"LINESTRING Z ( 3.00000000 1.00000000 0.00000000, 3.00000000 3.00000000 0.00000000)"          3
"LINESTRING Z ( 4.00000000 1.00000000 0.00000000, 4.00000000 6.00000000 0.00000000)"          4&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;It would be really helpful if we had the same functionality in Oracle.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;For example, it would simplify this query:&amp;nbsp;&lt;A href="https://gis.stackexchange.com/a/423044/62572" target="_self"&gt;Select feature parts and vertices as rows (ST_GEOMETRY)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I don't see why that couldn't be done in Oracle. The return type could be a &lt;U&gt;&lt;EM&gt;nested table&lt;/EM&gt;&lt;/U&gt;. In the FROM clause, we could cross join to the nested table to get the feature parts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Related:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/72590279/cross-joining-with-a-table-object-propagates-rows-without-needing-table-funct" target="_self"&gt;&lt;SPAN&gt;Cross-joining with a table object propagates rows (without needing Table() function)&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.oracle.com/tech/developers/discussion/4499629/at-what-version-did-the-table-keyword-for-table-collection-expressions-become-optional" target="_self"&gt;At what version did the TABLE() keyword for table collection expressions become optional?&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/72595982/cross-join-to-varray-without-using-table-expression" target="_self"&gt;Cross join to varray without using Table() expression&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could Esri consider creating an&amp;nbsp;ST_GeomFromCollection function for Oracle?&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2022 07:12:25 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-06-17T07:12:25Z</dc:date>
    <item>
      <title>ST_GeomFromCollection function for Oracle</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/st-geomfromcollection-function-for-oracle/idi-p/1183831</link>
      <description>&lt;P&gt;SDE.ST_GEOMETRY for &lt;SPAN&gt;PostgreSQL has an&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/st-geomfromcollection.htm" target="_self"&gt;ST_GeomFromCollection&lt;/A&gt; function:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;--Return each linestring in the multilinestring

SELECT sde.st_astext((sde.st_geomfromcollection(gst.shape)).st_geo) shapetext, ((sde.st_geomfromcollection(gst.shape)).path[1]) path
 FROM ghanasharktracks gst;

shapetext                                                                                     path
-----------------------------------------------------------------------------------------------------------
"LINESTRING Z ( 1.00000000 1.00000000 0.00000000, 1.00000000 6.00000000 0.00000000)"          1
"LINESTRING Z ( 1.00000000 3.00000000 0.00000000, 3.00000000 3.00000000 0.00000000)"          2
"LINESTRING Z ( 3.00000000 1.00000000 0.00000000, 3.00000000 3.00000000 0.00000000)"          3
"LINESTRING Z ( 4.00000000 1.00000000 0.00000000, 4.00000000 6.00000000 0.00000000)"          4&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;It would be really helpful if we had the same functionality in Oracle.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;For example, it would simplify this query:&amp;nbsp;&lt;A href="https://gis.stackexchange.com/a/423044/62572" target="_self"&gt;Select feature parts and vertices as rows (ST_GEOMETRY)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I don't see why that couldn't be done in Oracle. The return type could be a &lt;U&gt;&lt;EM&gt;nested table&lt;/EM&gt;&lt;/U&gt;. In the FROM clause, we could cross join to the nested table to get the feature parts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Related:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/72590279/cross-joining-with-a-table-object-propagates-rows-without-needing-table-funct" target="_self"&gt;&lt;SPAN&gt;Cross-joining with a table object propagates rows (without needing Table() function)&lt;/SPAN&gt;&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.oracle.com/tech/developers/discussion/4499629/at-what-version-did-the-table-keyword-for-table-collection-expressions-become-optional" target="_self"&gt;At what version did the TABLE() keyword for table collection expressions become optional?&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/72595982/cross-join-to-varray-without-using-table-expression" target="_self"&gt;Cross join to varray without using Table() expression&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could Esri consider creating an&amp;nbsp;ST_GeomFromCollection function for Oracle?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 07:12:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/st-geomfromcollection-function-for-oracle/idi-p/1183831</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-17T07:12:25Z</dc:date>
    </item>
  </channel>
</rss>

