Hello,
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!
You can get to them with arcpy.Describe():
<SPAN class="keyword token">import</SPAN> arcpy arcpy<SPAN class="punctuation token">.</SPAN>env<SPAN class="punctuation token">.</SPAN>workspace <SPAN class="operator token">=</SPAN> r<SPAN class="string token">'C:\path\to\your_geodatabase'</SPAN> fc <SPAN class="operator token">=</SPAN> <SPAN class="string token">'feature class name'</SPAN> descFC <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Describe<SPAN class="punctuation token">(</SPAN>fc<SPAN class="punctuation token">)</SPAN> fc_xmin <SPAN class="operator token">=</SPAN> descFC<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>XMin fc_ymin <SPAN class="operator token">=</SPAN> descFC<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>YMin fc_xmax <SPAN class="operator token">=</SPAN> descFC<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>XMax fc_ymax <SPAN class="operator token">=</SPAN> descFC<SPAN class="punctuation token">.</SPAN>extent<SPAN class="punctuation token">.</SPAN>YMax <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.