RPLV (Define a match string from an internal value)

This command allows you to define a match string based on the setting of an internal plotting parameter, or by reading user input. The match string may then be used in the following commands.

Command Syntax:

RPLV match,parm,fmt,prompt

Command Parameters:

match

The match string to be set. This string may be any unique string, but we recommend that it be framed be dots in order to be compatible with command-line replacement strings.

parm

A four letter parameter mnemonic:

 

ATTR

Attribute name stripped from an attribute defined by text. This allows you to extract an attribute name from an attribute defined previously

 

DCNT

0 if not the end of the input data file

 

1 if at the end of the input data file

 

DEOF

0 if the whole line was read into the buffer

 

1 if the last line was truncated

 

DMNX,DMNY,DMNZ

Minimum X,Y or Z (respectively) value in the buffer

 

DMXX,DMXY,DMXZ

Maximum X,Y or Z (respectively) value in the buffer

 

DNPT

Number of points in data buffer (integer)

 

DSCX,DSCY

X or Y scale in ground units/map unit

 

DLNM

Data buffer line number (integer)

 

DLTP

Data buffer line type (Line", "Base Line", "Tie Line", "Test Line", "Trend Line" or "No Data" if the buffer is empty)

 

PPCS

Projection name

 

PDAT

Projection datum name

 

PLDT

Projection local datum stransform name

 

PMTH

Projection method name

 

PUAB

Projection unit abbreviation

 

PUNI

Projection unit full name

 

PELL

Projection ellipsoid name

 

WDNX,WDNY,WDXX,WDXY

Data window minimum and maximum (respectively) coordinate values.

 

WGNX,WGNY,WGMX,WGMY

World minimum and maximum (respectively) coordinate values.

 

WMNX.WMNY,WMMX,WMMY

Map minimum and maximum (respectively) coordinate values.

fmt

A FORTRAN style format with the following syntax:

 

"(Fw.d)"

Floating point format, where w is the string width, and d is the number of digits after the decimal.

 

"(Iw)"

Integer format, where w is the width of the field in which the integer is placed right justified. If w is 0, the number is left justified. The default is "(I0)"

prompt

A text string used by the ATTR and USER parameters.

group.parm value from the Advanced Settings file i.e. "MAPPLOT.FEET"
Example
PAGE 1,1,10.5 /define a plot area

RECT 1 /draw a box around plot area

DATT .a. /define attribute .a.

RPLV .a.,ATTR,,.a. /reduce .a. to its name only

RECT 1,2,2,3,3,.a. /plot box legend using .a.

TEXT 1,3.5,3.3,-1,".a." /box legend label

:kt150,0.3 /text attribute override 

  • This command is part of the MAPPLOT GX.