Documentation | Other Specifications | Extended line symbology
Extended line symbology is simple script language defined to construct advanced lines such as arrow lines, parallel lines, precise dashed lines, serrated lines etc.
Full | Short | Description | Example | Short example |
---|---|---|---|---|
; | Comment out whole line. | ;This is a comment | ||
GOTO(x) | G | Move drawing position along the shape to an arbitrary position. | GOTO(10%) | G(10%) |
MOVE(dx,dy) | M | Move drawing along the line by delta. | MOVE(10,-10) | M(10,-10) |
DRAW(x1,y1,x2,y2,..,xn,yn) | D | Draw a vector segment | DRAW(5,5 5 -5) | D(+5+5+5-5) |
OUTLINE(x1,y1,x2,y2,..,xn,yn) | O | Draw a line symbol with the rotation point at the place of the current “drawing position”. The whole symbol will be rotated with the same parameters. | OUTLINE(5,5 -10,0 0,-10 10,0 0,-10) | O(+5+5-10+0+0-10+10+0+0-10) |
FILL(x1,y1,x2,y2,..,xn,yn) | I | Draw a filled symbol with the rotation point at the place of the current “drawing position”. The whole symbol will be rotated with the same parameters. | FILL(5,5 -10,0 0,-10 10,0 0,-10) | I(+5+5-10+0+0-10+10+0+0-10) |
LINE(x) | L | Draw a parallel line on current “drawing position at an offset”, introduced in DK11. | LINE(100%) | L(100%) |
FOR(x) | F | Start of the loop. Parameters for the distance the loop will be repeated. Default is 100% of the length. A negative value means the calculation starts from the end of the line. For example, FOR(-45%) means repeat though 45% of the length of the entire line, starting from the end of the line. | FOR(50%) | F(50%) |
END() | E | End of the loop | END() | E() |
WIDTH(x) | W | Change line width | WIDTH(10W) | W(10W) |
COLOR(r, g, b) | C | Change drawing color | COLOR(255,0,0) | C(255,0,0) |
COLOR(mode) | C | Change drawing color to: 0 (line/area color) or 1 (outline color) | COLOR(0) | C(1) |
Symbol | Description | Example |
---|---|---|
None | Device independent pixel - 1 pixel in 96dpi; default, same as X | GOTO(1) |
X | Device independent pixel - 1 pixel in 96dpi | GOTO(1X) |
P | Screen pixel | GOTO(1P) |
T | Twip (1/1440 of inch) | GOTO(700T) |
W | 1/10 of line width (as set for Line.Width), e.g., 15W means 1.5 of line width | GOTO(15W) |
S | 1/10 of scaled device independent pixel (similar to 'X'); scale means that wider lines will be scaled proportionally: 10S for thin lines means the same as 1X, but for wider lines it will be represented by smaller value for better appearance. | GOTO(10S) |
Line.Symbol = &F()DRAW(5 5 5 -5)MOVE(5 0)E()
FILL(0 0 20 5 0 -10) M(45,0) FOR(-45) DRAW(0,6 6,0 0-6) M(10,0) END() GOTO(100%) COLOR(255,0,0) FILL(0 0 -20 5 0 -10)
Can be expressed as:
I(0+0+20+5+0-10)M(45+0)F(-45)D(0+6+6+0+0-6)M(10+0)E()G(100%)C(255,0,0)I(0+0-20+5+0-10)
FILL(0 0 20 5 0 -10) M(45,0) FOR(-45) DRAW(0,6,6,0 0 -6) M(10,0) END() GOTO(100%) COLOR(255,0,0) FILL(0 0 -20 5 0 -10)
M(0W-25W)F()D(0W50W50W+0W0W-50W50W0W)E()
M(0S-25S)F()D(0S50S50S+0S0S-50S50S0S)E()
MOVE(0T-60T) WIDTH(1) COLOR(0,0,255) LINE(100%) GOTO(0%) WIDTH(2) COLOR(255,0,0) FOR() LINE(90T) MOVE(90T0T) END()
M(0T60T)C(255,0,0)L(100%)G(0%)M(0T-60T)C(0,128,0)L(100%)G(0%)M(0T0T)C(64,64,64)W(3)F()L(90T)M(90T0T)E()
A built-in line style editor is included in the layer properties widnow accessible through the legend control.