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.

  • PropertyGeometry property to calculate into the target field.

    • AreaAn 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-coordinateAn attribute will be added to store the centroid x-coordinate of each feature.

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

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

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

    • Central point x-coordinateAn 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-coordinateAn 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-coordinateAn 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-valueAn 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 curvesAn attribute will be added to store the number of curves in each feature. Curves include elliptical arcs, circular arcs, and Bezier curves.

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

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

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

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

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

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

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

    • LengthAn 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 bearingAn 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 angleAn 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-coordinateAn attribute will be added to store the x-coordinate of the start point of each line feature.

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

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

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

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

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

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

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

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

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

    • Perimeter lengthAn 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-coordinateAn attribute will be added to store the x-coordinate of each point feature.

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

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

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

    • Point x- and y-coordinate notationAn 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.

  • KilometersThe length unit will be kilometers.

  • MetersThe length unit will be meters.

  • Statute MilesThe length unit will be statute miles.

  • International Nautical MilesThe length unit will be international nautical miles.

  • International YardsThe length unit will be international yards.

  • International FeetThe length unit will be international feet.

  • US Survey MilesThe length unit will be US survey miles.

  • US Survey Nautical MilesThe length unit will be US survey nautical miles.

  • US Survey YardsThe length unit will be US survey yards.

  • US Survey FeetThe length unit will be US survey feet.

String

Area Unit

(Optional)

Specifies the unit that will be used to calculate area.

  • Square KilometersThe area unit will be square kilometers.

  • HectaresThe area unit will be hectares.

  • Square MetersThe area unit will be square meters.

  • Square Statute MilesThe area unit will be square statute miles.

  • Square International Nautical MilesThe area unit will be square international nautical miles.

  • International AcresThe area unit will be international acres.

  • Square International YardsThe area unit will be square international yards.

  • Square International FeetThe area unit will be square international feet.

  • Square US Survey MilesThe area unit will be square US survey miles.

  • Square US Survey Nautical MilesThe area unit will be square US survey nautical miles.

  • US Survey AcresThe area unit will be US survey acres.

  • Square US Survey YardsThe area unit will be square US survey yards.

  • Square US Survey FeetThe 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 inputThe coordinate format will be Decimal Degrees.

  • Decimal DegreesThe 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