POLY (Draw a closed polygon)

The POLY command draws a closed polygon on the map. The polygon can be colour filled by changing the fill attribute to the colour desired. If polygon coordinates are not specified, the points in the current data buffer are used.

Command Syntax:

POLY refp,xoff,yoff,att,style,pitch

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 the 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 solid line, straight line joining (+1).

pitch

Patterned line pitch. The default is 1 cm.

Sub-Command Lines

x,y

Sub-command lines are used to provide subsequent vertices of the polygon. Each line may contain one x,y pair that defines the next vertex. The polygon should be less than 4000 points in length.

Example
MDFF M1

POLY 0,2500,2500

2500,5000 

5000,5000 

5000,2500 

2500,2500

This will draw a square box of dimension 2500 ground units.

  • This command is part of the MAPPLOT GX.