Maptitude GISDK Help

LineStyle()

Summary

Creates a new line style.

 

Syntax

linestyle = LineStyle(array specification)

 

Specification element Type Contents
1 Array Parallel components of the line style, where each component is an array as described below
2 Array Perpendicular components of the line style, where each component is an array as described below
3 NA Cap style; currently ignored
4 NA Join style; currently ignored
5 Array Font icon components of the line style, where each component is an array as described below

 

Parallel components Type Contents
1 Real Width
2 Integer Color index (see the notes)
3 Real Offset from centerline
4, 5, ... Real Dash lengths (alternating on and off, optional)

 

Perpendicular components Type Contents
1 Real Width
2 Integer Color index (see the notes)
3 Real Distance from the start of the line before drawing the component
4 Real Frequency (distance between components)
5 Real X1
6 Real Y1
7 Real X2
8 Real Y2

 

Font icon components Type Contents
1 String Name of the font
2 Double Distance from the start of the line before drawing the component
3 Double Frequency (distance between components)
4 Double Offset from centerline
5 Double Rotation angle
6, ... Array One array for each glyph of the form {integer index, integer color}, containing the index of the icon in the font and the color index (see the notes)

 

Returns

A line style.

 

Notes

Examples

traintracks = LineStyle({{{1, -1, 0}}, {{1, -1, 18, 18, 0, -9, 0, 9}}})

 

donkeys = LineStyle({,,,, {{"Caliper Miscellaneous", 0, 1.4, 0, 0, {{105, -1}} }}})

 

Error Codes

Error Type Meaning
Error The specification is invalid

 

See Also

Function Summary
SetLineStyle() Sets the line style used to draw line features
GetLineStyle() Gets the style used to draw line features
GetLineStyleDefinition() Returns an array defining the line style
FillStyle() Creates a new fill style

 

 

©2025 Caliper Corporation www.caliper.com