<?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 Esri docs need updating: Function-based spatial indexes in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idi-p/1174005</link>
    <description>&lt;P&gt;Regarding Esri&amp;nbsp;technical article #000011694:&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000011694" target="_self"&gt;&lt;SPAN&gt;How To: Create Oracle Spatial function-based indexing&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That article has out-of-date &amp;amp; incomplete information:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. The article suggests that we should use the index type: MDSYS.SPATIAL_INDEX. That's the old way of doing it. Oracle now recommends we use the new version of that index type: MDSYS.SPATIAL_INDEX&lt;STRONG&gt;_V2&lt;/STRONG&gt;.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/indexing-querying-spatial-data.html#GUID-6BBF58C4-10D0-4993-8DF2-60C3157412D7" target="_self"&gt;5.1.1 Using System-Managed Spatial Indexes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Effective with Release 12.2, spatial indexes can be system-managed by specifying INDEXTYPE=MDSYS.SPATIAL_INDEX&lt;STRONG&gt;_V2&lt;/STRONG&gt; at index creation. You are strongly encouraged to use this index type for all new spatial indexes you create, regardless of whether the spatial table or the spatial index is partitioned, and you may also want to use it if you decide to re-create legacy spatial indexes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;2. Also, the Esri article says:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;When creating a query layer that references an Oracle view containing an Oracle Spatial attribute, the attribute &lt;STRONG&gt;must have a spatial index&lt;/STRONG&gt;. Without the spatial index, spatial queries cannot be executed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's no longer true.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/18/spatl/whats-new.html#GUID-9A203079-C41C-4AD0-B8D9-01485A77E2DB" target="_self"&gt;Spatial Index No Longer Required&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creating and using a spatial index is &lt;STRONG&gt;no longer required&lt;/STRONG&gt; for the use of any Oracle Spatial and Graph features. However, spatial indexes are highly recommended, and not using them can negatively affect performance in some cases.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ideally, we would use spatial indexes whenever we can. But that's not always possible — and for small datasets, it's not always necessary.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;Edit — 2022-06-16:&lt;/STRONG&gt; In hindsight, I'm not sure if point #3 is correct. Needs verification?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;3. There is information missing from the article about performance and USER_SDO_GEOM_METADATA.&lt;BR /&gt;In addition to creating an entry in&amp;nbsp;USER_SDO_GEOM_METADATA for the SDO_GEOMETRY column/function, we also need to create an entry for any spatial &lt;STRONG&gt;&lt;EM&gt;views&lt;/EM&gt;&lt;/STRONG&gt; that use the column, so that those spatial views will be performant in the map in ArcGIS:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/92554/create-an-sdo-geometry-view-from-a-non-spatial-table/92599#:~:text=on%20a%20map%20(-,using%20some%20GIS%20tool,-)%2C%20you%20will%20probably" target="_blank" rel="nofollow noopener noreferrer ugc"&gt;Answer&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;from&amp;nbsp;Albert Godfrind (Oracle Spatial Team):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you want to also see the content of the view on a map (using some GIS tool), you will probably also need to define metadata for the view. This is NOT needed for spatial queries, but is a common requirement for GIS tools.&lt;/P&gt;&lt;PRE&gt;insert into user_sdo_geom_metadata (table_name, column_name, diminfo, srid)&lt;BR /&gt;values (&lt;BR /&gt;'MY_SPATIAL_VV', &lt;BR /&gt;'SHAPE',&lt;BR /&gt;sdo_dim_array (&lt;BR /&gt;sdo_dim_element('long', -180.0, 180.0, 0.5),&lt;BR /&gt;sdo_dim_element('lat', -90.0, 90.0, 0.5)&lt;BR /&gt;),&lt;BR /&gt;4326&lt;BR /&gt;);&lt;BR /&gt;commit;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Could Esri please update this technical article so that it has up-to-date information?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 09:25:09 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-06-21T09:25:09Z</dc:date>
    <item>
      <title>Esri docs need updating: Function-based spatial indexes</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idi-p/1174005</link>
      <description>&lt;P&gt;Regarding Esri&amp;nbsp;technical article #000011694:&amp;nbsp;&lt;A href="https://support.esri.com/en/technical-article/000011694" target="_self"&gt;&lt;SPAN&gt;How To: Create Oracle Spatial function-based indexing&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That article has out-of-date &amp;amp; incomplete information:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. The article suggests that we should use the index type: MDSYS.SPATIAL_INDEX. That's the old way of doing it. Oracle now recommends we use the new version of that index type: MDSYS.SPATIAL_INDEX&lt;STRONG&gt;_V2&lt;/STRONG&gt;.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/indexing-querying-spatial-data.html#GUID-6BBF58C4-10D0-4993-8DF2-60C3157412D7" target="_self"&gt;5.1.1 Using System-Managed Spatial Indexes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Effective with Release 12.2, spatial indexes can be system-managed by specifying INDEXTYPE=MDSYS.SPATIAL_INDEX&lt;STRONG&gt;_V2&lt;/STRONG&gt; at index creation. You are strongly encouraged to use this index type for all new spatial indexes you create, regardless of whether the spatial table or the spatial index is partitioned, and you may also want to use it if you decide to re-create legacy spatial indexes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;2. Also, the Esri article says:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;When creating a query layer that references an Oracle view containing an Oracle Spatial attribute, the attribute &lt;STRONG&gt;must have a spatial index&lt;/STRONG&gt;. Without the spatial index, spatial queries cannot be executed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's no longer true.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/18/spatl/whats-new.html#GUID-9A203079-C41C-4AD0-B8D9-01485A77E2DB" target="_self"&gt;Spatial Index No Longer Required&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Creating and using a spatial index is &lt;STRONG&gt;no longer required&lt;/STRONG&gt; for the use of any Oracle Spatial and Graph features. However, spatial indexes are highly recommended, and not using them can negatively affect performance in some cases.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ideally, we would use spatial indexes whenever we can. But that's not always possible — and for small datasets, it's not always necessary.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;Edit — 2022-06-16:&lt;/STRONG&gt; In hindsight, I'm not sure if point #3 is correct. Needs verification?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;3. There is information missing from the article about performance and USER_SDO_GEOM_METADATA.&lt;BR /&gt;In addition to creating an entry in&amp;nbsp;USER_SDO_GEOM_METADATA for the SDO_GEOMETRY column/function, we also need to create an entry for any spatial &lt;STRONG&gt;&lt;EM&gt;views&lt;/EM&gt;&lt;/STRONG&gt; that use the column, so that those spatial views will be performant in the map in ArcGIS:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/92554/create-an-sdo-geometry-view-from-a-non-spatial-table/92599#:~:text=on%20a%20map%20(-,using%20some%20GIS%20tool,-)%2C%20you%20will%20probably" target="_blank" rel="nofollow noopener noreferrer ugc"&gt;Answer&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;from&amp;nbsp;Albert Godfrind (Oracle Spatial Team):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you want to also see the content of the view on a map (using some GIS tool), you will probably also need to define metadata for the view. This is NOT needed for spatial queries, but is a common requirement for GIS tools.&lt;/P&gt;&lt;PRE&gt;insert into user_sdo_geom_metadata (table_name, column_name, diminfo, srid)&lt;BR /&gt;values (&lt;BR /&gt;'MY_SPATIAL_VV', &lt;BR /&gt;'SHAPE',&lt;BR /&gt;sdo_dim_array (&lt;BR /&gt;sdo_dim_element('long', -180.0, 180.0, 0.5),&lt;BR /&gt;sdo_dim_element('lat', -90.0, 90.0, 0.5)&lt;BR /&gt;),&lt;BR /&gt;4326&lt;BR /&gt;);&lt;BR /&gt;commit;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Could Esri please update this technical article so that it has up-to-date information?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 09:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idi-p/1174005</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-21T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Esri docs need updating: Function-based spatial indexes</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idc-p/1176433#M2843</link>
      <description>&lt;P&gt;Thank you for the clarification Bud, I will work on updating this today.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 15:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idc-p/1176433#M2843</guid>
      <dc:creator>JonEmch</dc:creator>
      <dc:date>2022-05-23T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Esri docs need updating: Function-based spatial indexes - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idc-p/1179615#M2857</link>
      <description>&lt;P&gt;Working with internal sources on updating this document.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 20:46:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idc-p/1179615#M2857</guid>
      <dc:creator>JonEmch</dc:creator>
      <dc:date>2022-06-02T20:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Esri docs need updating: Function-based spatial indexes</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idc-p/1179634#M2858</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/144649"&gt;@JonEmch&lt;/a&gt;&amp;nbsp;Thanks Jon! Looking forward to seeing the result.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 21:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idc-p/1179634#M2858</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-06-02T21:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Esri docs need updating: Function-based spatial indexes - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idc-p/1184049#M2882</link>
      <description />
      <pubDate>Fri, 17 Jun 2022 20:32:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/esri-docs-need-updating-function-based-spatial/idc-p/1184049#M2882</guid>
      <dc:creator>JonEmch</dc:creator>
      <dc:date>2022-06-17T20:32:29Z</dc:date>
    </item>
  </channel>
</rss>

