<?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.AsShape() Concerns with .getArea() and .area in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-asshape-concerns-with-getarea-and-area/m-p/103523#M7986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've probably already looked here &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/polygon.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/polygon.htm"&gt;Polygon—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="arcpyclass_proptbl" style="margin-bottom: 1.5em; font-size: 0.875em; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; border: 1px solid #dddddd; color: #4d4d4d; background-color: white;"&gt;&lt;TBODY&gt;&lt;TR style="border-bottom-width: 1px; border-bottom-color: #dddddd;"&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;area&lt;P class="paramhint"&gt;(Read Only)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;&lt;P style="font-size: 0.875rem;"&gt;The area of a polygon feature. Empty for all other feature types.&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;Double&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE class="arcpyclass_methodsigtbl" style="margin-bottom: 1.5em; font-size: 0.875em; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; border: 1px solid #dddddd; color: #4d4d4d; background-color: white;"&gt;&lt;TBODY&gt;&lt;TR style="border-bottom-width: 1px; border-bottom-color: #dddddd;"&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;getArea ({type}, {units})&lt;/TD&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;&lt;P style="font-size: 0.875rem;"&gt;Returns the area of the feature using a measurement type.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jan 2016 16:11:31 GMT</pubDate>
    <dc:creator>WesMiller</dc:creator>
    <dc:date>2016-01-06T16:11:31Z</dc:date>
    <item>
      <title>arcpy.AsShape() Concerns with .getArea() and .area</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-asshape-concerns-with-getarea-and-area/m-p/103522#M7985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In an attempt to acquire the area of a polygon feature, I'm seeing some discrepancies between two methods and need some input.&amp;nbsp; In the code below, I'm acquiring what I think is the area in 2 distinctive ways (parea1 and parea2):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;prjpolygon = polygon.projectAs(outSr)
parea1 = prjpolygon.getArea()
parea2 = prjpolygon.area&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;parea1 Sqfeet : 21767057.9882 &lt;/P&gt;&lt;P&gt;parea2 Sqfeet : 26642367.0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do these return different values?&amp;nbsp; Which one do I use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-asshape-concerns-with-getarea-and-area/m-p/103522#M7985</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-11T06:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.AsShape() Concerns with .getArea() and .area</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-asshape-concerns-with-getarea-and-area/m-p/103523#M7986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You've probably already looked here &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/polygon.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-classes/polygon.htm"&gt;Polygon—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="arcpyclass_proptbl" style="margin-bottom: 1.5em; font-size: 0.875em; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; border: 1px solid #dddddd; color: #4d4d4d; background-color: white;"&gt;&lt;TBODY&gt;&lt;TR style="border-bottom-width: 1px; border-bottom-color: #dddddd;"&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;area&lt;P class="paramhint"&gt;(Read Only)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;&lt;P style="font-size: 0.875rem;"&gt;The area of a polygon feature. Empty for all other feature types.&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;Double&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE class="arcpyclass_methodsigtbl" style="margin-bottom: 1.5em; font-size: 0.875em; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; border: 1px solid #dddddd; color: #4d4d4d; background-color: white;"&gt;&lt;TBODY&gt;&lt;TR style="border-bottom-width: 1px; border-bottom-color: #dddddd;"&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;getArea ({type}, {units})&lt;/TD&gt;&lt;TD style="border-left-width: 1px; border-left-style: solid; border-left-color: #dddddd; border-right-width: 1px; border-right-style: solid; border-right-color: #dddddd; padding: 12px;"&gt;&lt;P style="font-size: 0.875rem;"&gt;Returns the area of the feature using a measurement type.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 16:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-asshape-concerns-with-getarea-and-area/m-p/103523#M7986</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-01-06T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.AsShape() Concerns with .getArea() and .area</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-asshape-concerns-with-getarea-and-area/m-p/103524#M7987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I had to cycle thru the types (planar was the ticket) to get these to produce identical results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;prjpolygon = polygon.projectAs(outSr)
parea1 = prjpolygon.getArea('PLANAR','Feet')
parea2 = prjpolygon.area

print "\t parea1 Sqfeet : {} ".format(parea1)
print "\t parea2 Sqfeet : {} ".format(parea2)&lt;/PRE&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parea1 Sqfeet : 26642367.0 &lt;/P&gt;&lt;P&gt;parea2 Sqfeet : 26642367.0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:21:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-asshape-concerns-with-getarea-and-area/m-p/103524#M7987</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-11T06:21:52Z</dc:date>
    </item>
  </channel>
</rss>

