How to Output the Values of Bounding Box in Spatial Index Using Python?

12-28-2018 01:48 PM
New Contributor



I need help with figuring out how to output the values in the Bounding Box in the Indexes tab using Python. Below is the snip of the bounding box and I need the values in here to be accessed by the Python code and printed out with a print statement. I can easily find the values for the feature extent but I cannot get the values in the Bounding Box under the Indexes tab to show up and I have looked everywhere I could.

Thanks for helping!

0 Kudos
1 Reply
MVP Esteemed Contributor

You can get to them with arcpy.Describe():

import arcpy

arcpy.env.workspace = r'C:\path\to\your_geodatabase'
fc = 'feature class name'

descFC = arcpy.Describe(fc)
fc_xmin = descFC.extent.XMin
fc_ymin = descFC.extent.YMin
fc_xmax = descFC.extent.XMax
fc_ymax = descFC.extent.YMax
That should just about do it....