Skip to main content

Thin (Spatial Analyst Tools)

Summary

Thins rasterized linear features by reducing the number of cells representing the width of the features.

Usage

  • A typical application for the Thin tool is for processing a scanned elevation contour map. Because of the resolution of the scanner and the width of the lines on the original map, the contours are represented in the resulting raster as linear elements from five to ten cells wide. After running Thin, each contour will be represented as a linear feature of a single cell width.

  • If enabled, the filter option uses the same filtering algorithm as the Boundary Clean tool to remove short linear features extending from the major branch. It can also remove features narrower than three cells.

  • Specifying the maximum thickness of input linear features is essential for thinning rasters where the thickness of linear features may exceed or stay below the default maximum thickness value. The best results can be expected when the maximum thickness fits the thickest linear features to be thinned.

  • See Analysis environments and Spatial Analyst for additional details on the geoprocessing environments that apply to this tool.

  • Reference:

    Zhan, Cixiang, 1993, A Hybrid Line Thinning Approach, Proceedings Auto-Carto 11, Minneapolis , pp. 396-405

Parameters

Label Explanation Data type

Input raster

The input raster to be thinned.

It must be of integer type.

Raster Layer

Background value

(Optional)

Specifies the cell value that will identify the background cells. The linear features are formed from the foreground cells.

  • ZeroThe background is composed of cells of 0 or less, or NoData. All cells whose value is greater than 0 are the foreground. This is the default.

  • NoDataThe background is composed of NoData cells. All cells with valid values belong to the foreground.

String

Filter input first

(Optional)

Specifies whether a filter will be applied as the first phase of thinning.

  • CheckedThe raster will be filtered to smooth the boundaries between foreground and background cells. This option will eliminate minor irregularities from the output raster.

  • UncheckedNo filter will be applied. This is the default.

Boolean

Shape for corners

(Optional)

Specifies whether round or sharp turns will be made at turns or junctions.

It is also used during the vector conversion process to spline curves or create sharp intersections and corners.

  • RoundAttempts to smooth corners and junctions. This is best for vectorizing natural features, such as contours or streams. This is the default.

  • SharpAttempts to preserve rectangular corners and junctions. This is best for vectorizing man-made features such as streets.

String

Maximum thickness of input linear features

(Optional)

The maximum thickness, in map units, of linear features in the input raster.

The default thickness is ten times the cell size.

Double

Return value

Label Explanation Data type

Output raster

The output thinned raster.

The output is always of integer type.

Raster

Environments

Auto Commit, Cell Size, Cell Size Projection Method, Compression, Current Workspace, Extent, Geographic Transformations, Mask, Output CONFIG Keyword, Output Coordinate System, Scratch Workspace, Snap Raster, Tile Size

Licensing information

  • Basic: Requires Spatial Analyst
  • Standard: Requires Spatial Analyst
  • Advanced: Requires Spatial Analyst