LINR (Relative line draw with symbols)

The LINR command draws a line, or a chain of lines on the map using relative ofsets from the last point. The LINR command line specifies the starting point relative to the reference point. Sub-command lines are used to provide relative offsets to the second and subsequent points on the line. The X,Y points are placed in the data buffer. If no X,Y points are specified, the X,Y points in the current data buffer are used.

Command Syntax:

LINR refp,xoff,yoff,att,style,pitch,symb,ssize,satt

x,y 

x,y 

. . . 

Command Parameters: 

refp.

Reference point from which to refer the following offsets. The default is reference point 0

xoff,yoff

Point at which to start line. The default is the current att position.

att.

Attribute to use

style

Line Style

1

Solid (Default).

2

Long dashes.

3

Dotted.

4

Short dashes.

5

Long/short/long dashes.

6

Long/dot/long dash.

If style is negative, smooth line joining is used. The default is a solid line, with straight line joining (+1).Smooth lines are ignored if the clip option is 2.

pitch

Patterned line pitch. The default is 1 cm.

symb

Symbol to mark points on line:

0

No symbol plotted.

1

Dot.

2

+ (plus or cross).

3

x.

4

Box.

5

Triangle.

6

Inverted triangle.

7

Hexagon.

8

Small box.

9

Small diamond.

The default is not to plot a symbol at each point in the line.

ssize.

Symbol size. The default is 0.25 cm

satt

Attribute to use for symbols. The default is att 1.

Sub-Command Lines:

x,y

Sub-command lines are used to provide offsets to subsequent points on the line. Each line may contain one x,y offset pair that defines the relative distances to the next point from the previous point.

Example
MDFF M1

LINR 0,2500,2500,2,3,8,4,2.5,3

0,2500 

2500,0 

0,-2500 

-2500,0 

This will draw the same box that was drawn by the LINA example. The XYZ data buffer now holds the coordinates specified here.

  • This command is part of the MAPPLOT GX.