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 image below shows the attribute table of the output feature class.
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
- Open the project in ArcGIS Pro.
- On the Analysis tab, in the Geoprocessing group, click the Tools button.
- In the Geoprocessing pane, search for and click Feature To Point (Data Management Tools).
- In the Feature To Point pane, specify the parameters as follows:
- For Input Features, select the polyline layer from the drop-down list.
- For Output Feature Class, specify a location and name to export the feature class.
- Click Run.
- If necessary, in the Feature To Point pane, click the Back button to return to the search field.
- In the Geoprocessing pane, search for and click Feature To Polygon (Data Management Tools).
- In the Feature To Polygon pane, specify the parameters as follows:
- For Input Features, select the polyline layer from the drop-down list.
- For Output Feature Class, specify a location and name to export the feature class.
- For Label Features, select the point layer from the drop-down list.
- Click Run.
Use the Spatial Join tool to join attributes from the polyline to the polygon feature class
- Open the project in ArcGIS Pro.
- On the Analysis tab, in the Geoprocessing group, click the Tools button.
- In the Geoprocessing pane, search for and click Spatial Join (Analysis Tool).
- In the Spatial Join pane, specify the parameters as follows:
- For Target Features, select the polygon layer from the drop-down list.
- For Join Features, select the polyline feature layer.
- For Output Feature Class, specify a location and name to export the feature class.
- For Join Operation, select Join one to one from the drop-down list.
- For Match Option, select Share a line segment with from the drop-down list.
- Click Run.
Use the Transfer Attribute tool to copy field values from the polyline to the polygon feature class
- Open the project in ArcGIS Pro.
- In the Contents pane, right-click the polygon layer and click Attribute Table.
- 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.
- 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.