<?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: Calculate field @SQUAREMETERS in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145083#M11304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try projecting the file first?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 18:54:55 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2011-07-08T18:54:55Z</dc:date>
    <item>
      <title>Calculate field @SQUAREMETERS</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145079#M11300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could anyone tell me why calculating the shape.length@METERS works for me, but calculating shape.area@SQUAREMETERS does not.&amp;nbsp; Area always returns '0'.&amp;nbsp; I'm using 9.3, and the feature classes are in WGS 84.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are 2 examples: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~Length&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.CalculateField_management(fc , field.name, '!SHAPE.LENGTH@METERS!', "PYTHON_9.3"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~Area&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.CalculateField_management(fc , field.name, '!SHAPE.AREA@SQUAREMETERS!', "PYTHON_9.3"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 14:37:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145079#M11300</guid>
      <dc:creator>RyanStephany</dc:creator>
      <dc:date>2011-07-08T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field @SQUAREMETERS</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145080#M11301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SQUAREMETERS works for me the way you have it - but I'm using ArcGIS 10. Sorry to ask this, but you're not trying to calculate the area for a line feature class, are you?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 15:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145080#M11301</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2011-07-08T15:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field @SQUAREMETERS</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145081#M11302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;don't be sorry, no I'm not calculating the area of a line,&amp;nbsp; I did find something though.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It was returning '0' because I was only trying to keep 2 decimal places.&amp;nbsp; I am getting values, but they do not seem to be in meters squared.&amp;nbsp; When you tried it in 10 was the output of the calculation correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is part of the actual code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my_fields = {'Polyline':{'LEN': '!SHAPE.LENGTH@METERS!'}, 'Polygon' : {'ARA': '!SHAPE.AREA@SQUAREMETERS!'}}&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.CalculateField_management(fc , field.name, '"%.2f" % float('+ self.my_fields[desc.ShapeType][field.name]+ ')', "PYTHON_9.3")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 18:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145081#M11302</guid>
      <dc:creator>RyanStephany</dc:creator>
      <dc:date>2011-07-08T18:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field @SQUAREMETERS</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145082#M11303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so the field I'm trying to calculate is populated with the same as the Shape_AREA field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shape_AREA =&amp;nbsp; 0.000651&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my_calculated_field = 0.000651&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What_i_want = 6974972.61&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 18:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145082#M11303</guid>
      <dc:creator>RyanStephany</dc:creator>
      <dc:date>2011-07-08T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field @SQUAREMETERS</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145083#M11304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try projecting the file first?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 18:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145083#M11304</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-07-08T18:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field @SQUAREMETERS</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145084#M11305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i tried reprojecting in the cursor, but got the same results.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 19:06:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145084#M11305</guid>
      <dc:creator>RyanStephany</dc:creator>
      <dc:date>2011-07-08T19:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate field @SQUAREMETERS</title>
      <link>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145085#M11306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I don't understand is that converting !Shape.Length@METERS! works for polylines, but !Shape.Area@SQUAREMETERS! for polygons does not do any conversion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 19:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-field-squaremeters/m-p/145085#M11306</guid>
      <dc:creator>RyanStephany</dc:creator>
      <dc:date>2011-07-08T19:09:31Z</dc:date>
    </item>
  </channel>
</rss>

