<?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: Recalculate Extent in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283896#M21919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also use this tool &lt;A href="http://www.arcgis.com/home/item.html?id=bcf03572fe6949d9bbf89c3272be76c5"&gt;GP Update Extent FClass&lt;/A&gt;​.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2016 08:54:08 GMT</pubDate>
    <dc:creator>FrédéricPRALLY</dc:creator>
    <dc:date>2016-01-14T08:54:08Z</dc:date>
    <item>
      <title>Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283887#M21910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to recalculate the Extent of some feature classes. I found some vba, c# code but the job has to be done with python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Describe will show me the extent but there seems to by no way to set the extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 05:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283887#M21910</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2013-02-07T05:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283888#M21911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ernst,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do your feature classes reside in a File/Personal Geodatabase, or an SDE Geodatabase?&amp;nbsp; If they reside in an SDE geodatabase you can use the '&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/geodatabase/10.0/admin_cmds/Support_files/whnjs.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;sdelayer -o alter&lt;/A&gt;&lt;SPAN&gt;' command to recalculate the extent.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import os
os.system("sdelayer -o alter -l parcels,shape -E calc -i sde:sqlserver:serverA -D GIS -u vector -p vector")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The '-E calc' option will recalculate the extent based on all the features.&amp;nbsp; Or you can optionally specify it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-E -75.17,39.88,-75.13,39.92&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283888#M21911</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T13:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283889#M21912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. I will try this for me data in my ArcSDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i have further data in File/Personal Geodatabases. Do you have code for this problem? i can't find any solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 11:04:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283889#M21912</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2013-02-07T11:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283890#M21913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have noticed in the past, when using a feature class as a "template". ie Copy it, delete all the features out of it, when re-populate it with new stuff. The extent somehow still reflects the old stuff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I would also love to know how to do this for F &amp;amp; P gdb's.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 12:11:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283890#M21913</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2013-02-07T12:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283891#M21914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, sdelayer -alter...... works pretty well. Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now the next step is to recalculate the extent for feature classes in File/Personal Geodatabases.......&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 08:33:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283891#M21914</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2013-02-08T08:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283892#M21915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ernst,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.1, there is a way to recalculate the extent through the properties of the feature class.&amp;nbsp; In the Catalog window &amp;gt; right-click on the feature class &amp;gt; Properties &amp;gt; Feature Extent tab.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]21603[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I was able to find a way to do this using python is to execute the Feature Class to Feature Class tool.&amp;nbsp; So, what you could do is execute the following tools:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.FeatureClassToFeatureClass_conversion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Delete_management (delete the original feature class)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Rename_management (rename the copied feature class to the original name)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283892#M21915</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-02-08T10:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283893#M21916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.FeatureClassToFeatureClass_conversion
arcpy.Delete_management (delete the original feature class)
arcpy.Rename_management (rename the copied feature class to the original name) &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;works pretty well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;sdelayer -o alter -l parcels,shape -E calc -i sde:sqlserver:serverA -D GIS -u vector -p vector&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on my sde data. I get the message "...successful" but when i load the data in ArcMap it seems that nothing happend to the extent. I will only see a small point that represents my whole data. So the extent is too big.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data in the ArcSDE is versioned. May this cause a problem? Before i ran sdelayer i stopped all running services.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283893#M21916</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2021-12-11T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283894#M21917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the feature class is registered as versioned, you will need to reconcile the child versions and then perform a compress.&amp;nbsp; If you are running ArcGIS for Desktop 10.1&amp;nbsp; you can make a connection as an administrator &amp;gt; right-click on the database connection &amp;gt; Administration &amp;gt; Administer Geodatabase &amp;gt; Reconcile Order tab.&amp;nbsp; Right-click on each version &amp;gt; Reconcile.&amp;nbsp; After each version is reconciled and no locks exist within the geodatabase, right-click on the database connection &amp;gt; Administration &amp;gt; Compress Geodatabase.&amp;nbsp; After the geodatabase is compressed, you can execute the 'sdelayer -o alter' command and the extent will recalculate.&amp;nbsp; You can also script the above using the Versioning toolset for the Data Management tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 18:17:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283894#M21917</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-02-12T18:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283895#M21918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;BLOCKQUOTE&gt;JSkinn3;271206 wrote:&lt;BR /&gt;Hi Ernst,&lt;/BLOCKQUOTE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.1, there is a way to recalculate the extent through the properties of the feature class.&amp;nbsp; In the Catalog window &amp;gt; right-click on the feature class &amp;gt; Properties &amp;gt; Feature Extent tab.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]21603[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QUOTE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 10.1 SP1, but recalculate using the Feature Extent tab did not work for me. It still recalcuated to incorrect extent, covering for areas than what is in my current feature class. In my case, the data resides in ArcSDE, but in a 9.3 SDE on Oracle. Only my client is ArcGIS Desktop 10.1. Is this a bug in 10.1 SP1? Has ESRI created a bug # for this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 00:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283895#M21918</guid>
      <dc:creator>DianaUmpierre</dc:creator>
      <dc:date>2013-06-04T00:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283896#M21919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also use this tool &lt;A href="http://www.arcgis.com/home/item.html?id=bcf03572fe6949d9bbf89c3272be76c5"&gt;GP Update Extent FClass&lt;/A&gt;​.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 08:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283896#M21919</guid>
      <dc:creator>FrédéricPRALLY</dc:creator>
      <dc:date>2016-01-14T08:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Recalculate Extent</title>
      <link>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283897#M21920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS 10.4 has a new tool (this used to be the workstation command REBOX). It finally has made it to ArcGIS! It's funny how some things got left behind, and 15 years later we didn't know how much we missed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/recalculate-feature-class-extent.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/recalculate-feature-class-extent.htm"&gt;Recalculate Feature Class Extent—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have previous versions I found a workaround &lt;A href="http://gis.stackexchange.com/questions/24590/recalculating-full-extent-of-file-geodatabase-feature-class"&gt;on Stack Exchange:&lt;/A&gt; Compress and uncompress the geodatabase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/recalculate-extent/m-p/283897#M21920</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-04-12T17:10:06Z</dc:date>
    </item>
  </channel>
</rss>

