<?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: How do I sum the areas of polygons in multiple shapefiles? in New to GIS Questions</title>
    <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144478#M353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;^ but chances are it's not that bad &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 04:57:47 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2015-02-18T04:57:47Z</dc:date>
    <item>
      <title>How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144475#M350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All -- I have multiple geodatabases each with many shapefiles containing multiple polygons. I want to quickly and easily get the total area of polygons in each shapefile. I can't believe that ArcGIS is so cumbersome as to require me to add an Area field to each shapefile, calculate geometry, and then run statistics. Isn't there some simpler way to find out total area for each shape file? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for anyone's help! -- Steve Wheeler, U.C. Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 01:55:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144475#M350</guid>
      <dc:creator>StephenWheeler</dc:creator>
      <dc:date>2015-02-18T01:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144476#M351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can certainly automate the process with python (if that's how you want to go, please indicate).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if your data truly are in geodatabases (there is some confusion whether you're talking about geodatabases or folders of shapefiles), each feature class will already have the auto-populated field SHAPE_AREA. Then, right-click the field and Summarize to get the total, or batch process Summary Statistics on all feature classes to semi-automate the totals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 03:09:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144476#M351</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-02-18T03:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144477#M352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not to mention the fact that some of the files will be using data in longitude and latitude.&amp;nbsp; This will require you to project the data, which in turn can yield slightly different values for the same area, particularly if the datums are different.&amp;nbsp; And we can't not mention that these calculations are all being done using some perhaps erroneous representation of true space...of course assuming everything was digitized and processed without error at the highest precision possible in the first place.&amp;nbsp; So it is no wonder that people that study coordinate systems, projections and their implications to geometric representation of space have a hard time sleeping at night.&amp;nbsp; And the poor surveys that have to collect these data with a high degree of accuracy only to have some cartographer cut corners...literally and figuratively... to make a map look better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my hat is off to people in that field of spatial data collection, geodesy and mapping like Melita ... &lt;A href="https://community.esri.com/migrated-users/3120"&gt;Melita Kennedy&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you raise that dreaded word ... statistics ... with the problems of collecting and representing space... someone wants to derive statistics.&amp;nbsp; It is bad enough that they will attempt to derive meaningful descriptive statistics ... nope...they don't stop there ... off they go trying to show spatial patterns or that things are different and ascribe a reason for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When will the madness end?&amp;nbsp; Grab a bunch of files in digital form for the same area ( a county perhaps) determine their geometry...take their average...and say 'about this big' ...&amp;nbsp; or 'we will need more money to fine-tune the estimate'.&amp;nbsp; So if you are on the receiving end of a request like this ... good luck ... if you are on the requesting end ... consider the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In jest of course ... or maybe some of it . &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 03:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144477#M352</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-18T03:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144478#M353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;^ but chances are it's not that bad &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 04:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144478#M353</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-02-18T04:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144479#M354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren -- Thanks so much for your answer. Probably the data is just in folders of shapefiles (not sure the exact definition of geodatabase). There isn't any SHAPE_AREA field on them. I don't know Python and don't want to get involved with scripts unless absolutely necessary....was hoping that at this point in its evolution ArcGIS was user-friendly enough to have some function to calculate area, which seems like such a basic thing.....What do you recommend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks -- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 05:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144479#M354</guid>
      <dc:creator>StephenWheeler</dc:creator>
      <dc:date>2015-02-18T05:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144480#M355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh they exist...ArcScripts 2.0 is coming soon...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ToolTorture.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/63015_ToolTorture.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 08:52:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144480#M355</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-18T08:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144481#M356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan — Thanks, but where do i find Batch Calc APL? I don’t see it anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 06:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144481#M356</guid>
      <dc:creator>StephenWheeler</dc:creator>
      <dc:date>2015-02-19T06:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144482#M357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcCatalog, you could create a new File geodatabase (FGDB), and a feature dataset (Define an appropriate Projected coordinate system to it). You could then just &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Importing_a_feature_class_multiple/003n00000047000000/"&gt;import&lt;/A&gt; all the shapefiles to the feature dataset. This will take care of Creation of &lt;STRONG&gt;Shape_Area&lt;/STRONG&gt; Field, and &lt;STRONG&gt;calculate geometry&lt;/STRONG&gt; for all the feature classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/63344_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 08:50:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144482#M357</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-02-19T08:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144483#M358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay — Thanks; that’s helpful. I’ll give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 16:42:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144483#M358</guid>
      <dc:creator>StephenWheeler</dc:creator>
      <dc:date>2015-02-19T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144484#M359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This wouldn't take too long to do per folder simply through the GUI and &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00210000000w000000"&gt;batch processing&lt;/A&gt;. One batch for &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000047000000"&gt;Add Field&lt;/A&gt; (area), one batch for &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Calculate_Field/00170000004m000000/"&gt;Calculate Field&lt;/A&gt;, and finally &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Summary_Statistics/00080000001z000000/"&gt;Summary Statistics&lt;/A&gt; to add up the areas. Of course, if you have many folders, you'd want to automate it with a model or script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 16:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144484#M359</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-02-19T16:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144485#M360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay - I've now got the FGDB and have imported the shapefiles...do I run Summary Statistics? This gives me an invalid pointer error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 17:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144485#M360</guid>
      <dc:creator>StephenWheeler</dc:creator>
      <dc:date>2015-02-19T17:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144486#M361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure to define statistics field and statistics type as sum in Summary Statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/63463_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 18:11:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144486#M361</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-02-19T18:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144487#M362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although very late, but you could do something like this with some Python code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
workspace = r"C:\Path\To\Your\Folder"

sum_areas = 0
cnt = 0
walk = arcpy.da.Walk(workspace, topdown=True, datatype="FeatureClass", type="Polygon")
for dirpath, dirnames, filenames in walk:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for filename in filenames:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cnt += 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shp = os.path.join(dirpath, filename)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; area = sum([r[0] for r in arcpy.da.SearchCursor(shp, ("SHAPE@AREA")) if not r[0] is None])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum_areas += area
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "shp: {0} has area {1}".format(shp, area)

print "{0} polygon featureclasses found".format(cnt)
if cnt &amp;gt; 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "total area: {0}".format(sum_areas)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "mean area per featureclass: {0}".format(round(sum_areas / float(cnt),2))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144487#M362</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T07:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144488#M363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alas, this looks too complicated to use. There are quite a few steps for each file, and to find the answer I have to then open an output table, which I'm not sure how to do (opening it in catalog doesn't appear to give me the sum). I'm trying instead to open each attribute table in the new geodatabase and right-click on shape-area to get statistics. The main problem at the moment is getting the units right. I thought I had everything set to kilometres but the areas are coming out way too large.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 05:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144488#M363</guid>
      <dc:creator>StephenWheeler</dc:creator>
      <dc:date>2015-02-20T05:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sum the areas of polygons in multiple shapefiles?</title>
      <link>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144489#M364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your expected areas either 1,000,000 (meters) or 10,764,000 (feet) times too large, by chance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 06:08:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/new-to-gis-questions/how-do-i-sum-the-areas-of-polygons-in-multiple/m-p/144489#M364</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-02-20T06:08:52Z</dc:date>
    </item>
  </channel>
</rss>

