ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Calculate Geodesic Angle

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Calculates geodesic angles for the input features according to the defined coordinate system, and assigns the angle values to the specified field in the feature class that contains the input features.

Legacy:

This tool has been deprecated and replaced by the Calculate_Grid_Convergence_Angle tool.

Usage

  • Angles are calculated according to the coordinate system of the active data frame of the current map document or the Coordinate System geoprocessing environment variable, if it is set. This environment setting must be set to execute the tool from ArcCatalog.

  • The input features can be points, lines, or polygons. For a point feature, the point location will be used to calculate the geodesic angle. For a line or polygon feature, the center point (centroid) of geometry will be used to calculate the geodesic angle.

  • A field must be present in the input feature attribute table to store the calculated angles. The stored angles are in decimal degrees.

Syntax

CalculateGeodesicAngle_cartography (in_features, angle_field)
ParameterExplanationData Type
in_features

The input features for which geodesic angles will be computed.

Feature Layer
angle_field

The field that will be updated with the geodesic angle values in decimal degrees.

Field

Code Sample

CalculateGeodesicAngle tool Example (Python Window)

The following Python window script demonstrates how to use the CalculateGeodesicAngle tool in immediate mode.

import arcpy
from arcpy import env
env.workspace = "C:\data"

arcpy.CalculateGeodesicAngle_cartography("cities", "city_angle")
CalculateGeodesicAngle tool Example (Stand-alone Python script)

This stand-alone script shows an example of using the CalculateGeodesicAngle tool.

# Name: CalculateGeodeisAngle_standalone_script.py
# Description: calculates a geodesic angle for a polygon
# Author: ESRI
 
# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
in_features = "cities"
angle_field = "city_angle"

# Execute Calculate Geodesic Angle
arcpy.CalculateGeodesicAngle_cartography(in_features, angle_field)

Environments

  • Cartographic Coordinate System
  • Reference Scale

Licensing Information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: No
  • ArcGIS for Desktop Advanced: Yes
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal