HOW TO

Create contour lines from an ASCII file in ArcGIS Pro

Last Published: April 25, 2020

Summary

An ASCII (.asc) formatted text file representing raster data consists of header information, such as the number of columns and rows, coordinates of the lower left corner of the lower left cell, cell size of the raster, etc., describing the values of each cell in the file.

It is not possible to open an ASCII file directly in ArcGIS Pro. The file must first be converted to a raster dataset, and the Contour tool must be used to create contour lines.

Procedure

The instructions provided describe how to create contour lines from the ASCII file in ArcGIS Pro.

  1. Use the ASCII to Raster tool to convert the ASCII file to raster.
    1. In ArcGIS Pro, open a new blank project.
    2. In the Analysis tab, click the Tools icon in the Geoprocessing group to activate the Geoprocessing pane.
    3. Navigate to Toolboxes > Conversion Tools > To Raster > ASCII to Raster.
    4. In the Parameters section, browse the ASCII file as the Input ASCII raster file.
    5. Set a name and location for the Output raster.
    6. Select Integer or Float as the Output data type.
Note:
Integer only stores integral values, that is, whole numbers. Float stores floating-point values, that is, values that have potential decimal places.
ASCII to Raster tool
  1. Click Run to execute the tool. A raster dataset is created.
A raster dataset is created
  1. Use the Contour tool to create contour lines from the raster dataset created in Step 1.
    1. In the same Toolboxes, navigate to Spatial Analyst Tools > Surface > Contour.
    2. In the Parameters section, browse the raster dataset created in Step 1 as the Input raster.
    3. Set a name and location for the Output polyline features.
    4. Set the Contour interval parameter with any positive number for the interval between the contour lines.
Contour tool
  1. Click Run to execute the tool. The contour lines with the specified interval are displayed in the map.
The contour lines with the specified interval are displayed in the map

Article ID: 000017733

Software:
  • ArcGIS Pro

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