PROBLEM

Creating polygons from a polyline feature layer does not preserve the original fields

Last Published: June 9, 2023

Description

In ArcGIS Pro, polygons can be created from areas enclosed by the input polyline features using the Feature To Polygon tool. However, the original fields from the polyline feature layer are not preserved in the output feature class when the Preserve attributes parameter box is checked.

The following image shows the attribute table of the polyline feature layer.

The polyline attribute table

The image below shows the attribute table of the output feature class.

The polygon attribute table

Cause

The Preserve attributes parameter is no longer supported and does not work when using the Feature to Polygon tool. It remains for backward compatibility of scripts and models.

Solution or Workaround

Depending on the suitability, the following workarounds to preserve fields when using the Feature to Polygon tool in ArcGIS Pro are applicable.

Create points from the polyline features to use in the Label Features parameter

  1. Open the project in ArcGIS Pro.
  2. On the Analysis tab, in the Geoprocessing group, click the Tools button.
  3. In the Geoprocessing pane, search for and click Feature To Point (Data Management Tools).
  4. In the Feature To Point pane, specify the parameters as follows:
    1. For Input Features, select the polyline layer from the drop-down list.
    2. For Output Feature Class, specify a location and name to export the feature class.
    3. Click Run.
The Feature To Point pane
  1. If necessary, in the Feature To Point pane, click the Back button The Back button to return to the search field.
  2. In the Geoprocessing pane, search for and click Feature To Polygon (Data Management Tools).
  3. In the Feature To Polygon pane, specify the parameters as follows:
    1. For Input Features, select the polyline layer from the drop-down list.
    2. For Output Feature Class, specify a location and name to export the feature class.
    3. For Label Features, select the point layer from the drop-down list.
    4. Click Run.
The Feature To Polygon pane

Use the Spatial Join tool to join attributes from the polyline to the polygon feature class

  1. Open the project in ArcGIS Pro.
  2. On the Analysis tab, in the Geoprocessing group, click the Tools button.
  3. In the Geoprocessing pane, search for and click Spatial Join (Analysis Tool).
  4. In the Spatial Join pane, specify the parameters as follows:
    1. For Target Features, select the polygon layer from the drop-down list.
    2. For Join Features, select the polyline feature layer.
    3. For Output Feature Class, specify a location and name to export the feature class.
    4. For Join Operation, select Join one to one from the drop-down list.
    5. For Match Option, select Share a line segment with from the drop-down list.
    6. Click Run.
The Spatial Join pane

Use the Transfer Attribute tool to copy field values from the polyline to the polygon feature class

  1. Open the project in ArcGIS Pro.
  2. In the Contents pane, right-click the polygon layer and click Attribute Table.
  3. Add a new field with a name corresponding to the field to be copied. Refer to ArcGIS Pro: Create a field and apply a domain and default value for instructions and more information.
  4. Copy the polyline field values to the polygon feature class using the Transfer Attribute tool. Refer to ArcGIS Pro: Transfer attributes between features for instructions and more information.

Article ID:000030478

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

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic