HOW TO

Convert a floating type raster to a polygon feature class and retain its decimal values in ArcGIS Pro

Last Published: July 27, 2023

Summary

In ArcGIS Pro, a raster dataset can be vectorized when using the Raster to Polygon tool to generate a polygon feature output. However, the Raster to Polygon tool can only process integer input rasters. Therefore, a floating type raster must be converted to an integer type raster before using the tool.

The workflow provided describes how to convert a floating type raster to a polygon feature class and retain its decimal values in ArcGIS Pro. This is accomplished by first removing the decimal values from the floating type raster and then converting it to an integer type raster. Following this, the integer type raster is converted to a polygon feature class, and the decimal values are restored.

Procedure

Note:
The following workflow requires a Spatial Analyst license. The Int tool mentioned in this article is available in the Image Analyst, Spatial Analyst, and 3D Analyst toolsets.
  1. Start ArcGIS Pro and open the project.
  2. On the ArcGIS Pro ribbon, click Analysis > Tools to open the Geoprocessing pane.

Remove the decimal values of the floating type raster

  1. In the Geoprocessing tool search pane, search for Raster Calculator in the search bar, and click Raster Calculator (Spatial Analyst Tools).
Searching for the Raster Calculator tool in the Geoprocessing tool search pane
Note:
Refer to ArcGIS Pro: Raster Calculator (Spatial Analyst) for more information on the parameters in the Raster Calculator tool.
  1. In the Raster Calculator pane, multiply the raster by 10 to remove the decimal values.
    1. Double-click the raster in the Rasters section.
    2. Double-click the multiplication operator (*) in the Tools section.
    3. Input the required multiple of 10 in the Expression parameter. In this example, 1000 is used because the raster contains floating values with three decimal places.
    4. Specify a name for Output raster and click Run.
The Raster Calculator tool pane with the parameters to be filled

Convert the floating type raster to an integer type raster

  1. In the Geoprocessing tool search pane, search for Int in the search bar, and click Int (Spatial Analyst Tools).
Searching for the Int tool in the Geoprocessing tool search pane
  1. In the Int pane, configure the following parameters:
    1. For Input raster or constant value, select the raster created from the Raster Calculator tool.
    2. Specify a name for Output raster and click Run.
The Int tool pane with the parameters to be filled

Convert the integer type raster to a polygon feature class

  1. In the Geoprocessing tool search pane, search for Raster to Polygon in the search bar, and click Raster to Polygon (Conversion Tools).
Searching for the Raster to Polygon tool in the Geoprocessing tool search pane
Note:
Refer to ArcGIS Pro: Raster to Polygon (Conversion) for more information on the parameters in the Raster to Polygon tool.
  1. In the Raster to Polygon pane, configure the following parameters:
    1. For Input raster, select the raster created from the Int tool.
    2. For Field, select Value.
    3. Specify a name for Output polygon features.
    4. Uncheck the Simplify polygons check box and click Run.
The Raster to Polygon tool pane with the parameters to be filled

Restore the decimal values of the polygon feature class

  1. In the Contents pane, right-click the newly created polygon feature class and click Attribute Table.
  2. Click Add in the attribute table to add a new field in the table.
  3. In the fields view, specify a name for the Field Name field, and select Float for the Data Type field.
  4. Save the modifications to the table.
Creating a new float data type field in the attribute table
  1. In the attribute table, right-click the newly created field and click Calculate Field.
Note:
Refer to ArcGIS Pro: Calculate Field (Data Management) for more information on the parameters in the Calculate Field tool.
  1. In the Calculate Field window, configure the following parameters:
    1. For Input Table, select the polygon feature class.
    2. For Field Name, select the newly created field.
    3. For Expression Type, select Arcade.
    4. Double-click the gridcode field in the Fields section.
    5. Click the division operator (/) in the Helpers section.
    6. Input the required multiple of 10 in the Expression parameter. In this example, 1000 is used because the raster contains floating values with three decimal places.
    7. Click Verify to test the Arcade expression.
    8. Click OK.
The Calculate Field tool window with the parameters to be filled

Article ID: 000028071

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

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

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options