Summary
A digital elevation model (DEM) is a raster representation of a continuous surface in which each cell represents the elevation at a location. Raster data, such as DEMs, can be converted to vector datasets to increase analytical capabilities. The line features obtained from the raster data can be used to measure the length, for example, of a road centerline or hydrology.
The instructions provided describe how to convert the flow accumulation lines from a DEM file to a polyline shapefile in ArcMap.
Procedure
Note:
This workflow requires the Spatial Analyst extension license.
- Run the Fill tool.
- In the Catalog window, navigate to Toolboxes > System Toolboxes > Spatial Analyst Tools > Hydrology > Fill.
- Select the DEM data as the input by clicking the drop-down arrow.
- Specify the location of the Output flow direction raster.
- Click OK.
Note:
The Fill tool fills sinks in a surface raster to remove small imperfections in the DEM data.
- Run the Flow Direction tool.
- Navigate to Spatial Analyst Tools > Hydrology > Flow Direction.
- Use the output from Step 1 as the 'Input surface raster'.
- Specify the location of the Output flow direction raster.
- Click OK. The direction of the flow out of each cell is shown as a raster in the map.
Note:
The Flow Direction tool creates a raster of flow direction from each cell to the steepest downslope neighbor.
- Run the Flow Accumulation tool.
- Navigate to Spatial Analyst Tools > Hydrology > Flow Accumulation.
- Use the output from Step 2 as the 'Input flow direction raster'.
- Specify the location of the Output accumulation raster.
- Click OK. The flow accumulation lines are displayed in the map.
- Change the color of the accumulation lines to red.
- Right-click the layer of the output in the Table Of Contents > Properties > Symbology tab.
- Select Classified from the list on the left pane of the Layer Properties window.
- Double-click the range to change the color of the flow accumulation lines to red.
Note:
Observe the lowest value in the ranges representing the flow accumulation lines. In this example, the value is 19,668.
- Click OK. The flow accumulation lines are red.
- Run the Raster Calculator tool.
- Navigate to Spatial Analyst Tools > Map Algebra > Raster Calculator.
- Write the following expression in the text box.
Code:
OutRas = Raster("FlowAcc") > 19668
Note:
In this example, the output from Step 3 is FlowAcc and the lowest value in the ranges is 19,668.
- Click OK. This returns 1 for cells with a value greater than 19,668.
- Run the Raster To Polyline tool.
- Navigate to Conversion Tools > From Raster > Raster to Polyline.
- Use the output from Step 4 as the input, and save the output as a shapefile.
- Click OK. The flow accumulation lines are converted to a polyline shapefile.