Raster to segments

Command line

The Raster to segments operation can be directly executed by typing the following expression on the command line of the Main window:

  

OUTMAP

=

SegmentMapFromRasAreaBnd(InputRasterMapName, 8|4, smooth|nosmooth, single|unique)

where:

OUTMAP

is the name of your output segment map.

SegmentMapFromRasAreaBnd

is the command to start the Raster to segments operation.

InputRasterMapName

is the name of your input raster map (any domain).

8|4

is the parameter to indicate whether to construct 8-connected 4-connected areas (either 8 or 4) from which segments should be extracted.

smooth|nosmooth

is the parameter to indicate whether the output segments should be smoothed or not.

single|unique

is the parameter to indicate whether the output segments should obtain one name Boundaries, or unique names like Boundary 1, Boundary 2, etc.

When the unique parameter is used, an attribute table will be created for the output map; the table will store the names of the mapping units to the right and to the left of the extracted segments and the length of the extracted segments.

When the definition symbol = is used, a dependent output map is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map has been calculated.

Furthermore, the codes for the output segments will be stored by the output segment map:

See also: