<?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 Geometry in Model Builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628502#M20988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! Glad to hear that worked good for you! :cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2011 20:29:48 GMT</pubDate>
    <dc:creator>StephanieWendel</dc:creator>
    <dc:date>2011-08-23T20:29:48Z</dc:date>
    <item>
      <title>Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628499#M20985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am looking for an easy method, similar to how you do it in ArcMap, to calculate geometry for two fields.&amp;nbsp; I want to add the lat and long to a point feature class that I have.&amp;nbsp; The coordinate system of the point feature class is not in geographic coordinates.&amp;nbsp; Any ideas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Casey&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 20:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628499#M20985</guid>
      <dc:creator>CaseyBentz</dc:creator>
      <dc:date>2011-08-19T20:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628500#M20986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the Add XY Coordinates tool to expose the xy coordinates of your point data. See this link &lt;/SPAN&gt;&lt;A href="http://http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000032000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000032000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to use this in a model. However, before you do this you would need to re-project the data into a geographic coordinate system like WGS1984 or NAD1983 to get the values in decimal degrees. You would run the tool on this new feature class and that is where the information would be put. You can then do a join on data that is in the projected coordinate system to get its long/lats in decimal degrees.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also in the model, you can also use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001700000047000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Add Field&lt;/A&gt;&lt;SPAN&gt; then the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000004m000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Calculate Field&lt;/A&gt;&lt;SPAN&gt; tools. In the Calculate Field tool, use the following python expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def find(shape):
&amp;nbsp; point = shape.getPart(0)
&amp;nbsp; return point.X&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;find(!Shape!)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(sub point.Y to get the Y coordinates)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will however use the coordinate system of the data so again you may need to re-project the data before you use the Calculate Field tool. Again, you can join the data back to your projected coordinate dataset.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628500#M20986</guid>
      <dc:creator>StephanieWendel</dc:creator>
      <dc:date>2021-12-12T02:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628501#M20987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Stephanie, I used the add field and calculate field option. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Casey&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628501#M20987</guid>
      <dc:creator>CaseyBentz</dc:creator>
      <dc:date>2011-08-22T13:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628502#M20988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! Glad to hear that worked good for you! :cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 20:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628502#M20988</guid>
      <dc:creator>StephanieWendel</dc:creator>
      <dc:date>2011-08-23T20:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628503#M20989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw this post, and since it related to my quesiton, I decided to add here.&amp;nbsp; I am basically trying to calculate geometry for two fields using model builder.&amp;nbsp; The first field is predefined as 'Total Miles' to house total mileage for all stream segments in that field.&amp;nbsp; The second is 'Need miles' that will house mileage for a fraction of the records.&amp;nbsp; I'll determine what records using select by attributes, then calculate geometry (mileage).&amp;nbsp; My final predefined field is the percentage of Need Miles to the Total Miles, which I can derive using Calculate field in model builder.&amp;nbsp; I know, too much information.&amp;nbsp; Basically, I just need to know how to Calculate Geometry in model builder?&amp;nbsp; I can't seem to locate the function in stand-alone format to drag in to model builder, and assume there is another approach, most likely a simple one.&amp;nbsp; Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 18:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628503#M20989</guid>
      <dc:creator>MarkEnglish</dc:creator>
      <dc:date>2011-10-18T18:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628504#M20990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are looking to calculate the geometry of a shape and then put that value in a field, then you can do with python. Look at the ArcGIS Desktop Help under 'Calculate Field Examples', towards to the bottom it shows how to calculate geometry. For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Area:&amp;nbsp; !Shape.Area!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Length: !Shape.Length!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;X/Y/Z/M for first point in a line !Shape.firstPoint.X!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are looking to convert units (e.g. KM to Miles) you can even do that within the expression.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So drag in the 'Calculate Field' tool to Modelbuilder, and then build the expression to calculate the geometry you need. (Note I'm assuming your using 10.0+, I don't think this Python capability was in pre 10)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 11:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628504#M20990</guid>
      <dc:creator>GeorgeNewbury</dc:creator>
      <dc:date>2011-10-21T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628505#M20991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, using the calculate field function in Model Builder.&amp;nbsp; I just need to my emplty field to equal &lt;/SPAN&gt;&lt;STRONG&gt;!Shape.Length!&lt;/STRONG&gt;&lt;SPAN&gt;?&amp;nbsp; How does it know the calculation is set to miles?&amp;nbsp; Thanks for your time!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 14:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628505#M20991</guid>
      <dc:creator>MarkEnglish</dc:creator>
      <dc:date>2011-10-21T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628506#M20992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I ran a test run, and although the fields are populated, their units aren't in miles.&amp;nbsp; I must be missing something simple...&amp;nbsp; I am using Arc10, and I have converted to an appropriate equal distance projection.&amp;nbsp; Regards...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 14:30:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628506#M20992</guid>
      <dc:creator>MarkEnglish</dc:creator>
      <dc:date>2011-10-21T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628507#M20993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I ran a test run, and although the fields are populated, their units aren't in miles.&amp;nbsp; I must be missing something simple...&amp;nbsp; I am using Arc10, and I have converted to an appropriate equal distance projection.&amp;nbsp; Regards...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure how much influence the dataframe has on the field calculator.&amp;nbsp; I suspect it only uses the native projection and units of the feature class when you just put !Shape.Length!.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are OK with the original projection of the feature class, at 10 I believe if you choose the Python 9.3 option in the Model Builder Field Calculator tool you can adjust units by using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!Shape.Length@Miles! # or substitute any other appropriate units for Length.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure how to emulate the geometry calculator's ability to apply the dataframe projection to feature classes that were stored using a different projection through the field calculator (At least not in Python.&amp;nbsp; At 9.3 VBA would do it, but not at 10 using VB script).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 17:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628507#M20993</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2011-10-21T17:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628508#M20994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perfect, I originally didn't add the @mile.&amp;nbsp; Thanks Richard for your time!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 19:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628508#M20994</guid>
      <dc:creator>MarkEnglish</dc:creator>
      <dc:date>2011-10-21T19:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628509#M20995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Richard:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know the syntax to calculate area in Square Miles?&amp;nbsp; Thanks in advance for your time...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 14:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628509#M20995</guid>
      <dc:creator>MarkEnglish</dc:creator>
      <dc:date>2011-12-06T14:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628510#M20996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Richard:&lt;BR /&gt;Do you know the syntax to calculate area in Square Miles?&amp;nbsp; Thanks in advance for your time...&lt;BR /&gt;Mark&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;!SHAPE.AREA@SQUAREMILES!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the help topic I am consulting on the topic: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Using_the_Calculate_Field_tool/005s00000029000000/"&gt;Using the Calculate Field tool&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 14:30:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628510#M20996</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2011-12-06T14:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628511#M20997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;In the Calculate Field tool, use the following python expression.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def find(shape):
&amp;nbsp; point = shape.getPart(0)
&amp;nbsp; return point.X&lt;/PRE&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;find(!Shape!)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;(sub point.Y to get the Y coordinates)&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This works beautifully.&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:45:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628511#M20997</guid>
      <dc:creator>DavidTreering</dc:creator>
      <dc:date>2021-12-12T02:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628512#M20998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;!SHAPE.AREA@SQUAREMILES!&lt;BR /&gt;&lt;BR /&gt;Here is the help topic I am consulting on the topic: &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Using_the_Calculate_Field_tool/005s00000029000000/"&gt;Using the Calculate Field tool&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use the Calculate Field tool to calculate the 3D Length of an interpolated line and I can't seem to figure out the correct syntax for the expression. I've tried !shape.3Dlength@miles!, !shape.length3D@miles!, !shape.3D_length@miles!, and !shape.3D length@miles! but I keep getting an error. Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 19:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628512#M20998</guid>
      <dc:creator>LewSovocool</dc:creator>
      <dc:date>2013-11-12T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628513#M20999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm trying to use the Calculate Field tool to calculate the 3D Length of an interpolated line and I can't seem to figure out the correct syntax for the expression. I've tried !shape.3Dlength@miles!, !shape.length3D@miles!, !shape.3D_length@miles!, and !shape.3D length@miles! but I keep getting an error. Any thoughts?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think 3D length is not supported using the field calculator (at least not this syntax).&amp;nbsp; The only listed defined keywords for the shape components are:&amp;nbsp; type, extent, centroid, firstPoint, lastPoint, area, length, isMultipart, and partCount.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe you are limited to using the LENGTH_3D option of the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00q90000005z000000"&gt;Add Z Information tool&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Then you would have to apply a unit conversion from your base units to miles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No guarantee this will work, but since the 3D Analyst tool uses the term LENGTH_3D as the keyword and I don't see that variant listed above, you could try: !shape.length_3D@miles!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 19:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628513#M20999</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-11-12T19:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628514#M21000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think 3D length is not supported using the field calculator (at least not this syntax).&amp;nbsp; The only listed defined keywords for the shape components are:&amp;nbsp; type, extent, centroid, firstPoint, lastPoint, area, length, isMultipart, and partCount.&lt;BR /&gt;&lt;BR /&gt;I believe you are limited to using the LENGTH_3D option of the &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00q90000005z000000"&gt;Add Z Information tool&lt;/A&gt;.&amp;nbsp; Then you would have to apply a unit conversion from your base units to miles.&lt;BR /&gt;&lt;BR /&gt;No guarantee this will work, but since the 3D Analyst tool uses the term LENGTH_3D as the keyword and I don't see that variant listed above, you could try: !shape.length_3D@miles!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Richard, but I think you were correct that 3D length is not supported using the field calculator tool in this context. I tried !shape.length_3D@miles! and received the same error. Thanks for your help though!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 20:26:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628514#M21000</guid>
      <dc:creator>LewSovocool</dc:creator>
      <dc:date>2013-11-12T20:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628515#M21001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On the same field (Double) of a shapefile, I used both the Calculate Geometry (in attribute table) and Calculate Field (in Model Builder) using the !shape.area@acres! to calculate Acres. The goal is to have Acres calculated within a model. My question is, why would I get slightly different results when using the two methods? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Field Calculator (in attribute table) and Calculate Field (in Model Builder):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32745[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Calculate Geometry (in attribute table):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32746[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the difference is small but it's still a difference that makes me wonder which is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcMap version 10.2.0.3348 64-bit on Windows 8, in case that helps. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance for any knowledge you share!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Carol&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 17:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628515#M21001</guid>
      <dc:creator>CarolKraemer1</dc:creator>
      <dc:date>2014-04-02T17:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628516#M21002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;On the same field (Double) of a shapefile, I used both the Calculate Geometry (in attribute table) and Calculate Field (in Model Builder) using the !shape.area@acres! to calculate Acres. The goal is to have Acres calculated within a model. My question is, why would I get slightly different results when using the two methods? &lt;BR /&gt;&lt;BR /&gt;Using Field Calculator (in attribute table) and Calculate Field (in Model Builder):&lt;BR /&gt;[ATTACH=CONFIG]32745[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;Using Calculate Geometry (in attribute table):&lt;BR /&gt;[ATTACH=CONFIG]32746[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;I know the difference is small but it's still a difference that makes me wonder which is correct.&lt;BR /&gt;&lt;BR /&gt;I'm using ArcMap version 10.2.0.3348 64-bit on Windows 8, in case that helps. &lt;BR /&gt;&lt;BR /&gt;Thank you in advance for any knowledge you share!&lt;BR /&gt;-Carol&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It could have to do with any number of factors.&amp;nbsp; ArcObjects (Geometry Calculator) and Python (Field Calculator) may handle geometry differently, although I would consider that a better candidate if this was a geodatabase with true curves rather than a shapefile with densified curves.&amp;nbsp; The Spatial Reference may be accessed differently by the two methods.&amp;nbsp; Are you sure your data frame is using the coordinate system of the polygons you are calculating for the Geometry Calculator?&amp;nbsp; You could also try specifying the coordinate system explicitly in the environment setting of the Field Calculator tool to see if that made any difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a black box, so no one but the programmers involved could say for sure how the calculation processes differ and what factors could produce the results you are seeing.&amp;nbsp; Most likely both results are correct according to the method applied.&amp;nbsp; Insufficient information exists to determine which method you would prefer to apply or how to remove the discrepancy in the methods.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 18:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628516#M21002</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-04-02T18:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628517#M21003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It could have to do with any number of factors.&amp;nbsp; ArcObjects (Geometry Calculator) and Python (Field Calculator) may handle geometry differently, although I would consider that a better candidate if this was a geodatabase with true curves rather than a shapefile with densified curves.&amp;nbsp; The Spatial Reference may be accessed differently by the two methods.&amp;nbsp; Are you sure your data frame is using the coordinate system of the polygons you are calculating for the Geometry Calculator?&amp;nbsp; You could also try specifying the coordinate system explicitly in the environment setting of the Field Calculator tool to see if that made any difference.&lt;BR /&gt;&lt;BR /&gt;It is a black box, so no one but the programmers involved could say for sure how the calculation processes differ and what factors could produce the results you are seeing.&amp;nbsp; Most likely both results are correct according to the method applied.&amp;nbsp; Insufficient information exists to determine which method you would prefer to apply or how to remove the discrepancy in the methods.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply, Richard. Yes, I'm certain about the Spatial References both for the files and the dataframe I'm using. It must be the dreaded black box. I've run across this issue before using things like Raster Calculator and ArcSWAT tools (don't judge, it was during my senior year in college &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The differences won't have an impact on my current task at hand but it would be nice to know in case it would in the future, for me or anyone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy GISing!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 19:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628517#M21003</guid>
      <dc:creator>CarolKraemer1</dc:creator>
      <dc:date>2014-04-02T19:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Geometry in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628518#M21004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know if line mid-points&amp;nbsp; (not centroid) can be programmatically calculated outside of the Calculate Geometry tool in the attribute table?&amp;nbsp; I need mid XY values calculated as part of a model builder process.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be great....thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 20:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculate-geometry-in-model-builder/m-p/628518#M21004</guid>
      <dc:creator>TonySalomone</dc:creator>
      <dc:date>2014-06-03T20:28:49Z</dc:date>
    </item>
  </channel>
</rss>

