This question already has an answer here:

I've been looking for a way to sum the total areas of each polygon in specific classes using ModelBuilder. Many have suggested the "Summarise Statistics" option which creates a new table, is there any way of doing this by "Calculate Field" in a Total_ha field I've created especially in the original table for this? I have several hundred shape files to do, it would be a pain to have to join them with the Summary table...

marked as duplicate by PolyGeo Jul 24 '18 at 23:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I would use Summary Statistics but this answer to the duplicate looks like it should do what you want. – PolyGeo Jul 24 '18 at 10:38

There is a function comparable to Field Calculator, 'Calculate Geometry' that I think will work here.

To use it in ArcMap you open the attribute table of your layer, then right click the title of your target column, Total_ha in your case and choose Calculate Geometry.

This opens a dialogue where you can choose which stats you want to calculate, such as area or perimeter, you can also choose a unit of measurement.

I don't know exactly how to use this function in Model Builder but for the arcpy implementation you use arcpy.CalculateField_management() and use the shape token. Python example: (Total_ha =) !shape.area@SQUAREMETERS!

See: http://pro.arcgis.com/en/pro-app/tool-reference/data-management/calculate-field.htm

  • Welcome to GIS SE! As a new user be sure to take the Tour to learn about our focussed Q&A format. – PolyGeo Jul 24 '18 at 23:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.