Polygons to segments

Command line

The Polygons to segments operation can be directly executed by typing one of the following expressions on the command line of the Main Window:

  

OUTMAP

=

SegmentMapPolBoundaries(InputPolygonMap, "*", single)

OUTMAP

=

SegmentMapPolBoundaries(InputPolygonMap, "mask", single)

OUTMAP

=

SegmentMapPolBoundaries(InputPolygonMap, "*", unique)

OUTMAP

=

SegmentMapPolBoundaries(InputPolygonMap, "mask", unique)

where:

OUTMAP

is the name of your output segment map.

SegmentMapPolBoundaries

is the command to start the Polygons to segments operation.

InputPolygonMap

is the name of your input polygon map.

"mask"

are the (multiple) search strings to extract segments of specific polygons; on the command line, the total mask needs to be surrounded by double quotes.

single

is the parameter to assign the name 'Boundary' to all output segments.

unique

is the parameter assign unique names like 'Boundary 1', 'Boundary 2', etc. to the output segments; the attribute table which is created for the output map will then store the names of the polygons 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.

When the Single parameter is used, the name for the output segments is stored by the output map (internal domain).

When the Unique parameter is used, a UniqueID domain will be used for the names for the output segments (internal domain).

See also: