HOW TO

Calculate the longest side of a polygon feature in ArcGIS Pro

Last Published: September 5, 2023

Summary

In some instances, it may be necessary to calculate the longest side of a polygon feature, for example, to measure distance for navigation and to construct buildings for architecture.

In this article, the longest side of each polygon feature in a polygon layer is calculated in ArcGIS Pro.

Polygon features in ArcGIS Pro

Procedure

Note: 
The Polygon To Line and Split Line At Vertices tools requires an ArcGIS Desktop Advanced license.
  1. Open the polygon feature layer in ArcGIS Pro.
  2. Convert the polygon features to line features using the Polygon To Line tool.
    1. On the Analysis tab, click Tools to open the Geoprocessing pane.
    2. In the Geoprocessing pane, search for and click the Polygon To Line tool.
    3. In the Polygon To Line pane, on the Parameters tab, select the polygon feature layer from the Input Features drop-down list. In this example, 'Polygon1' is selected.
    4. Specify a name for Output Feature Class.
    5. Uncheck the Identify and store polygon neighboring information check box.
    6. Click Run.
The Polygon To Line tool to be configured
  1. Split the polygon lines using the Split Line At Vertices tool.
    1. On the Analysis tab, click Tools to open the Geoprocessing pane.
    2. In the Geoprocessing pane, search for and click the Split Line At Vertices tool.
    3. In the Split Line At Vertices pane, on the Parameters tab, select the line feature layer created in Step 2 from the Input Features drop-down list. In this example, 'Polygon1_PolygonToLine' is selected.
    4. Specify a name for Output Feature Class.
    5. Click Run.
The Split Line At Vertices tool to be configured
  1. Determine the longest side of the polygon features using the Summary Statistics tool.
    1. On the Analysis tab, click Tools to open the Geoprocessing pane.
    2. In the Geoprocessing pane, search for and click the Summary Statistics tool.
    3. In the Summary Statistics pane, on the Parameters tab, select the line feature layer created in Step 3 from the Input Table drop-down list. In this example, 'Polygon1_PolygonTo_SplitLine' is selected.
    4. Specify a name for Output Table.
    5. For Statistics Fields, check or select Shape_Length for Field and select Maximum for Statistic Type.
    6. For Case Field, check or select ORIG_FID.
    7. Click Run.
 The Summary Statistics tool to be configured

A standalone table is generated displaying the longest side of the polygon features in meters as shown in the image below.

The longest side of the polygon is determined in a standalone table

Article ID: 000026673

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 9x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options