<?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: ST_GEOMETRY FC: Options for using Oracle Spatial functions in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1167296#M43995</link>
    <description>&lt;P&gt;5. I suppose I could convert #1 to a custom function. And then create a &lt;A href="https://gis.stackexchange.com/questions/381765/materialized-view-with-fast-refresh-on-remote-table-how-to-include-a-shape-colu/381766#:~:text=View%20with%20function%2Dbased%20spatial%20index" target="_self"&gt;function-based spatial index&lt;/A&gt; on the function to precompute the SDO_GEOMETRY.&amp;nbsp;&lt;BR /&gt;Downside: Getting Oracle and ArcGIS to actually use the index is tricky.&amp;nbsp;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4498399/function-based-spatial-indexes-tips#latest" target="_self"&gt;Function-based spatial indexes - Tips&lt;/A&gt;&lt;SPAN&gt;. And as far as I can tell, function-based indexes aren't intended to be used this way. A pre-computed column in a &lt;U&gt;&lt;EM&gt;table&lt;/EM&gt;&lt;/U&gt; is more suitable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. Store the geometry as JSON in an &lt;U&gt;&lt;EM&gt;invisible&lt;/EM&gt;&lt;/U&gt; text field in the FC. Use a function-based spatial index to efficiently convert the JSON to SDO_GEOMETRY on the fly.&lt;BR /&gt;- &lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4498436/output-lrs-to-a-text-based-format#latest" target="_self"&gt;Oracle: Output LRS to a text-based format&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/SDO_UTIL-reference.html#GUID-49B32484-EF2B-4541-8C7A-26A532727245" target="_self"&gt;SDO_UTIL.TO_JSON&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/SDO_UTIL-reference.html#GUID-E8072BC2-2B85-4AA7-943A-38585ED338C4" target="_self"&gt;SDO_UTIL.TO_JSON_VARCHAR&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/SDO_UTIL-reference.html#GUID-C4F14FED-1D6C-4F38-9253-7B0B154D3D28" target="_self"&gt;SDO_UTIL.TO_JSON_JSON&lt;/A&gt;&lt;BR /&gt;Downside: I tested it on a FC with 15,000 features and it was &lt;EM&gt;&lt;U&gt;slower than I'd hoped&lt;/U&gt;&lt;/EM&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;BR /&gt;I stored the JSON representation of the SDO_GEOMETRY in a text field in the FC. And then converted it to SDO_GEOMETRY on-the-fly in a query using&amp;nbsp;sdo_util.from_json(). Unfortunately, it still took 4.5 seconds to run the query on all features. I was hoping it would be closer to 1 second, which is how long it takes to select a true pre-computed shape column from a table.&lt;/P&gt;&lt;PRE&gt;alter table atn_json_text add json &lt;STRONG&gt;nclob invisible;&lt;/STRONG&gt; --ArcGIS uses NCLOB for large text columns, so that's what I did too: &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/data-types-oracle.htm#:~:text=type%20will%20be-,NCLOB,-." target="_self"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/data-types-oracle.htm#:~:text=type%20will%20be-,NCLOB,-.&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;update atn_json_text&lt;BR /&gt;set json = sdo_util.to_json(wkt_lrs(sde.st_astext(shape),sde.st_srid(shape))); --wkt_lrs is a custom function: &lt;A href="https://i.stack.imgur.com/dOfPg.png" target="_blank"&gt;https://i.stack.imgur.com/dOfPg.png&lt;/A&gt;  source: &lt;A href="https://gis.stackexchange.com/a/428825/62572" target="_blank"&gt;https://gis.stackexchange.com/a/428825/62572&lt;/A&gt; &lt;BR /&gt;commit;&lt;BR /&gt;&lt;BR /&gt;select sdo_util.from_json(json) from atn_json_text;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1653955438804.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42415iCCF9093C0EA82D70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1653955438804.png" alt="Bud_0-1653955438804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I didn't try creating a function-based index. Reason: As far as I can tell, an FBI would only help me if I'm &lt;U&gt;&lt;EM&gt;only&lt;/EM&gt;&lt;/U&gt; selecting the geometry column, not any other columns (which would be rare).&lt;BR /&gt;Whereas, if I select other columns too, such as an ID column (a much more common use case), then the FBI won't be used, which isn't what I want.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;When you add columns not in the index, the db has to read the table after reading the index. And as in your case the optimizer thinks it will return all the rows, it is easier for the db to just read the table. &lt;A href="https://stackoverflow.com/questions/72267574/utilize-a-function-based-index-while-selecting-additional-columns?noredirect=1#comment127678980_72267574" target="_blank" rel="noopener"&gt;Source.&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But I'm not an expert on FBIs or indexes. So I might have misunderstood something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7. For what it's worth, I tested a similar solution, but using WKB. Unfortunately, it isn't much faster than the JSON option:&lt;/P&gt;&lt;PRE&gt;update atn_blob&lt;BR /&gt;set sdo_blob = sdo_util.to_wkbgeometry(&lt;STRONG&gt;sdo_cs.make_2d&lt;/STRONG&gt;(sdo_geometry(replace(sde.st_astext(shape),'LINESTRING M','LINESTRING'))));&lt;BR /&gt;commit;&lt;BR /&gt;&lt;BR /&gt;select&lt;BR /&gt;    sdo_util.from_wkbgeometry(sdo_blob) wkb_to_sdo&lt;BR /&gt;from&lt;BR /&gt;    atn_blob&lt;/PRE&gt;&lt;P&gt;Execution time: 3.5 to 5.5 seconds (varies)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1654034413419.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42491i5A0E76C8E44D09FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1654034413419.png" alt="Bud_0-1654034413419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Even if I did want to use that option, I'd need to wait for a Oracle to fix a few issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4497379/idea-support-m-enabled-wkb" target="_self"&gt;Idea: Support M-enabled WKB&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4497275/idea-support-linestring-z-zm-m-wkt-synta" target="_self"&gt;Idea: Support LINESTRING Z/ZM/M wkt syntax&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4499172/convert-3d-multi-part-wkb-to-sdo-geometry" target="_self"&gt;Convert 3d multi-part WKB to SDO_GEOMETRY&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Related: &lt;A href="https://gis.stackexchange.com/questions/428735/convert-m-enabled-sde-st-geometry-to-sdo-geometry-using-sql" target="_self"&gt;Convert M-enabled SDE.ST_GEOMETRY to SDO_GEOMETRY using SQL&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Tue, 31 May 2022 22:16:45 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-05-31T22:16:45Z</dc:date>
    <item>
      <title>ST_GEOMETRY FC: Options for using Oracle Spatial functions</title>
      <link>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1167295#M43994</link>
      <description>&lt;P&gt;I have SDE.ST_GEOMETRY polyline FCs (tables) in an Oracle 18c geodatabase.&lt;/P&gt;&lt;P&gt;I'm building various SQL queries on the tables. It would help if I could use&amp;nbsp;&lt;U&gt;Oracle Spatial/SDO_GEOMETRY&lt;/U&gt; functionality like Spatial's&amp;nbsp;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/SDO_LRS-reference.html" target="_self"&gt;linear referencing functions&lt;/A&gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Unfortunately, it's not possible for me to change the datatype in the table from SDE.ST_GEOMETRY to MDSYS.SDO_GEOMETRY, due to existing dependencies on the ST_GEOMETRY shape column.&lt;/LI&gt;&lt;LI&gt;Also, it seems like ArcGIS only supports a singe geometry column per table. So it's not like I can just add a SDO_GEOMETRY column to the table, without risking problems in ArcGIS.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;Alternatively, what are my options for &lt;EM&gt;generating&lt;/EM&gt; a separate SDO_GEOMETRY column so that I can use Oracle Spatial functions?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://gis.stackexchange.com/a/429145/62572" target="_self"&gt;Convert from ST_GEOMETRY to SDO_GEOMETRY in a query on-the-fly.&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Downside: the query is complicated/fragile/slow. I don't want to make the conversions every time the queries are used.&lt;/LI&gt;&lt;LI&gt;&lt;STRIKE&gt;Add an &lt;A href="https://oracle-base.com/articles/12c/invisible-columns-12cr1" target="_self"&gt;invisible&lt;/A&gt; SDO_GEOMETRY column to the table.&amp;nbsp;Update the column with a db trigger. Add a spatial index.&lt;/STRIKE&gt;&lt;BR /&gt;Downside: &lt;A href="https://gis.stackexchange.com/a/432380/62572" target="_self"&gt;Invisible SDO_GEOMETRY columns &lt;STRONG&gt;aren't&lt;/STRONG&gt; supported in Oracle.&lt;/A&gt;&amp;nbsp;Also:&amp;nbsp;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4499116/idea-support-invisible-sdo-geometry-columns/" target="_self"&gt;Idea: Support invisible SDO_GEOMETRY columns.&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Create a parallel table that has a common ID column and a SDO_GEOMETRY column. Create a trigger on the ST_GEOMETRY table that updates the parallel table after INSERT, UPDATE, or DELETE. Or use calculation attribute rules in ArcGIS Pro to do something similar.&lt;BR /&gt;Downside: Adds extra tables/complexity that need to be managed. Joining from the ST_GEOMETRY table to the parallel SDO_GEOMETRY table might be slow for large datasets.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Parallel &lt;A href="https://oracle-base.com/articles/misc/materialized-views" target="_self"&gt;materialized view&lt;/A&gt;&amp;nbsp;with an SDO_GEOMETRY column.&lt;BR /&gt;Downside: A different department would need to create and manage the the materialized view, since &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/databases/privileges-db-oracle.htm#:~:text=on%20specific%20tables.-,Data%20creator,-CREATE%20SESSION" target="_self"&gt;GDB data creators/owners&lt;/A&gt; don't have CREATE MATERIALIZED VIEW privileges. (It's always a pain when you can't manage your own stuff.)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Does anyone have any thoughts on those options? Or are there any other options that I've overlooked?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/choose-spatial-column-when-adding-data-with-more/idc-p/1272869" target="_blank"&gt;Choose spatial column when adding data with more then one spatial column&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 01:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1167295#M43994</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-03-29T01:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: ST_GEOMETRY FC: Options for using Oracle Spatial functions</title>
      <link>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1167296#M43995</link>
      <description>&lt;P&gt;5. I suppose I could convert #1 to a custom function. And then create a &lt;A href="https://gis.stackexchange.com/questions/381765/materialized-view-with-fast-refresh-on-remote-table-how-to-include-a-shape-colu/381766#:~:text=View%20with%20function%2Dbased%20spatial%20index" target="_self"&gt;function-based spatial index&lt;/A&gt; on the function to precompute the SDO_GEOMETRY.&amp;nbsp;&lt;BR /&gt;Downside: Getting Oracle and ArcGIS to actually use the index is tricky.&amp;nbsp;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4498399/function-based-spatial-indexes-tips#latest" target="_self"&gt;Function-based spatial indexes - Tips&lt;/A&gt;&lt;SPAN&gt;. And as far as I can tell, function-based indexes aren't intended to be used this way. A pre-computed column in a &lt;U&gt;&lt;EM&gt;table&lt;/EM&gt;&lt;/U&gt; is more suitable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. Store the geometry as JSON in an &lt;U&gt;&lt;EM&gt;invisible&lt;/EM&gt;&lt;/U&gt; text field in the FC. Use a function-based spatial index to efficiently convert the JSON to SDO_GEOMETRY on the fly.&lt;BR /&gt;- &lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4498436/output-lrs-to-a-text-based-format#latest" target="_self"&gt;Oracle: Output LRS to a text-based format&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/SDO_UTIL-reference.html#GUID-49B32484-EF2B-4541-8C7A-26A532727245" target="_self"&gt;SDO_UTIL.TO_JSON&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/SDO_UTIL-reference.html#GUID-E8072BC2-2B85-4AA7-943A-38585ED338C4" target="_self"&gt;SDO_UTIL.TO_JSON_VARCHAR&lt;/A&gt;&lt;BR /&gt;-&amp;nbsp;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/SDO_UTIL-reference.html#GUID-C4F14FED-1D6C-4F38-9253-7B0B154D3D28" target="_self"&gt;SDO_UTIL.TO_JSON_JSON&lt;/A&gt;&lt;BR /&gt;Downside: I tested it on a FC with 15,000 features and it was &lt;EM&gt;&lt;U&gt;slower than I'd hoped&lt;/U&gt;&lt;/EM&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;BR /&gt;I stored the JSON representation of the SDO_GEOMETRY in a text field in the FC. And then converted it to SDO_GEOMETRY on-the-fly in a query using&amp;nbsp;sdo_util.from_json(). Unfortunately, it still took 4.5 seconds to run the query on all features. I was hoping it would be closer to 1 second, which is how long it takes to select a true pre-computed shape column from a table.&lt;/P&gt;&lt;PRE&gt;alter table atn_json_text add json &lt;STRONG&gt;nclob invisible;&lt;/STRONG&gt; --ArcGIS uses NCLOB for large text columns, so that's what I did too: &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/data-types-oracle.htm#:~:text=type%20will%20be-,NCLOB,-." target="_self"&gt;https://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-oracle/data-types-oracle.htm#:~:text=type%20will%20be-,NCLOB,-.&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;update atn_json_text&lt;BR /&gt;set json = sdo_util.to_json(wkt_lrs(sde.st_astext(shape),sde.st_srid(shape))); --wkt_lrs is a custom function: &lt;A href="https://i.stack.imgur.com/dOfPg.png" target="_blank"&gt;https://i.stack.imgur.com/dOfPg.png&lt;/A&gt;  source: &lt;A href="https://gis.stackexchange.com/a/428825/62572" target="_blank"&gt;https://gis.stackexchange.com/a/428825/62572&lt;/A&gt; &lt;BR /&gt;commit;&lt;BR /&gt;&lt;BR /&gt;select sdo_util.from_json(json) from atn_json_text;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1653955438804.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42415iCCF9093C0EA82D70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1653955438804.png" alt="Bud_0-1653955438804.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I didn't try creating a function-based index. Reason: As far as I can tell, an FBI would only help me if I'm &lt;U&gt;&lt;EM&gt;only&lt;/EM&gt;&lt;/U&gt; selecting the geometry column, not any other columns (which would be rare).&lt;BR /&gt;Whereas, if I select other columns too, such as an ID column (a much more common use case), then the FBI won't be used, which isn't what I want.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;When you add columns not in the index, the db has to read the table after reading the index. And as in your case the optimizer thinks it will return all the rows, it is easier for the db to just read the table. &lt;A href="https://stackoverflow.com/questions/72267574/utilize-a-function-based-index-while-selecting-additional-columns?noredirect=1#comment127678980_72267574" target="_blank" rel="noopener"&gt;Source.&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But I'm not an expert on FBIs or indexes. So I might have misunderstood something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;7. For what it's worth, I tested a similar solution, but using WKB. Unfortunately, it isn't much faster than the JSON option:&lt;/P&gt;&lt;PRE&gt;update atn_blob&lt;BR /&gt;set sdo_blob = sdo_util.to_wkbgeometry(&lt;STRONG&gt;sdo_cs.make_2d&lt;/STRONG&gt;(sdo_geometry(replace(sde.st_astext(shape),'LINESTRING M','LINESTRING'))));&lt;BR /&gt;commit;&lt;BR /&gt;&lt;BR /&gt;select&lt;BR /&gt;    sdo_util.from_wkbgeometry(sdo_blob) wkb_to_sdo&lt;BR /&gt;from&lt;BR /&gt;    atn_blob&lt;/PRE&gt;&lt;P&gt;Execution time: 3.5 to 5.5 seconds (varies)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1654034413419.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42491i5A0E76C8E44D09FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1654034413419.png" alt="Bud_0-1654034413419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Even if I did want to use that option, I'd need to wait for a Oracle to fix a few issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4497379/idea-support-m-enabled-wkb" target="_self"&gt;Idea: Support M-enabled WKB&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4497275/idea-support-linestring-z-zm-m-wkt-synta" target="_self"&gt;Idea: Support LINESTRING Z/ZM/M wkt syntax&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/4499172/convert-3d-multi-part-wkb-to-sdo-geometry" target="_self"&gt;Convert 3d multi-part WKB to SDO_GEOMETRY&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Related: &lt;A href="https://gis.stackexchange.com/questions/428735/convert-m-enabled-sde-st-geometry-to-sdo-geometry-using-sql" target="_self"&gt;Convert M-enabled SDE.ST_GEOMETRY to SDO_GEOMETRY using SQL&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 31 May 2022 22:16:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1167296#M43995</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-31T22:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: ST_GEOMETRY FC: Options for using Oracle Spatial functions</title>
      <link>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1167347#M43996</link>
      <description>&lt;P&gt;You didn't mention why the geodatabase needs to keep the ST_GEOMETRY format for that specific FC. The same Enterprise Geodatabase can have both feature classes with the geometry encoded in ESRI format (ST_Geometry) or in the database's proprietary format (in the case of Oracle, SDO_Geometry). The entry in the sde_dbtune table only defines the default format when a new FC is created. OK, such a change means changing the table structure and recreating the spatial index. If this change does not impact other applications or any published geoservices, it seems to be the simplest solution.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 19:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1167347#M43996</guid>
      <dc:creator>ClaudioRuschel</dc:creator>
      <dc:date>2022-04-24T19:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: ST_GEOMETRY FC: Options for using Oracle Spatial functions</title>
      <link>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1169571#M44003</link>
      <description>&lt;P&gt;Yeah, good point. We have existing dependencies on the ST_GEOMETRY shapes. For example, we have spatial queries between the FCs in question and other FCs…using ST_GEOMETRY spatial operators/functions. I don’t think we could easily do spatial queries between the two different data types. So I’m reluctant to switch &lt;EM&gt;some&lt;/EM&gt; of the FCs from ST_GEOMETRY to SDO_GEOMETRY.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 16:50:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1169571#M44003</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-04-30T16:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: ST_GEOMETRY FC: Options for using Oracle Spatial functions</title>
      <link>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1169587#M44004</link>
      <description>&lt;P&gt;If your spatial queries are performed by ArcGIS tools it would be no problem, because the tool would perform the needed conversions. But&amp;nbsp;If you use SQL with ST_Geometry it seems a real issue to deal. The set of native functions of spatial databases such Oracle Spatial/Graph and PostGIS are much more complete than the ST_Geometry ones. So, if one intends to use SQL, it seems to choose the native spatial database geometry format at the beginning of the project is the best choice.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 22:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1169587#M44004</guid>
      <dc:creator>ClaudioRuschel</dc:creator>
      <dc:date>2022-04-30T22:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: ST_GEOMETRY FC: Options for using Oracle Spatial functions</title>
      <link>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1169598#M44005</link>
      <description>&lt;P&gt;Yeah. That would be nice.&lt;/P&gt;&lt;P&gt;My organization chose ST_GEOMETRY years ago...and I think it was a perfectly reasonable decision at that time.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;- ST_GEOMETRY was recommended by Esri.&lt;BR /&gt;&amp;nbsp;- Oracle Spatial wasn’t free then.&lt;BR /&gt;&amp;nbsp;- ST_GEOMETRY is easier for non-SQL experts to use than SDO_GEOMETRY (ST_GEOMETRY is simpler and the docs are easier to parse).&lt;/P&gt;&lt;P&gt;Even if that wasn’t the case, it would take some effort to switch all the FCs over to a new spatial type (and would likely have unforeseen complications). So I think I’ll be stuck with ST_GEOMETRY for the foreseeable future. Despite the fact that we will be upgrading our GIS system soon (in theory, that’d be the time to switch).&lt;/P&gt;&lt;P&gt;So all that considered, I think my only option is to create “helper” SDO_GEOMETRY columns for a few polyline FCs…so that I can do my linear referencing SQL work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But yes, for organizations that are starting from scratch, or companies that are &lt;I&gt;project-based&lt;/I&gt;, or for organizations who are switching database vendors …then I would agree that going with SDO_GEOMETRY would be the right choice.&lt;/P&gt;&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-enterprise-questions/what-spatial-type-does-esri-recommend-for-oracle/m-p/1161203#M32881" target="_self"&gt;What spatial type does Esri recommend for Oracle EGDBs?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 03:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1169598#M44005</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-20T03:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: ST_GEOMETRY FC: Options for using Oracle Spatial functions</title>
      <link>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1178597#M44049</link>
      <description>&lt;P&gt;Related post:&amp;nbsp;&lt;A href="https://community.oracle.com/tech/apps-infra/discussion/comment/16837271" target="_self"&gt;Idea: Support invisible SDO_GEOMETRY columns&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(That title is misleading — the page &lt;EM&gt;does&lt;/EM&gt; have a related discussion...about why I can't just switch to SDO_GEOMETRY.)&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 15:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/st-geometry-fc-options-for-using-oracle-spatial/m-p/1178597#M44049</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-05-31T15:07:30Z</dc:date>
    </item>
  </channel>
</rss>

