Skip to main content

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 SHAPE field 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:

  • Field (Existing or New)—Field in which to calculate a geometry property.

  • Property—Geometry property to calculate into the target field.

    • Area—An attribute will be added to store the area of each polygon feature.

    • Area (geodesic)—An attribute will be added to store the shape-preserving geodesic area of each polygon feature.

    • Centroid x-coordinate—An attribute will be added to store the centroid x-coordinate of each feature.

    • Centroid y-coordinate—An attribute will be added to store the centroid y-coordinate of each feature.

    • Centroid z-coordinate—An attribute will be added to store the centroid z-coordinate of each feature.

    • Centroid m-value—An attribute will be added to store the centroid m-value of each feature.

    • Central point x-coordinate—An attribute will be added to store the x-coordinate of a central point inside or on each feature. This point is the same as the centroid if the centroid is inside the feature; otherwise, it is an inner label point.

    • Central point y-coordinate—An attribute will be added to store the y-coordinate of a central point inside or on each feature. This point is the same as the centroid if the centroid is inside the feature; otherwise, it is an inner label point.

    • Central point z-coordinate—An attribute will be added to store the z-coordinate of a central point inside or on each feature. This point is the same as the centroid if the centroid is inside the feature; otherwise, it is an inner label point.

    • Central point m-value—An attribute will be added to store the m-value of a central point inside or on each feature. This point is the same as the centroid if the centroid is inside the feature; otherwise, it is an inner label point.

    • Number of curves—An attribute will be added to store the number of curves in each feature. Curves include elliptical arcs, circular arcs, and Bezier curves.

    • Number of holes—An attribute will be added to store the number of interior holes within each polygon feature.

    • Minimum x-coordinate—An attribute will be added to store the minimum x-coordinate of each feature's extent.

    • Minimum y-coordinate—An attribute will be added to store the minimum y-coordinate of each feature's extent.

    • Minimum z-coordinate—An attribute will be added to store the minimum z-coordinate of each feature's extent.

    • Maximum x-coordinate—An attribute will be added to store the maximum x-coordinate of each feature's extent.

    • Maximum y-coordinate—An attribute will be added to store the maximum y-coordinate of each feature's extent.

    • Maximum z-coordinate—An attribute will be added to store the maximum z-coordinate of each feature's extent.

    • Length—An attribute will be added to store the length of each line feature.

    • Length (geodesic)—An attribute will be added to store the shape-preserving geodesic length of each line feature.

    • Length (3D)—An attribute will be added to store the 3D length of each line feature.

    • Line bearing—An attribute will be added to store the start-to-end bearing of each line feature. Values range from 0 to 360, with 0 meaning north, 90 east, 180 south, 270 west, and so on.

    • Line angle—An attribute will be added to store the start-to-end arithmetic angle of each line feature. Values range from 0 to 360, with 0 meaning north, 90 east, 180 south, 270 west, and so on.

    • Line start x-coordinate—An attribute will be added to store the x-coordinate of the start point of each line feature.

    • Line start y-coordinate—An attribute will be added to store the y-coordinate of the start point of each line feature.

    • Line start z-coordinate—An attribute will be added to store the z-coordinate of the start point of each line feature.

    • Line start m-value—An attribute will be added to store the m-value of the start point of each line feature.

    • Line end x-coordinate—An attribute will be added to store the x-coordinate of the end point of each line feature.

    • Line end y-coordinate—An attribute will be added to store the y-coordinate of the end point of each line feature.

    • Line end z-coordinate—An attribute will be added to store the z-coordinate of the end point of each line feature.

    • Line end m-value—An attribute will be added to store the m-value of the end point of each line feature.

    • Number of parts—An attribute will be added to store the number of parts comprising each feature.

    • Number of vertices—An attribute will be added to store the number of points or vertices comprising each feature.

    • Perimeter length—An attribute will be added to store the length of the perimeter or border of each polygon feature.

    • Perimeter length (geodesic)—An attribute will be added to store the shape-preserving geodesic length of the perimeter or border of each polygon feature.

    • Point x-coordinate—An attribute will be added to store the x-coordinate of each point feature.

    • Point y-coordinate—An attribute will be added to store the y-coordinate of each point feature.

    • Point z-coordinate—An attribute will be added to store the z-coordinate of each point feature.

    • Point m-value—An attribute will be added to store the m-value of each point feature.

    • Point x- and y-coordinate notation—An attribute will be added to store the x- and y-coordinate of each point feature formatted as a specified coordinate notation.

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.

  • Kilometers—The length unit will be kilometers.

  • Meters—The length unit will be meters.

  • Statute Miles—The length unit will be statute miles.

  • International Nautical Miles—The length unit will be international nautical miles.

  • International Yards—The length unit will be international yards.

  • International Feet—The length unit will be international feet.

  • US Survey Miles—The length unit will be US survey miles.

  • US Survey Nautical Miles—The length unit will be US survey nautical miles.

  • US Survey Yards—The length unit will be US survey yards.

  • US Survey Feet—The length unit will be US survey feet.

