--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
$ RELHT file-spec file-spec Command qualifiers Defaults /[NO]LITES2 /NOLITES2 /[NO]LOG /NOLOG /[NO]NODE_LIST /NONODE_LIST
--------------------------------------------------------------------------------
From: input-file-spec To: output-file-spec
--------------------------------------------------------------------------------
input-file-spec
- Specifies the IFF file which is to be processed. Any part of the filename which is not specified will be taken from the default specification 'LSL$IF:.IFF;0'.
output-file-spec
- Specifies the IFF file which is to be created to contain all the map data from the input file with relative heights for the end of each link. Any part of the filename which is not explicitly given will be taken from the parsed input specification. Note that a version number must not be specified for the output file. If a file with the specified name already exists, a new file will be created with the version number incremented by one.
--------------------------------------------------------------------------------
/LITES2[=file-spec]
- allows the user to specify a LITES2 guidance file which will contain commands to position the cursor on all junctions with doubtful relative heights. If there are no doubtful junctions, a guidance file will not be created. Any part of the filename which is not explicitly given will be taken from LSL$LITES2CMD:
--------------------------------------------------------------------------------
The program first reads the file containing the feature code relative height priorities from LSL$RELHT_PRIO, so this logical name must already have been set up.
Each line in the file is of the form
<n1> <n2> <FC range>
where
After reading in the priority table, all of the map data is copied from the input file into the output file. The junction structure is ignored, and dummy AC type 10 and type 11 entries are created for the relative heights of the start and end of each link respectively, with values of 0. At the same time, lists are made of :-
The second stage of processing is to set the relative heights for all of the links in the output file. Use is made of the IFF junction handling routines to go through each junction in the input file in turn, by scanning every sector.
For each arm of a junction, the following procedure is followed :-
The junction positions for any doubtful link ends are recorded in the LITES2 guidance file if one is being produced. A junction is in doubt if either
Note that there will be no visible difference to the display of any RELHT output file in LITES2 or other display mechanisms.
--------------------------------------------------------------------------------
COPYING, copying features over to output IFF file
CREATELCM, LITES2 guidance file 'filename' created
CREATELIS, node list file 'filename' created
IFFINCLO, input IFF file closed
IFFINOPN, IFF file 'filename' opened for input
IFFOUTCLO, output IFF file closed
IFFOUTOPN, IFF file 'filename' opened for output
LINENUM, line 'integer' in priority file
NEWLAYER, new layer 'integer' encountered
NOLCM, heights OK, no LITES2 guidance file created
READPRIO, reading feature code priority file 'filename'
SETTING, setting relative heights in output IFF file
--------------------------------------------------------------------------------
ABAOUTFIL, output IFF file abandoned
FEATINCOMP, incomplete feature 'fsn' found in input file, not copied
LINETRUNC, line truncated
--------------------------------------------------------------------------------
BADARMNUM, bad JB arm count 'integer' (max. 'integer') at 'integer' 'integer'
BADJBARM, bad JB pointer 'integer' (LPOSE='integer') at ('integer','integer'), arm 'integer'
BINCHOPERR, internal binary chop error for feature at 'integer'
EOIINFEAT, unexpected end of input IFF file within feature
ERRCLOIN, cannot close input IFF file
ERRCLOLCM, cannot close LITES2 guidance file on unit 'integer'
ERRCLOLIS, cannot close node list file on unit 'integer'
ERRCLOOUT, cannot close output IFF file
ERRCLOPRIO, cannot close feature code priority file on unit 'integer'
ERRDELLCM, cannot delete LITES2 guidance file on unit 'integer'
ERROPNIN, cannot open input IFF file 'filename'
ERROPNLCM, cannot open 'filename' on unit 'integer'
ERROPNLIS, cannot open 'filename' on unit 'integer'
ERROPNOUT, cannot open output IFF file 'filename'
ERROPNPRIO, cannot open 'filename' on unit 'integer'
ERRPOSAC, error positioning to AC entry in output file
ERRREADPRIO, cannot read feature code priority file on unit 'integer'
ERRSELLCM, cannot select LITES2 guidance file on unit 'integer'
ERRSELLIS, cannot select node list file on unit 'integer'
EXPDIGIT, expecting digit in feature code range
EXPFCRANGE, expecting range of feature codes
FIRSTTOOBIG, first number of range greater than maximum
IFFLIBERR, IFF library error
INVALFC, invalid feature code, must be positive
INVALRANGE, first number in range greater than second
MISSINT, range has missing integer
SECONDTOOBIG, second number of range greater than maximum
TOOMANYFEAT, too many features in input file (max. 'integer')
TOOMANYSHARED, too many features in shared feature (max. 'integer')
UNEXPEOF, unexpected end of file
UNEXPEOI, unexpected end of input IFF file
UNEXPEOL, unexpected end of line
UNEXPEOO, unexpected end of output IFF file
--------------------------------------------------------------------------------
SOFTERR, software error
--------------------------------------------------------------------------------