html Forest-GIS » Calculate Geometry: Calculate polygon area, coordinates, perimeter and more.

Forest-GIS » Calculate Geometry: Calculate polygon area, coordinates, perimeter and more.

Common problem: Area calculation disabled

Before we start, let's talk about a problem that many people think they have because they don't know how the software and/or area calculation works.

For U.S. GIS and forestry professionals: this article is localized from Brazilian Portuguese and expanded with practical U.S.-relevant guidance. When legal or technical terms are Brazil-specific, a brief note explains the U.S. equivalent.

You open the attribute table and calculate the area and are faced with the calculate geometry window below:

image

Area calculation disabled. This happens because in ArcMap, you can only calculate the area if either your layer (Shapefile or other) is in a projected coordinate system (PCS) like UTM for example, or if your data frame is also in PCS.

In the case above we see on the screen that both the layer and the data frame are in GCS (geographical coordinates), therefore the area calculation will be disabled.

To enable, simply run the PROJECT tool to reproject your layer to a PCS system such as UTM. Or, put your data frame in PCS (properties>Coordinate system) and go back to recalculate. In ArcGIS PRO this does not happen.

Having explained this, let's move on.

Calculate Geometry in ArcGIS

Many certainly use and love the Geometry Calculator functions in ArcGIS. Many still don't know it and many others only use it to calculate area, unaware of its other functions.

cgeometry
If you are working with a table of attributes of a layer (Shapefile, feature class ingeodb, etc), you can easily calculate area in various available units (ha, acres, square meters, square kilometers, etc.), but what many are unaware of or don't use are the other available functions.
They are:
 
The most interesting thing, however, is perhaps the possibility of calculating in several units directly.
For example, you can calculate coordinates in the following formats: cm, feet, inches, km, meters, miles, millimeters, nautical miles, yards, decimal degrees and GMS of various formats with negative and positive or withN or Ein front, etc.
 
You can use the coordinate system of your shapefile or feature class, or the coordinate system of the data frame to perform calculations. Additionally, if one or more records are currently selected, only these selected records are calculated.
The following table shows the geometric properties you can calculate for different types of shp or feature classes:
 
Area
Perimeter
Length
X centroid
Y centroid
X point
Y point
Polygon
x
x
 
X
X
 
 
Polyline
 
 
x
X
X
 
 
Annotation
 
 
 
x
x
 
 
Point
 
 
 
 
 
x
x
Source: ArcGIS web help adapted
Try using these tools to make your daily life easier. After using it, share your experience in the comments below. We will be happy to hear your impressions.

In practice

For those who have never performed geometry calculations in ArcGIS, first add your shapefile or layer and then right-click on it and choose show attribute table. Now right click on the title of the field that will contain the data to be calculated or add a new field.
By right clicking, choose Calculate Geometry and that's it, there will be all the calculation options mentioned above. Just select and click OK to calculate for all fields. If you select only some rows from the table, the calculations will be done only for the selection.
neartb
Attribute Table

The Shape_Area, Shape_Length fields

image 1

In geodatabases, these fields are generated automatically and the values ​​are also maintained automatically and dynamically. The units are always in ‘map units’. Map units are based on the coordinate system used. So, to find out the map units, right-click on the layer and choose ‘Properties’, then look at the ‘Source’ tab. Scroll down to see the coordinate system information and among them look for the ‘Linear Unit’ item.

If the Linear Unit were meters (as usual for UTM coordinate systems), for example, the area would be in square meters.

image 2

If you want to get rounded versions of the values ​​or get the values ​​in some specific units, you would have to create a new field (type DOUBLE) and then calculate the values. You can use the ‘Field Calculator’ to obtain the values, but even better is the ‘Calculate geometry’ option:

Right-click on a field header (of type DOUBLE) in the attribute table and select “Calculate Geometry”. In the dialog box that appears, you can choose which units you want to use (e.g. hectares, kilometers, etc). See the beginning of this post.

Please note that if you use the Field Calculator or the Calculate Geometry option to obtain these values, they will NOT be automatically maintained by the system, unlike existing geodatabase fields. Therefore, if features are edited, you will need to rerun your calculations to get updated values.

The SHAPE_Length/SHAPE_Area fields may be unreliable if they are in Shapefile or non-geodatabase formats, or if they are not the versions of these fields being produced by ArcGIS for the geodatabase, as they were likely exported/copied, and the values ​​may no longer be correct if the underlying shapes change.

Related
Take advantage and see how to convert GMS coordinates to decimal degrees,Click here
 
See also
Did you like it? Share