String

Area Unit

(Optional)

Specifies the unit that will be used to calculate area.

  • Square Kilometers—The area unit will be square kilometers.

  • Hectares—The area unit will be hectares.

  • Square Meters—The area unit will be square meters.

  • Square Statute Miles—The area unit will be square statute miles.

  • Square International Nautical Miles—The area unit will be square international nautical miles.

  • International Acres—The area unit will be international acres.

  • Square International Yards—The area unit will be square international yards.

  • Square International Feet—The area unit will be square international feet.

  • Square US Survey Miles—The area unit will be square US survey miles.

  • Square US Survey Nautical Miles—The area unit will be square US survey nautical miles.

  • US Survey Acres—The area unit will be US survey acres.

  • Square US Survey Yards—The area unit will be square US survey yards.

  • Square US Survey Feet—The area unit will be square US survey feet.

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.

  • Same as input—The coordinate format will be Decimal Degrees.

  • Decimal Degrees—The coordinate format will be Degrees Minutes Seconds with cardinal direction component at the end (DDD° MM' SSS.ss" <N|S|E|W>).

  • Degrees Minutes Seconds (DDD° MM' SSS.ss" <N|S|E|W>)—The coordinate format will be Degrees Minutes Seconds with cardinal direction component at the beginning (<N|S|E|W> DDD° MM' SSS.ss").

  • Degrees Minutes Seconds (<N|S|E|W> DDD° MM' SSS.ss")—The coordinate format will be Degrees Minutes Seconds with positive or negative direction component at the beginning (<+|-> DDD° MM' SSS.ss").

  • Degrees Minutes Seconds (<+|-> DDD° MM' SSS.ss")—The coordinate format will be Degrees Minutes Seconds packed into a single value with positive or negative direction component at the beginning (<+|-> DDD.MMSSSss).

  • Degrees Minutes Seconds (<+|-> DDD.MMSSSss)—The coordinate format will be Degrees Decimal Minutes with cardinal direction component at the end (DDD° MM.mmm' <N|S|E|W>).

  • Degrees Decimal Minutes (DDD° MM.mmm' <N|S|E|W>)—The coordinate format will be Degrees Decimal Minutes with cardinal direction component at the beginning (<N|S|E|W> DDD° MM.mmm').

  • Degrees Decimal Minutes (<N|S|E|W> DDD° MM.mmm')—The coordinate format will be Degrees Decimal Minutes with positive or negative direction component at the beginning (<+|-> DDD° MM.mmm').

  • Degrees Decimal Minutes (<+|-> DDD° MM.mmm')—The coordinate format will be Global Area Reference System. The Global Area Reference System is based on latitude and longitude, dividing and subdividing the world into cells.

String

Derived output

Label Explanation Data type

Output Rule CSV

The .csv file that will have the attribute rule.

File

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes