<?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: Arcpy spatial index Validation in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012048#M59386</link>
    <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-spatial-index.htm" target="_blank"&gt;Add Spatial Index (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;will recalculate one if that is what you are looking for.&amp;nbsp; See the code sample section&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 14:40:28 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-12-23T14:40:28Z</dc:date>
    <item>
      <title>Arcpy spatial index Validation</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012031#M59383</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there in arcpy a function that does the same as the Validate button in the image below? or has some a python script for that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DominiqueAndriessen_0-1608730531532.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2806iE68C4386832F6DF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DominiqueAndriessen_0-1608730531532.png" alt="DominiqueAndriessen_0-1608730531532.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 13:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012031#M59383</guid>
      <dc:creator>JDA</dc:creator>
      <dc:date>2020-12-23T13:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy spatial index Validation</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012034#M59384</link>
      <description>&lt;P&gt;The documentation suggests it's running a comparison of the spatial index extent and the feature class extent.&lt;/P&gt;&lt;P&gt;you can probably grab index info with&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/listindexes.htm" target="_blank"&gt;ListIndexes—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp; then I would hope the info is in the 'fields' attribute of the Index class&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/index.htm" target="_blank"&gt;Index—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;but i'm not entirely sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would get the FC extent using&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/describing-data.htm#:~:text=The%20arcpy.,properties%20are%20available%20for%20use." target="_blank"&gt;Describing data—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/159314/accessing-feature-extent-of-feature-class-using-arcpy" target="_blank"&gt;file geodatabase - Accessing feature extent of feature class using ArcPy? - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;has an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd then run some comparison of the MinX MinY etc for the FC extent and the Spatial Index extent, or maybe you can do an equality on the extent objects? (no idea).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012034#M59384</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-12-23T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy spatial index Validation</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012048#M59386</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-spatial-index.htm" target="_blank"&gt;Add Spatial Index (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;will recalculate one if that is what you are looking for.&amp;nbsp; See the code sample section&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 14:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012048#M59386</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-23T14:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy spatial index Validation</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012131#M59388</link>
      <description>&lt;P&gt;Unfortunately, spatial index extents are not available through ArcPy.&amp;nbsp; I am not even sure they are available in Pro SDK yet because the ArcPy Index methods appear to just mimic what is already available in the Pro SDK.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 18:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1012131#M59388</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-12-23T18:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy spatial index Validation</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1017227#M59537</link>
      <description>&lt;P&gt;I would be careful with recalculating spatial indexes, especially on larger datasets or on enterprise databases. This can be a time consuming operation and could impact other users of the dataset.&lt;/P&gt;&lt;P&gt;Unfortunately, I am not aware of a way of validating the spatial reference via a script.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 14:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatial-index-validation/m-p/1017227#M59537</guid>
      <dc:creator>DavidBlanchard</dc:creator>
      <dc:date>2021-01-15T14:37:06Z</dc:date>
    </item>
  </channel>
</rss>

