Calculate Geometry Fields Attribute Rule (Data Management Tools)
Summary
Generates an attribute rule that calculates a feature's geometry information and writes it to a given field. Geometry attributes represent the spatial or geometric characteristics and location of each feature, such as length or area and x-, y-, z-coordinates, and m-values.
Usage
Length and area calculations will be in the units of the input features' 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
The optional coordinate format parameter requires spatial reference of the input tables to be a geographic coordinate system.
Tool will fail to run if the input class is being edited.
Rules created with this tool are configured to trigger only on edits to the
SHAPEfield and fields set as a target for geometry calculations.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Table |
The table or feature class that will have the new rule applied. |
Feature Layer; Annotation Layer; Dimension Layer; Oriented Imagery Layer; Catalog Layer |
|
Output Folder |
The folder where the output will be saved. |
Folder |
|
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 |
|
Expression (Optional) |
An SQL expression that will be used to limit the features from the input that will participate in the attribute rule. |
SQL Expression |
|
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 Format (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.
|
String |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Output Rule CSV |
The |
File |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes