Calculate Polygon Main Angle (Cartography) (ArcInfo only) |
|
Release 9.2
Last modified July 13, 2007 |
![]() ![]() ![]() Print all topics in : "Tools" |
Calculates the main angles of the input polygon features and assigns the angle values to the specified field in the feature class that contains the polygon features.
Usage tips
You can use the Add Field tool to add a numerical field in the input feature class table to store the calculated values.
The longest side of a polygon is considered as the main axis of the polygon. The angle of the main axis will be the main angle of the polygon.
The stored angles are in decimal degrees.
Command line syntax
An overview of the Command Line window
CalculatePolygonMainAngle_cartography <in_features> <angle_field>
Parameter | Explanation | Data Type |
<in_features> |
The input polygon features. |
Feature Layer |
<angle_field> |
The field that will be updated with the polygon main angle values. |
Field |
CalculatePolygonMainAngle_cartography c:\workspace.mdb\buildings bldg_angle
Scripting syntax
About getting started with writing geoprocessing scripts
CalculatePolygonMainAngle_cartography (in_features, angle_field)
Parameter | Explanation | Data Type |
in_features (Required) |
The input polygon features. |
Feature Layer |
angle_field (Required) |
The field that will be updated with the polygon main angle values. |
Field |
import arcgisscripting gp = arcgisscripting.create() gp.workspace = "c:\Workspace.mdb" gp.toolbox = "cartography" gp.CalculatePolygonMainAngle("buildings", "bldg_angle")