Calculate Geometry Attributes (Data Management Tools)
Summary
Adds information to a feature's attribute fields representing the spatial or geometric characteristics and location of each feature, such as length or area and x-, y-, z-coordinates, and m-values.
Usage
Caution:
This tool modifies the input data. See Tools that modify or update the input data for more information and strategies to avoid undesired data changes.
Length and area calculations will be in the units of the input features' coordinate system unless different units are selected in the Length Unit and Area Unit parameters. If the Coordinate System parameter is specified, the length and area calculations will be in the units of that coordinate system unless different units are specified in the Length Unit and Area Unit parameters.
Learn more about length and area units in geoprocessing tools
Length and area calculations are not supported when the input features have a geographic coordinate system or a projected coordinate system based on Web Mercator. Length and area calculations are not accurate or valid in these coordinate systems. Choose the geodesic length or geodesic area property for best results.
The geodesic length and area properties use a shape-preserving algorithm. This produces highly accurate results that are not biased by an assumption that the input line or polygon features are constructed with geodesic arcs between the vertices, which is the assumption regarding traditional geodesic length and area.
If the input features have a selection, only the selected features will have values calculated; all other features will maintain their existing value.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Features |
The features with a field that will be updated with geometry calculations. |
Feature Layer |
|
Geometry Attributes |
The fields in which the specified geometry properties will be calculated. You can select an existing field or provide a new field name. If a new field name is provided, the field type is determined by the type of values that are written to the field. Count attributes are written to long integer fields; area, length, and x-, y-, z-coordinate, and m-value attributes are written to double fields; and coordinate notations such as Degrees Minutes Seconds or MGRS are written to text fields. Unless otherwise noted, area and length properties are planar measurements using 2D Cartesian mathematics. Value table columns:
|
Value Table |
|
Length Unit (Optional) |
Specifies the unit that will be used to calculate length.
|
String |
|
Area Unit (Optional) |
Specifies the unit that will be used to calculate area.
|
String |
|
Coordinate System (Optional) |
The coordinate system in which the coordinates, length, and area will be calculated. The coordinate system of the input features is used by default. |
Coordinate System |
|
Coordinate Format (Optional) |
Specifies the coordinate format in which the x- and y-coordinates will be calculated. The coordinate format matching the input features' spatial reference units is used by default. Several coordinate formats, including Degrees Minutes Seconds, Degrees Decimal Minutes, and others, require the calculation to be performed in a text field.
|
String |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Updated Features |
The updated input features. |
Feature Layer |
Environments
Output Coordinate System, Geographic Transformations, Current Workspace
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes