--------------------------------------------------------------------------------
MODULE IPATCH
--------------------------------------------------------------------------------
REPLACES DAMP module IED
--------------------------------------------------------------------------------
IPATCH is the IFF file patch editor. It allows the user to inspect, edit or delete the various entries in the file. The file is not copied, and changes made in write mode are performed in-situ. Thus it is not possible to add extra information.
The default mode of operation is to open the IFF file for reading only.
--------------------------------------------------------------------------------
$ IPATCH IFF-file-spec
Command qualifiers Defaults
/[NO]COMMANDS[=file-spec] /NOCOMMANDS
/[NO]FRT[=file-spec] /NOFRT
/[NO]JOURNAL[=file-spec] /NOJOURNAL
/[NO]LOG /NOLOG
/[NO]REVISION_LEVEL=integer /REVISION_LEVEL=-1
/[NO]STATUS /STATUS
/WRITE Open file for read only
--------------------------------------------------------------------------------
_IFF file: IFF-file-spec
IPATCH is an interactive, command driven utility. Command input is expected when the following prompt is issued:
IPATCH>
Editing commands may also prompt for values - the prompt used depends upon the answer required.
--------------------------------------------------------------------------------
IFF-file-spec
- specifies the IFF file to be edited.
Any part of the file-spec that is not specified will be completed from the default of "LSL$IF_:IFF.IFF;0"
--------------------------------------------------------------------------------
/COMMANDS [=file-spec]
/NOCOMMANDS
- specifies that commands will be taken from a file, instead of from prompts to the user. The file-spec defaults to 'IFF-name'.IPATCH, where 'IFF-name' is the name of the IFF file being edited.
If the last command in the command file is not EXIT, then a warning message will be given, and IPATCH will start to prompt for commands.
Great care should be taken when using the /COMMANDS switch, as IPATCH will not stop editing when an error occurs. This can mean that a command file could have disastrous effects due to a small difference between the file on which the commands were journalled and the file on which /COMMANDS is used.
/FRT=file-spec
/NOFRT
- specifies an FRT (Feature Representation File) to be read. Missing parts of the file-spec are taken from 'LSL$FRT:.FRT'.
Only the ACD (Attribute Code Definition) part of the FRT is relevant to IPATCH. If no FRT file is given, then only the default attribute codes will be known to IPATCH.
/JOURNAL [=file-spec]
/NOJOURNAL
- specifies that commands will be journalled to a file. The file-spec defaults to 'IFF-name'.IPATCH, where 'IFF-name' is the name of the IFF file being edited.
Note that everything that the user types is journalled, before the program attempts to obey the line. Thus the journal file contains a complete record of the IPATCH session. The journal file can be very valuable documentation when a problem with IPATCH is being reported to Laser-Scan.
CTRL/Z> If <CTRL/Z> is used to exit from IPATCH, this will be journalled as if the EXIT command had been used. Therefore all normal journal files will end with EXIT.
/LOG
/NOLOG
- specifies that extra information is to be written to the terminal.
When the program starts up, the name of the IFF file, and of any command or journal files, are logged. When the program exits, a message containing the IFF file name is output.
If /COMMAND has been used to specify that commands be taken from a file, the /LOG command makes IPATCH reflect each command line to the terminal as it is read.
/REVISION_LEVEL=integer
/NOREVISION_LEVEL
- specifies the IFF input revision level to be used for reading the IFF file. The default of -1 causes all entries to be displayed exactly as they are in the file, but 0 may be used to force CB entries to be displayed as ST or ZS entries, while 1 may be used to force ST or ZS entries to be displayed as CB entries.
/STATUS
/NOSTATUS
- specifies that the program should write and maintain the status area at the top of the screen. This is more or less the effect that would be gained if the command STATUS ON could be given as soon as the program starts up.
This is the default state when the program is running with its output directed to a terminal. To suppress the status area, use the /NOSTATUS switch.
/WRITE
- specifies that the IFF file is to be opened for writing. The default is to open the IFF file for reading only, which means that it can be inspected but not edited. When /WRITE is specified, entries may be edited or deleted. Note that all edits take effect immediately - they are not buffered up for execution later.
--------------------------------------------------------------------------------
IPATCH is the primary means of inspecting an IFF file at the entry level, and of altering the data in that form. It thus provides a sophisticated set of movement and search commands to allow movement within the file, and editing commands tailored to each entry to facilitate alteration of data. It is also possible to delete an entry or a series of entries.
The things that IPATCH will not do are:
The dangers of using IPATCH are:
--------------------------------------------------------------------------------
The PREVIOUS command allows movement backwards in the IFF file. Unfortunately, the IFF library does not support sequential backwards movement - it provides a next-entry call and a go-to-this-position call, but not a previous-entry call. Therefore IPATCH has to maintain some sort of list of where the entries before the current one are.
What IPATCH actually does is keep a list of the addresses of NF entries, starting at the start of file. This list is updated every time the NEXT or TYPE commands are used to move beyond its end - effectively the list is 'stretched' by successive NEXT commands.
<------------scanned-area---------->
RA..........NF..........NF..........NF..........NF..........NF..........NF..
_^%|
current position
Whilst the current position is between two NF entries in the list, IPATCH also reads in the addresses of all the entries in the relevant 'feature', where a 'feature' is considered to start at one NF entry and end just before the next.
The program can thus move backwards within the current 'feature' very quickly. If it needs to move further back, it will read each previous 'feature' in as it goes, until it reaches the required entry.
<------------scanned-area---------->
RA..........NF..........NF..........NF..........NF..........NF..........NF..
_^%|
current position
However, searching for an entry, or using the FIND or EOF commands, can move the current position beyond the end of the area that IPATCH has in its list. In this case, the status area will note that "PREVIOUS will have to scan". If the PREVIOUS command is given, IPATCH will have to extend the list by scanning from the last NF it knows about up to the NF after the current position.
<----------------------scanned-area------------------------>
RA..........NF..........NF..........NF..........NF..........NF..........NF..
_^%|
current position
The list can now be used to move backwards. However, it should be realized that in a large IFF file the new current position could easily be a very long way beyond the scanned area. In these circumstances, the PREVIOUS command could involve quite a long delay as IPATCH looks for all the intermediate NF entries.
A side effect of having the PREVIOUS list is encountered when using the FIND command to position within the IFF file. If the address moved to is within the scanned area, then IPATCH will be able to tell if the entry found is reachable by a sequence of NEXT commands from the start of the file. If this is not the case, then the entry is "not simply reachable", and a warning message will be output to that effect. In this case, it is likely that the entry is not real, but just a coincidental bit pattern that looks superficially like an IFF entry.
--------------------------------------------------------------------------------
The wildcard character, *, may be used as a placeholder when searching and when editing in line mode. It allows the specification of a value when earlier values are not required. For instance, to search for an AC with a particular text, give the command
IPATCH> AC * * "Text that is wanted by the user"<CR>
This says that the AC type and value may take any value, and that it is only the text that is important.
Similarly, editing the AC when it is found could use wildcards - for instance
IPATCH> / * * "Text that was wanted"<CR>
edits the text, ignoring the AC type and value.
--------------------------------------------------------------------------------
The _! character (exclamation mark) introduces a comment - anything after the comment character is not to be obeyed by the program. The comment character may occur at the start of a line, or after a valid command.
If journalling is in progress (due to the /JOURNAL switch) then comments are journalled like any other input.
--------------------------------------------------------------------------------
It is possible to ask IPATCH to find the next occurrence of a particular entry, possibly specifying values for the contents of that entry.
IPATCH will move forwards through the IFF file until it either finds an entry which satisfies the search request, or reaches the end of file. If it finds an entry, then it makes that entry current. If it reaches end of file, it gives a warning message and does not move the current position - ie the entry that was current before the search is still current.
The basic search request is simply the name of the entry - for instance
IPATCH> AC<CR>
will look for the next AC entry, and
IPATCH> FS 245<CR>
will look for the next FS entry, with feature code 245. Note that this search request is equivalent to the (unnecessarily) wildcarded request
IPATCH> FS 245 * * *<CR>
Finally, the search request
IPATCH> NF * 701<CR>
will search forwards for an NF entry with internal sequence number 701, and any feature serial number.
--------------------------------------------------------------------------------
*
Moves the current position back to the start of the file.
--------------------------------------------------------------------------------
FORMAT: *
--------------------------------------------------------------------------------
DESCRIPTION:
The * command moves the current position back to the start of the IFF file, before the first entry.
This command is the only command which may be followed by another command on the same line. This second command will be obeyed after moving to the start of the file - for instance *NEXT would move to the first entry in the file. Note that it is not necessary to separate the * and the succeeding command with spaces.
--------------------------------------------------------------------------------
Examples:
IPATCH> *<CR>
00000000: Start of file
IPATCH>
IPATCH> *NEXT 5<CR>
000011D6: NS "created by IFROMTEXT at 15:39:49 on 30-OCT-85"
IPATCH>
--------------------------------------------------------------------------------
_?
Prints the current entry out again.
--------------------------------------------------------------------------------
FORMAT: _?
--------------------------------------------------------------------------------
DESCRIPTION:
The _? command prints the current entry out again, in the same format as produced by NEXT. It does not change the current entry.
--------------------------------------------------------------------------------
Examples:
0000123B: NF 170 1
IPATCH> ?<CR>
0000123B: NF 170 1
IPATCH>
--------------------------------------------------------------------------------
_/
Introduces edit mode.
--------------------------------------------------------------------------------
FORMAT: _/
_/ values
_/ command value
--------------------------------------------------------------------------------
DESCRIPTION:
The _/ command introduces edit mode.
There are three forms of edit mode:
Note that it is only possible to edit an entry when the IFF file has been opened /WRITE.
--------------------------------------------------------------------------------
Prompt mode
_/
If the _/ command is given on a line by itself, then prompt mode is entered. A prompt is given for each field of the current entry, and a new value may be given as reply. A reply of <CR> is taken to mean that the original value should be used. <CTRL/Z> is treated as <CR>
Prompt mode is not supported for the CP, CC, ST, ZS, or CB entries.
--------------------------------------------------------------------------------
Line mode
_/ values
If the _/ command is immediately followed by appropriate values on the command line, then those values will be used to replace the fields of the current entry, in the relevant order. The wildcard character (*) may be used as a position holder for a field which is not to be changed.
Line mode is not supported for the CP, CC, ST, ZS, or CB entries.
--------------------------------------------------------------------------------
Command mode
_/ command value
Almost all entries may be edited in command mode. For each such entry, a series of command mnemonics are supplied to allow individual fields (or parts of fields) to be altered. For instance, the FS entry edit command /FC 5 sets the feature code to 5.
See the documentation for each IFF entry for a definition of the edit commands available.
--------------------------------------------------------------------------------
Examples:
00001236: NO 1 0000 00000000
IPATCH> / LAYER 2<CR>
00001236: NO 2 0000 00000000
IPATCH> / * * 1714<CR>
00001236: NO 1 0000 00001714
IPATCH> NEXT<CR>
0000123B: NF 170 1
IPATCH> /<CR>
FSN:
ISN: 170
0000123B: NF 170 170
IPATCH> NEXT<CR>
0000123E: FS 123 0000 0000 0000
IPATCH> / TEXT<CR>
0000123E: FS 123 0000 8000 0000
IPATCH> / POSITION 3<CR>
0000123E: FS 123 0000 8003 0000
IPATCH> NEXT<CR>
00001243: AC Height (3) = 67.9 "This text belongs to a type 3 AC.."
IPATCH> / Contour 70 "This text belongs to a type 2 AC.."<CR>
00001243: AC Contour (2) = 70 "This text belongs to a type 2 AC.."
IPATCH>
--------------------------------------------------------------------------------
DELETE
Deletes the current entry
--------------------------------------------------------------------------------
FORMAT: DELETE
--------------------------------------------------------------------------------
DESCRIPTION:
The DELETE command deletes the current entry, replacing it by a void (VO) entry of the appropriate size. This command does not do anything if the file is not opened for write.
Note that if there is a current mark (see the MARK command), the DELETE command will have removed it.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the DELETE command:
GOTOVO, error returning to just deleted entry (void)
NEXTDEL, error moving to next entry, to delete this one
NOCURDEL, no current entry to delete
NOTWRITE, IFF file has not been opened for write
--------------------------------------------------------------------------------
Examples:
0000123B: NF 170 1
IPATCH> DELETE<CR>
%IPATCH-W-NOTWRITE, IFF file has not been opened for write
0000123B: NF 170 1
IPATCH>
0000123B: NF 170 1
IPATCH> DELETE<CR>
0000123B: VO 2
IPATCH>
--------------------------------------------------------------------------------
DELETE MARK
Delete entries from the marked entry to the previous entry.
--------------------------------------------------------------------------------
FORMAT: DELETE MARK
--------------------------------------------------------------------------------
DESCRIPTION:
The DELETE MARK command deletes all entries from (and including) the marked entry to the previous entry. The deleted entries are replaced by a void (VO) entry of the appropriate size. The current entry is not deleted.
The marked entry (at which deletion starts) is indicated with the MARK command. Note that after DELETE MARK, there is no longer any mark on the (now voided) entry.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the DELETE MARK command:
DELORDER, current entry is before the marked entry - can't delete to
the mark
MARKDEL, no marked entry to delete from
NOTWRITE, IFF file has not been opened for write
--------------------------------------------------------------------------------
Examples:
0000123B: NF 170 1
IPATCH> DELETE MARK<CR>
0000123B: NF 170 1
IPATCH> PREVIOUS<CR>
00001224: VO 22
IPATCH>
--------------------------------------------------------------------------------
DISPLAY OFF
Stop NEXT command displaying intermediate entries
--------------------------------------------------------------------------------
FORMAT: DISPLAY OFF
--------------------------------------------------------------------------------
DESCRIPTION:
After this command, NEXT will only print out the destination entry. Thus the command NEXT 5 would not print out the intermediate entries (entries 1 to 4), but only the 5th entry, which becomes current.
This is the default state.
--------------------------------------------------------------------------------
Information messages:
The following information messages are specific to the DISPLAY OFF command:
DISPLAYOFF, NEXT will now only display the destination entry
--------------------------------------------------------------------------------
Examples:
IPATCH> DISPLAY OFF<CR>
%IPATCH-I-DISPLAYOFF, NEXT will now only display the destination entry
IPATCH> NEXT 5<CR>
0000126B: EF
IPATCH>
--------------------------------------------------------------------------------
DISPLAY ON
Enable the display of intermediate entries by NEXT
--------------------------------------------------------------------------------
FORMAT: DISPLAY ON
--------------------------------------------------------------------------------
DESCRIPTION:
After this command, NEXT will print out all entries that it passes over. Thus the command NEXT 5 would print out the intermediate entries (entries 1 to 4), as well as the 5th entry, which becomes current.
--------------------------------------------------------------------------------
Information messages:
The following information messages are specific to the DISPLAY ON command:
DISPLAYON, NEXT will now display intermediate entries
--------------------------------------------------------------------------------
Examples:
IPATCH> DISPLAY ON<CR>
%IPATCH-I-DISPLAYON, NEXT will now display intermediate entries
IPATCH> NEXT 5<CR>
0000126C: NF 170 2
0000126F: FS 123 0000 0000 0000
00001274: AC Height (3) = 67.9 "This text belongs to a type 3 AC.."
00001289: TH 30
0000128B: ST 4 0000
IPATCH>
--------------------------------------------------------------------------------
EOF
Move current position to the end of file
--------------------------------------------------------------------------------
FORMAT: EOF
--------------------------------------------------------------------------------
DESCRIPTION:
The EOF command moves the current position to the end of the IFF file, after the last entry. Note that the first attempt to PREVIOUS from the end of file will cause IPATCH to scan up to the end, which can take a while for a large file.
--------------------------------------------------------------------------------
Examples:
0000128B: ST 4 0000
IPATCH> EOF<CR>
00006199: End of file
IPATCH>
--------------------------------------------------------------------------------
EXIT
CTRL/Z> > see EXIT command
Exit from the IPATCH program
--------------------------------------------------------------------------------
FORMAT: EXIT
--------------------------------------------------------------------------------
DESCRIPTION:
The EXIT command causes IPATCH to exit. Note that any editing performed by IPATCH was done at the time it was requested, not at the time of EXIT.
<CTRL/Z> (pressing the Ctrl and Z keys together) may also be used to exit the program.
--------------------------------------------------------------------------------
Examples:
IPATCH> EXIT<CR>
ELAPSED: 00:05:25.84 CPU: 0:00:05.71 BUFIO: 281 DIRIO: 46 FAULTS: 263
_$
--------------------------------------------------------------------------------
EXPLAIN
Explain the current entry
--------------------------------------------------------------------------------
FORMAT: E
EXPLAIN
--------------------------------------------------------------------------------
DESCRIPTION:
The EXPLAIN command causes IPATCH to explain the meaning of the current entry. The fields of the entry will be named, and any bit-set fields will be explained.
--------------------------------------------------------------------------------
Examples:
0000128B: ST 4 0000
IPATCH> EXPLAIN<CR>
0000128B: ST 4 0000
2-dimensional point string entry
- size of entry = 16 words
- number of points = 4
- flag bits = 0000 - ie pen UP to first point
IPATCH> FS<CR>
000012A0: FS 123 0000 0000 0000
IPATCH> EXPLAIN<CR>
000012A0: FS 123 0000 0000 0000
Feature Status entry
- size of entry = 4 words
- FC (feature code) 123
- word 2 = 0000 hex
CLOSED = 0 (feature is open)
NOTEDGE = 0 (feature is an edge, not a line)
REVERSE = 0 (feature is not reversed)
TWOPART = 0 (feature is not two-part)
PAINTOUT = 0 (feature is not paintout - keep it)
SQUARE = 0 (squaring flag clear)
INVERSE = 0 (normal polarity)
SUPPRESS = 0 (no paintout suppress)
- word 3 = 0000 hex
text/symbol bits = 0 (linear feature)
PC = 0 (process code)
- word 4 = 0000 hex - user specific data
IPATCH>
--------------------------------------------------------------------------------
FIND
Move to a given address in the file
--------------------------------------------------------------------------------
FORMAT: F address
FIND address
--------------------------------------------------------------------------------
Command parameters:
address
The hexadecimal address within the IFF file which is to be made the new current position
--------------------------------------------------------------------------------
DESCRIPTION:
The FIND command changes the current position to the given hexadecimal address in the IFF file, and takes in hand any entry there.
If the program has scanned past that address (for instance by using NEXT to move past it), then IPATCH will report if it does not believe that the entry that you have positioned to is 'real' - that is, reachable by a sequence of NEXT commands from the start of file.
The FIND command is mainly intended to allow inspection of an IFF file after a corrupted area, which may stop the NEXT command from working over that area. It can also be useful for finding a problem reported by a utility program, when the error message contained an IFF file address.
You should realize, however, that using a series of NEXT entries from a random position in the file can sometimes provide a superficially sensible set of entries, even though they are only due to the accidental bit patterns caused by the real entries in that area.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the FIND command:
BADFIND, cannot find before 00000001 or after 'end-of-file' - nothing
there
NOADDRESS, no (hexadecimal) address given after FIND
NOENTRY, no entry at that position
NOTENTRY, entry 'entry' at 'hex-address' is not simply reachable
--------------------------------------------------------------------------------
Examples:
IPATCH> FIND 128B<CR>
0000128B: ST 4 0000
IPATCH> FIND 123<CR>
%IFF-E-IFFERR, IFF error BINC on LUN 1
%IFF-E-IFFERR, IFF error BINC on LUN 1
%IPATCH-W-NOTENTRY, entry XX at 00000123 is not simply reachable
00000123: XX 249
IPATCH>
--------------------------------------------------------------------------------
FRT
Read in an FRT file
--------------------------------------------------------------------------------
FORMAT: FRT file-spec
--------------------------------------------------------------------------------
Command parameters:
file-spec
The name of the FRT file to be read. Missing parts of the file-spec are taken from 'LSL$FRT:.FRT'.
--------------------------------------------------------------------------------
DESCRIPTION:
The FRT command causes an FRT file to be read, possibly as a replacement for one specified on the IPATCH command line. The FRT library may produce messages concerning any errors in the FRT file.
Only the ACD (Attribute Code Definition) part of the FRT is relevant to IPATCH.
--------------------------------------------------------------------------------
HELP
Give help on a subject
--------------------------------------------------------------------------------
FORMAT: H subject
HELP subject
--------------------------------------------------------------------------------
Command parameters:
subject
The subject on which help is required
--------------------------------------------------------------------------------
DESCRIPTION:
The HELP command looks the rest of the line up in the IPATCH HELP library. This library contains a brief summary of the operation of each command, and examples of the operation of each.
The information is looked up in the IPATCH section of the IMP help library, LSL$HELP:IMP.HLB.
--------------------------------------------------------------------------------
LINE
Look for the next FS with text and symbol bits unset in word 3
--------------------------------------------------------------------------------
FORMAT: LINE
--------------------------------------------------------------------------------
DESCRIPTION:
The LINE command performs a search for the next FS entry with the text and symbol bits both unset in the third word. See the FS entry documentation for further details.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the LINE command:
FSBITS, cannot find linear FS
--------------------------------------------------------------------------------
Examples:
IPATCH> LINE<CR>
000001F1: FS 1 0000 0000 0000
IPATCH>
--------------------------------------------------------------------------------
LIST
List the points in the current point string (ST,ZS,CB) entry
--------------------------------------------------------------------------------
FORMAT: L [from [to]]
LIST [from [to]]
--------------------------------------------------------------------------------
Command parameters:
from
The lower limit of the sequence of points to be listed.
to
The upper limit of the sequence of points to be listed
--------------------------------------------------------------------------------
DESCRIPTION:
The LIST command types the specified points from the current ST, ZS, or CB entry.
If no parameters are specified, then all of the points will be listed. If only one parameter is specified, then all the points starting with the from'th will be listed. If both parameters are specified, then the from'th to to'th points will be listed.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the LIST command:
INTRANGE, 'integer' is out of range - should be between 1 and 'npts'
NOTSTRING, LIST will only work for an ST, ZS, or CB
ORDER, cannot work from 'from' to 'to' - try again in the other
order
--------------------------------------------------------------------------------
Examples:
0000125A: ST 4 0000
IPATCH> LIST 2 3<CR>
0000125A: ST 4 0000
2: 0.8506, 16.8394
3: 2.2290, 18.8454
IPATCH>
--------------------------------------------------------------------------------
MARK
Mark the current entry
--------------------------------------------------------------------------------
FORMAT: M
MARK
--------------------------------------------------------------------------------
DESCRIPTION:
The MARK command is used to mark the current entry.
The RETURN command can then be used at any time to reposition to the marked entry, and the DELETE MARK command can be used to delete from it.
The DELETE and DELETE MARK commands both remove the mark from the marked entry.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the MARK command:
NOCURMARK, no current entry to MARK
Information messages:
The following information messages are specific to the MARK command:
MARKED, current entry now marked
--------------------------------------------------------------------------------
Examples:
0000126C: NF 170 2
IPATCH> MARK<CR>
%IPATCH-I-MARKED, current entry now marked
0000126C: NF 170 2
IPATCH>
--------------------------------------------------------------------------------
NEXT
Move to the next entry
--------------------------------------------------------------------------------
FORMAT: N [count]
NEXT [count]
NEXT *
--------------------------------------------------------------------------------
Command parameters:
count
The number of entries by which to move forwards. This defaults to 1.
--------------------------------------------------------------------------------
DESCRIPTION:
The NEXT command is used to move to the next entry in the IFF file, and make it current. If an integer argument is given, then the effect is as of repeating the NEXT command that number of times. If NEXT * is used, then the effect is as of repeating the NEXT command until the end of file is reached (and made current).
If the DISPLAY ON command has been given, then the intermediate entries will be displayed. Otherwise only the final entry (the one which is made current) will be displayed.
Note that the NEXT * command is only obeyed when DISPLAY is ON - otherwise an error message is given and the command ignored. If you just want to move to the end of file, use the EOF command.
See also the discussion of IFF file scanning.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the NEXT command:
BADNEXT, argument to NEXT must be greater than zero
NEXTEOF, you can't NEXT off the end of the file
NEXTERR, NEXT command abandoned after 'integer' entries
NEXTONE, NEXT command abandoned after 1 entry
WILDNEXT, DISPLAY is OFF - attempt to do "NEXT *" ignored
--------------------------------------------------------------------------------
Examples:
IPATCH> NEXT 5<CR>
00001243: AC Height (3) = 67.9 "This text belongs to a type 3 AC.."
00001258: TH 30
0000125A: ST 4 0000
0000126B: EF
0000126C: NF 170 2
IPATCH>
--------------------------------------------------------------------------------
PREVIOUS
Move to the previous entry
--------------------------------------------------------------------------------
FORMAT: P [count]
PREVIOUS [count]
--------------------------------------------------------------------------------
Command parameters:
count
The number of entries to move backwards by. This defaults to 1.
--------------------------------------------------------------------------------
DESCRIPTION:
The PREVIOUS command is used to move to the previous entry in the IFF file, and make it current. If an argument is given, then the effect is as of repeating the PREVIOUS command that number of times, although without displaying the intermediate entries.
See also the discussion of IFF file scanning.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the PREVIOUS command:
DISABOVE, PREVIOUS is disabled above 'address'
PREVBETWEEN, PREVIOUS will not work between 'address' and 'address'
PREVBOF, you can't PREVIOUS off the start of the file
PREVERR, PREVIOUS command abandoned
PREVNF, error looking for NF entry, during PREVIOUS scan
PREVXX, error looking for start-of-file entry, during PREVIOUS scan
--------------------------------------------------------------------------------
Examples:
IPATCH> NEXT 5<CR>
00001243: AC Height (3) = 67.9 "This text belongs to a type 3 AC.."
00001258: TH 30
0000125A: ST 4 0000
0000126B: EF
0000126C: NF 170 2
IPATCH> PREVIOUS<CR>
0000126B: EF
IPATCH> PREVIOUS 2<CR>
00001258: TH 30
IPATCH>
--------------------------------------------------------------------------------
RETURN
Return to the marked entry
--------------------------------------------------------------------------------
FORMAT: RETURN
--------------------------------------------------------------------------------
DESCRIPTION:
The RETURN command makes the marked entry the current entry again.
The MARK command is used to mark an entry.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the RETURN command:
MARKERR, error in positioning back to MARKed entry
NOMARK, no marked entry to RETURN to
--------------------------------------------------------------------------------
Examples:
00001307: AC Height (3) = 67.9 "This text belongs to a type 3 AC.."
IPATCH> RETURN<CR>
0000126C: NF 170 2
IPATCH>
--------------------------------------------------------------------------------
REVISION_LEVEL
Alter the IFF input revision level.
--------------------------------------------------------------------------------
FORMAT: REVISION_LEVEL level
--------------------------------------------------------------------------------
Command parameters:
level
The new IFF input revision level to use. This must be -1, 0, or 1.
--------------------------------------------------------------------------------
DESCRIPTION:
The REVISION_LEVEL command is used to alter the IFF input revision level used for reading the file. The original level used defaults to -1, but may be set using the /REVISION_LEVEL command qualifier. The default of -1 causes all entries to be displayed exactly as they are in the file, but 0 may be used to force CB entries to be displayed as ST or ZS entries, while 1 may be used to force ST or ZS entries to be displayed as CB entries.
After a REVISION_LEVEL command, the current entry is displayed.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the REVISION_LEVEL command:
BADREV, unknown revision level 'integer', must be -1, 0, or 1
--------------------------------------------------------------------------------
Examples:
IPATCH> NEXT<CR>
0000029E: ZS 5 0001
IPATCH> REVISION_LEVEL 1<CR>
0000029E: CB 5 01 1 7 5
IPATCH>
--------------------------------------------------------------------------------
STATUS
Print current status information
--------------------------------------------------------------------------------
FORMAT: STATUS
--------------------------------------------------------------------------------
DESCRIPTION:
The STATUS command prints a summary of the current file status. This is the same information as would be output in the status area if the STATUS ON command had been given.
--------------------------------------------------------------------------------
Examples:
IPATCH> STATUS<CR>
Reading file DUA0:[LSL.IFF]WINNIE_THE_POOH.IFF;2
current 0000126C NF 170, 2 at 0000126C mark at 0000126C
eof 00006199 revision levels: input -1 output 1
5 features scanned (below 00001330)
NEXT will not display intermediate entries
IPATCH> DISPLAY ON<CR>
%IPATCH-I-DISPLAYON, NEXT will now display intermediate entries
IPATCH> FS 123<CR>
00001368: FS 123 0000 0000 0000
IPATCH> STATUS<CR>
Reading file DUA0:[LSL.IFF]WINNIE_THE_POOH.IFF;2
current 00001368 no previous known NF mark at 0000126C
eof 00006199 revision levels: input -1 output 1
5 features scanned (below 00001330) - PREVIOUS will have to scan
NEXT will display intermediate entries
IPATCH>
--------------------------------------------------------------------------------
STATUS OFF
Remove the status area from the screen
--------------------------------------------------------------------------------
FORMAT: STATUS OFF
--------------------------------------------------------------------------------
DESCRIPTION:
The STATUS OFF command switches off the status area at the top of the screen, and clears the screen. The default is to have a status area.
--------------------------------------------------------------------------------
STATUS ON
Request the display of a status area
--------------------------------------------------------------------------------
FORMAT: STATUS ON
--------------------------------------------------------------------------------
DESCRIPTION:
The STATUS ON command causes IPATCH to write and maintain a status area at the top of the screen.
The status area is only supported on ANSI terminals (ie VT100 and VT200 series).
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the STATUS ON command:
CHKTERM, error checking to see if SYS$OUTPUT_: is an ANSI terminal
NOTANSI, SYS$OUTPUT_: is not an ANSI terminal
--------------------------------------------------------------------------------
SYMBOL
Look for the next FS with symbol bit set in word 3
--------------------------------------------------------------------------------
FORMAT: SYMBOL
--------------------------------------------------------------------------------
DESCRIPTION:
The SYMBOL command performs a search for the next FS entry with the symbol bit set and the text bit unset in the third word. See the FS entry documentation for further details.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the SYMBOL command:
FSBITS, cannot find symbol FS
--------------------------------------------------------------------------------
Examples:
IPATCH> SYMBOL<CR>
00000221: FS 54 0000 4000 0000
IPATCH>
--------------------------------------------------------------------------------
TEXT
Look for the next FS with text bit set in word 3
--------------------------------------------------------------------------------
FORMAT: TEXT
--------------------------------------------------------------------------------
DESCRIPTION:
The TEXT command performs a search for the next FS entry with the text bit set and the symbol bit unset in the third word. See the FS entry documentation for further details.
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the TEXT command:
FSBITS, cannot find text FS
--------------------------------------------------------------------------------
Examples:
IPATCH> TEXT<CR>
00000209: FS 28 0000 8083 0000
IPATCH>
--------------------------------------------------------------------------------
TO DECIMAL
Convert a hexadecimal number to decimal
--------------------------------------------------------------------------------
FORMAT: TO DECIMAL hex-number
--------------------------------------------------------------------------------
Command parameters:
hex-number
The hexadecimal number which is to be converted to decimal.
--------------------------------------------------------------------------------
DESCRIPTION:
The TO DECIMAL command translates the given integer value from hexadecimal to decimal, and prints it out.
--------------------------------------------------------------------------------
Examples:
IPATCH> TO DECIMAL 123B<CR>
123B hexadecimal is 4667 decimal
IPATCH>
--------------------------------------------------------------------------------
TO DEGREES
Convert an angle from radians to degrees
--------------------------------------------------------------------------------
FORMAT: TO DEGREES radians
--------------------------------------------------------------------------------
Command parameters:
radians
The real number representing the desired angle in radians.
--------------------------------------------------------------------------------
DESCRIPTION:
The TO DEGREES command translates the given angle from radians to degrees, and prints it out.
--------------------------------------------------------------------------------
Examples:
IPATCH> TO DEGREES 3.1415<CR>
3.141 radians is 179.995 degrees
IPATCH>
--------------------------------------------------------------------------------
TO HEXADECIMAL
Converts a decimal number to hexadecimal
--------------------------------------------------------------------------------
FORMAT: TO HEXADECIMAL integer
--------------------------------------------------------------------------------
Command parameters:
integer
The decimal integer which is to be converted to hexadecimal.
--------------------------------------------------------------------------------
DESCRIPTION:
The TO HEXADECIMAL command translates the given integer value from decimal to hexadecimal, and prints it out.
--------------------------------------------------------------------------------
Examples:
IPATCH> TO HEX 1234<CR>
1234 decimal is 4D2 hexadecimal
IPATCH>
--------------------------------------------------------------------------------
TO RADIANS
Converts an angle from degrees to radians
--------------------------------------------------------------------------------
FORMAT: TO RADIANS degrees
--------------------------------------------------------------------------------
Command parameters:
degrees
The real number representing the desired angle in degrees.
--------------------------------------------------------------------------------
DESCRIPTION:
The TO RADIANS command translates the given angle from degrees to radians, and prints it out.
--------------------------------------------------------------------------------
Examples:
IPATCH> TO RADIANS 89.0<CR>
89.000 degrees is 1.553 radians
IPATCH>
--------------------------------------------------------------------------------
TYPE
Types the current entry, or a sequence of entries
--------------------------------------------------------------------------------
FORMAT: T [count]
TYPE [count]
TYPE *
--------------------------------------------------------------------------------
Command parameters:
count
The number of entries to type out. This value defaults to 0, which means type the current entry only. If the value is greater than zero, then the current entry is not typed, but the next count entries are.
--------------------------------------------------------------------------------
DESCRIPTION:
The TYPE command types out the contents of an entry.
If no argument is given, then the effect is as of TYPE 0, and the current entry is typed out. If an integer argument greater than zero is given, then each of the next count entries (but not the current entry) is typed out, and the last one is left current. If TYPE * is used, then the effect is as of specifying an argument great enough to TYPE to the end of file, which is left current.
The typed information is as follows:
--------------------------------------------------------------------------------
Warning messages:
The following warning messages are specific to the TYPE command:
BADTYPE, argument to TYPE must be zero or greater
NEXTEOF, you can't NEXT off the end of the file
TYPEERR, TYPE command abandoned after 'integer' entries
TYPEONE, TYPE command abandoned after 1 entry
The type of a numeric value is indicated by the way in which it is displayed. Thus an integer will be displayed in the minimum width possible, a hexadecimal number will always be 2, 4, or 8 digits, padded on the left with zeroes, and a real number will have a decimal point or be in engineering format.
Texts are displayed within double quotation marks (except within an EXPLAIN).
--------------------------------------------------------------------------------
AC - Ancillary code entry
address: AC name (type) = value ["text"]
--------------------------------------------------------------------------------
DESCRIPTION
AC entries are used to hold miscellaneous information. They are composed of a word (integer*2) type, a longword (integer*4, real, date, time, or character) value and an optional text.
The type of information held in an AC is determined by the AC type. Names and data types are associated with the numerical AC type by means of an FRT file (though some default types are always present). For a list of currently default AC types, and the method for adding user defined types via and FRT file, see the IFF and FRT User guides.
AC types may take values in the range 0-32767. Negative ACs are not allowed in normal use of IFF files, although IPATCH does not enforce this. The name of an AC (if defined in the FRT file) may be used in place of the numerical AC type. If the type is not present in the FRT file, then the name is displayed as ?, and the datatype is assumed to be integer.
AC values are printed in the format defined by the FRT file. A value may be 'absent'. The absent value is printed as ? (or "" for a text value). Values should be entered in the same format as that in which they are printed (including the absent value).
AC texts may be up to 255 characters in length. However, note that IPATCH itself can never change the length of a text.
--------------------------------------------------------------------------------
SEARCHING
AC [values required]
If the search is to be qualified by the contents of the AC, then the relevant values may be specified. Any values not required may be wildcarded if necessary. The AC type may be specified either as an integer, or by using the associated name.
If the AC type is wildcarded, and the AC value is specified, then IPATCH has to decide the data type of the desired AC. Only real or integer values are allowed, and if a real is intended, then it must be unambiguous - it should contain a decimal point or be in E notation. For instance, AC * 100 will search for an integer value, but AC * 100.0 will search for a real. If a date, time, or character value is required, then the AC type may not be wildcarded.
If a specific text is being searched for, IPATCH will stop at the first AC entry which contains the requested text as a sub-string. Note that the case of the letters must match exactly. For instance, AC * * "UP _& down" would match the AC
AC ? (1234) = 27 "This text goes UP _& down"
--------------------------------------------------------------------------------
EDITING
The AC type, value and text (if present) may all be changed independently or together. If the AC type is changed such that the data-type of the value (integer, real, date, time, character) should also change, but a new value is not requested, then in the case of conversion between integer and real, IPATCH will convert the value. In other cases, IPATCH leaves the value unchanged (i.e. keeps the same bit pattern), but checks whether the value is in the valid range for the new AC type. If not the value is changed to 'absent'. For instance:
00001243: AC Height (3) = 67.9 "This text belongs to a type 3 AC.."
IPATCH> / TYPE 2<CR>
%IPATCH-I-ACNOWINT, value has been converted from real to integer
00001243: AC Contour (2) = 68 "This text belongs to a type 3 AC.."
IPATCH> / TYPE 3<CR>
%IPATCH-I-ACNOWREAL, value has been converted from integer to real
00001243: AC Height (3) = 68.0 "This text belongs to a type 3 AC.."
Since IPATCH cannot add new data to the file, it is not possible to add text data to an AC that does not already contain it.
If a new text is specified, then if it is too long IPATCH will truncate it before using it, and if it is too short IPATCH will pad it to the right with spaces. For instance:
00001243: AC Height (3) = 68.0 "This text belongs to a type 3 AC.."
IPATCH> / TEXT "This text has been changed to a longer string"<CR>
%LSLLIB-E-STRTOOLONG, string is too long - truncated
00001243: AC Height (3) = 68.0 "This text has been changed to a lo"
IPATCH> / TEXT "This text is too short"<CR>
00001243: AC Height (3) = 68.0 "This text is too short "
--------------------------------------------------------------------------------
Prompt mode
The following prompts will be made:
AC type:
AC value (<data-type>):
AC text:
where <data-type> is either "integer", "real", "date", "time", or "character", depending on the AC type.
If a text is specified, it should not be enclosed in quotation marks. Note that this means that it is not possible to define a text of all spaces in prompt mode, as the 'trailing' spaces on a response are ignored. Use line mode or command mode for this purpose.
A reply of <CR> will leave the relevant value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new values to be inserted into the AC. Wildcards may be used as placeholders - for instance
IPATCH> / 2<CR>
will change the AC type, and
IPATCH> / * 80.0 "This is a new text"<CR>
changes the value and text field.
--------------------------------------------------------------------------------
Command mode
/ TYPE integer
Sets the AC type.
/ VALUE value
Sets the AC value. The value must be of a datatype appropriate to the
AC type.
/ TEXT "text"
Changes the AC text. It is not possible to insert a text longer than the
text already present. The text inserted will be padded with spaces on the
right if necessary.
--------------------------------------------------------------------------------
CB - Coordinate block entry
address: CB nrow flags gtype ncol natt
--------------------------------------------------------------------------------
DESCRIPTION
The CB entry contains the point data defining the feature. There may be more than one CB entry in a feature. The CB entry supercedes the ST and ZS entries. In addition to X and Y coordinates, it may contain other attributes (ncol in total) on a per-point basis, and also attributes (natt of them) considered fixed for the entire CB. Attributes may contain a value indicating 'absent' (equivalent to not present at all) and this is represented by a question mark '?', or for a character value "".
Note that the pen is always considered to be up for the first CB in a feature - that is the pen is always kept up to move to the start of a new feature.
--------------------------------------------------------------------------------
SEARCHING
CB [values required]
If the search is to be qualified by the contents of the CB, then the relevant values may be specified (in the order in which they are printed above). Any values not required may be wildcarded if necessary.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
Prompt mode is not supported for the CB entry.
--------------------------------------------------------------------------------
Line mode
Line mode is not supported for the CB entry.
--------------------------------------------------------------------------------
Command mode
/ CHANGE from to
Change the specified points. If only one number is given,
then that one point will be changed. IPATCH will prompt for the new values. If
there is only one point, then no argument is necessary.
/ DELETE from to
Deletes the specified points (rows). If only one number is given,
then that one point will be deleted. If there is only one point, then no
argument is needed.
/ FLAGS hex-value
Specifies a new value for the flags field of the CB. Currently
only the bottom bit (bit 0) is significant, and is used to indicate pen
up or down.
/ GTYPE value
Specifies a new value for the gtype field of the CB. This should
be in the range 1-12 (see FRT User's Guide).
/ ATTRIBUTE name or code
Change the fixed attribute with the specified name or attribute code.
IPATCH will prompt for a new name/code and value. The same comments as
for AC entries apply if the datatype is changed but a new value is not
specified.
--------------------------------------------------------------------------------
CC - Cubic coefficients entry
address: CC
--------------------------------------------------------------------------------
DESCRIPTION
The CC entry occurs once per section, and is a matrix of size (10_,2) real numbers (indexed as for Fortran). It defines a transformation between two coordinate systems to be used by a post-processing program to transform all points in the file into the same coordinate space. This is necessary when (for instance) data has been digitised on a Lasertrak.
The matrix may be represented as
a k b l c m d n e o f p g q h r i s j t
which represents the transformation
X' = a + bX + cY + dXX + eXY + fYY + gXXX + hXXY + iXYY + jYYY Y' = k + lX + mY + nXX + oXY + pYY + qXXX + rXXY + sXYY + tYYY
The unit matrix specifies a unit transformation - ie no transformation is necessary. The unit matrix has all terms 0.0, except for those at (2_,1) and (3_,2) which are 1.0. In the convention adopted by IPATCH these are the b and m terms.
--------------------------------------------------------------------------------
SEARCHING
CC
It is not possible to modify the search by the CC contents.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
Prompt mode is not supported for the CC entry.
--------------------------------------------------------------------------------
Line mode
Line mode is not supported for the CC entry.
--------------------------------------------------------------------------------
Command mode
/ letter value
'letter' specifies one of the 20 matrix values, from A to T.
'value' then specifies a real number to replace that position in the CC matrix.
/ UNIT
The UNIT command resets the CC matrix to the unit transformation. All
entries are set to 0.0, except B and M which are set to 1.0. The unit
transformation is the norm for files which have been digitised by
non-distorting hardware (for instance a digitising table via DIGSYS).
--------------------------------------------------------------------------------
CH - Literal character entry
address: CH "text"
--------------------------------------------------------------------------------
DESCRIPTION
This entry is obsolete, and should not be used in new IFF files.
Its only current use is for storing the data in Laseraid patch files.
Note that CH entries must be outside features, and may also be outside layers (Laseraid patch files do not contain layers or features).
--------------------------------------------------------------------------------
SEARCHING
CH ["text"]
If a specific text is being searched for, IPATCH will stop at the first CH entry which contains the requested text as a sub-string. Note that the case of the letters must match exactly. For instance, CH "UP _& down" would match the CH
CH "This text goes UP _& down"
--------------------------------------------------------------------------------
EDITING
If a new text is specified, then if it is too long IPATCH will truncate it before using it, and if it is too short IPATCH will pad it to the right with spaces. For instance:
00001243: CH "This text belongs to a CH entry"
IPATCH> / TEXT "This text has been changed to a longer string"<CR>
%LSLLIB-E-STRTOOLONG, string is too long - truncated
00001243: CH "This text has been changed to a"
IPATCH> / TEXT "This text is too short"<CR>
00001243: CH "This text is too short "
--------------------------------------------------------------------------------
Prompt mode
The following prompt will be made:
Text:
If a text is specified, it should not be enclosed in quotation marks. Note that this means that it is not possible to define a text of all spaces in prompt mode, as the 'trailing' spaces on a response are ignored. Use line mode or command mode for this purpose.
A reply of <CR> will leave the text unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new text to be inserted into the CH - for instance
IPATCH> / "This is a new text"<CR>
--------------------------------------------------------------------------------
Command mode
/ TEXT "text"
Replaces the text for the entry with the specified string. If the string
is longer than that already in the file, it will be truncated. If the string
is shorted than that already in the file, it will be padded with spaces
on the right.
--------------------------------------------------------------------------------
CP - Control points entry
address: CP
--------------------------------------------------------------------------------
DESCRIPTION
The CP entry occurs once for each section. It defines the control points for the section, in both original (input) and destination (output) space.
--------------------------------------------------------------------------------
SEARCHING
CP
It is not possible to modify the search by the CP contents.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
Prompt mode is not supported for the CP entry.
--------------------------------------------------------------------------------
Line mode
Line mode is not supported for the CP entry.
--------------------------------------------------------------------------------
Command mode
/ BOTH
The user is prompted for replacement values for each of the original
control points (the 'left hand side' control points), and then for replacement
values for the target control points (the 'right hand side' control points).
A response of <CR> to a prompt tells the program to retain the original
value.
/ REPEAT
If the previous CP edit operation was /ROTATE or /TARGET then it will
be repeated on the current CP entry. Care should be taken not to
unintentionally repeat the /ROTATE command on the same CP entry.
/ ROTATE corner
The control points (both original and target) are rotated so that the
named corner is at the north-west position. The corners (in standard Laser-Scan
order) are NW,SW,SE,NE.
/ TARGET
The user is prompted for replacement values for each of the target
control points (the 'right hand side' control points).
A response of <CR> to a prompt tells the program to retain the original
value.
--------------------------------------------------------------------------------
CS - Character size entry
address: CS height spacing
--------------------------------------------------------------------------------
DESCRIPTION
This entry is obsolete, and should not be used in new IFF files.
--------------------------------------------------------------------------------
SEARCHING
CS [values required]
If the search is to be qualified by the contents of the CS, then the relevant values may be specified. Any values not required may be wildcarded if necessary.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompts will be made:
Height:
Spacing
Note that a reply of <CR> will leave the relevant value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new values to be inserted into the CS. Wildcards may be used as placeholders - thus
IPATCH> / 2 4<CR>
will change both the height and the spacing, but
IPATCH> / * 8<CR>
changes only the spacing.
--------------------------------------------------------------------------------
Command mode
Command mode is not supported for the CS entry.
--------------------------------------------------------------------------------
EF - End of feature entry
address: EF
--------------------------------------------------------------------------------
DESCRIPTION
The EF entry flags the end of a feature, and balances the NF entry at the start of the feature.
--------------------------------------------------------------------------------
SEARCHING
EF
The EF entry does not have any contents, so has no search modifiers.
--------------------------------------------------------------------------------
EDITING
It is not possible to edit the EF entry.
--------------------------------------------------------------------------------
EJ - End of job (data) entry
address: EJ
--------------------------------------------------------------------------------
DESCRIPTION
The EJ entry should always be the last entry in the IFF file. It signifies the end of data, and is used to provide a tidy end to the file, rather than requiring programs to detect the end-of-file explicitly.
--------------------------------------------------------------------------------
SEARCHING
EJ
The EJ entry does not have any contents, so has no search modifiers.
--------------------------------------------------------------------------------
EDITING
It is not possible to edit the EJ entry.
--------------------------------------------------------------------------------
EM - End of map entry
address: EM
--------------------------------------------------------------------------------
DESCRIPTION
The EM entry is the last entry of a map or sheet, and flags its end. It should be the last entry before the EJ entry.
Historically, IFF files were permitted to contain several maps, and the EM entry was then required to mark the end of each.
--------------------------------------------------------------------------------
SEARCHING
EM
The EM entry does not have any contents, so has no search modifiers.
--------------------------------------------------------------------------------
EDITING
It is not possible to edit the EM entry.
--------------------------------------------------------------------------------
EO - End of layer (overlay) entry
address: EO
--------------------------------------------------------------------------------
DESCRIPTION
The EO entry flags the end of a layer, and balances the matching NO entry at the start of the layer. That NO entry should contain a pointer field which holds the address of this EO - this allows fast chaining through a file when particular layers are being ignored.
Note that some entries are legal between an EO and an NO - particularly the new section entries (NS,CC,CP) and also the (obsolete) CH entry.
--------------------------------------------------------------------------------
SEARCHING
EO
The EO entry does not have any contents, so has no search modifiers.
--------------------------------------------------------------------------------
EDITING
It is not possible to edit the EO entry.
--------------------------------------------------------------------------------
FS - Feature status entry
address: FS fc status pc/text user-word
--------------------------------------------------------------------------------
DESCRIPTION
The FS entry contains data which describes the feature containing it. It should be the first entry after the NF entry.
The FS entry includes the feature code in word 1, which is the primary descriptive code for a feature. The second word contains flag data used by Laseraid and its post-processing programs. The third word states whether this feature is text, symbol or line, and also holds either a process code or a description of the type of text. The fourth word is reserved for use by users, although beware that not all processing programs will preserve this word from input to output.
--------------------------------------------------------------------------------
SEARCHING
FS [values required]
If the search is to be qualified by the contents of the FS, then the relevant values may be specified. Any values not required may be wildcarded if necessary.
See also the TEXT, SYMBOL and LINE commands, which can be used to search for an FS entry with the relevant bit set in word 3.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompts will be made:
FC:
status flags (hex):
text/symbol/PC word (hex):
user dependent word (hex):
A reply of <CR> will leave the relevant value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new values to be inserted into the FS. Wildcards may be used as placeholders - for instance
IPATCH> / 2<CR>
will change the feature code, and
IPATCH> / * * 8012 1234<CR>
changes the text/symbol/PC word and the user specific word.
--------------------------------------------------------------------------------
Command mode
editing word 1:
/ FC integer
Sets the feature code to an integer in the range 0-32767
editing word 2:
/ STATUS hex-value
Sets the whole of word 2 to the given value.
The individual bits of the status word may be set to 0 or 1 using the following commands. Consult the LAPROCESS documentation for the meaning of the bits.
/ CLOSED bit
/ NOTEDGE bit
/ REVERSE bit
/ TWOPART bit
/ PAINTOUT bit
/ SQUARE bit
/ INVERSE bit
/ SUPPRESS bit
editing word 3:
/ TEXT
Sets the text bit, clears the symbol bit - the feature is thus flagged
as a text.
/ SYMBOL
Sets the symbol bit, clears the text bit - the feature is thus flagged
as a symbol.
/ LINE
Clears both the text and symbol bits - the feature is thus flagged
as a linear feature.
/ POSITION integer
Sets the text position to a value in the range 0-8. The number encodes
the point at which the text's position was digitised, relative to a rectangle
enclosing the text. This command is only allowed if the text bit is set.
/ TYPE_STYLE integer
Sets the type style to a value in the range 0-3. This command is only
allowed if the text bit is set.
/ CATEGORY integer
Sets the text's name category to a value in the range 0-63. This command
is only allowed if the text bit is set.
/ PC integer
Sets the process code. This command is only allowed if the text bit
is not set.
editing any word:
/ WORD word hex-value
Sets the the specified word to the given hexadecimal value.
--------------------------------------------------------------------------------
HI - History entry
address: HI
--------------------------------------------------------------------------------
DESCRIPTION
The HI record contains a history of which programs have been run on the current data, when they were run, and whether they succeeded. It thus provides a history of how the current file was produced, which can be very useful in trying to track down problems.
The HI entry occurs once at the beginning of the file, after the RA entry.
--------------------------------------------------------------------------------
SEARCHING
HI
It is not possible to modify the search by the HI contents.
--------------------------------------------------------------------------------
EDITING
It is not possible to edit the HI entry. The entry is intended as a record of a file's lifetime, so editing it to change the record of that lifetime is not allowed.
--------------------------------------------------------------------------------
JB - Junction block entry
address: JB
--------------------------------------------------------------------------------
DESCRIPTION
The JB entry defines a series of junctions.
Within each sector of the IFF file, a chain of JB entries is maintained to hold the details of all junctions within that sector.
Each JB entry contains the number of the sector that it is in, a pointer to the next JB entry in this JB chain, and details of each junction.
For each junction, the JB contains
See also the JP (Junction Pointer) and SH (Sector Header) entries.
--------------------------------------------------------------------------------
SEARCHING
JB
It is not currently possible to modify the search by the JB contents.
--------------------------------------------------------------------------------
EDITING
Editing of junction entries is not currently supported.
--------------------------------------------------------------------------------
JP - Junction pointer entry
address: JP
--------------------------------------------------------------------------------
DESCRIPTION
The JP entry is a pointer back to a JB entry. A JP entry is inserted before or after (as appropriate) each ST that starts or ends at a junction.
The point in the ST corresponding to the junction is either the first (in which case the JP occurs before the ST) or the last (the JP occurs after the ST).
Each JP entry contains the address of the relevant JB entry, and the sequence number of the junction within that JB.
--------------------------------------------------------------------------------
SEARCHING
JP
It is not currently possible to modify the search by the JP contents.
--------------------------------------------------------------------------------
EDITING
Editing of junction entries is not currently supported.
--------------------------------------------------------------------------------
MD - Map descriptor entry
address: MD version size
--------------------------------------------------------------------------------
DESCRIPTION
The MD entry contains data describing the origin, projection and coordinate system of the IFF file. It occurs once at the beginning of the file, after the MH entry.
An unset map descriptor has its first word set to -1 (or FFFF in hex).
--------------------------------------------------------------------------------
SEARCHING
MD
It is not possible to modify the search by the MD contents.
--------------------------------------------------------------------------------
EDITING
It is not possible to edit the MD entry using IPATCH. The map descriptor describes the current origin, projection and units of the IFF file, and a change to the map descriptor must thus be accompanied by the appropriate changes to all point data in the file. The IMP utility ITRANS is provided to perform such transformations, and it will modify the map descriptor correctly.
--------------------------------------------------------------------------------
MH - Map header entry
address: MH customer size
--------------------------------------------------------------------------------
DESCRIPTION
The MH entry contains customer specific data about the IFF file. The customer number determines which format of data is present.
--------------------------------------------------------------------------------
SEARCHING
MH
It is not possible to modify the search by the MH contents.
--------------------------------------------------------------------------------
EDITING
IPATCH supports editing of the map header's customer number. For editing the actual value within the map header itself, use the relevant customer specific map header editing program - that is:
0 map header is unset
1 MCE specific map header - edit with MCEHED
2 OSGB specific type 2 map header - edit with OMHED
3 OSGB specific type 3 (OSTF) map header - edit with OS editor
4 OSGB specific type 4 (CITF) map header - edit with OS editor
MCEHED is a utility supplied with the customer-specific package MCE. OSMHED is a utility in the IFFOSTF module of the CONVERT package.
Type 3 and 4 OS map headers are intended for use by Ordnance Survey (Great Britain) only and will be edited using OS developed header editors.
The map header occurs once in the file, after the HI entry. Note that historically IFF files could contain more than one map, and such maps each started with a separate map header, and ended with an EM entry.
--------------------------------------------------------------------------------
Prompt mode
Prompt mode is not supported for the MH entry.
--------------------------------------------------------------------------------
Line mode
Line mode is not supported for the MH entry.
--------------------------------------------------------------------------------
Command mode
/ CUSTOMER integer
Changes the customer number in the descriptor of the map header to
be the given integer. Note that this will change the interpretation of any
data in the map header by utility programs.
--------------------------------------------------------------------------------
NF - New feature entry
address: NF fsn isn
--------------------------------------------------------------------------------
DESCRIPTION
The NF entry starts a new feature. It contains two identifying numbers, both in the range 0-65535.
The feature serial number (FSN) is generally used as the 'name' of the feature. There are three main conventions about when or whether FSNs are unique:
Note that historically FSN 0 was considered special by many programs. It was used to flag an empty feature used as a place-holder in the IFF file, generally to hold TCs which applied to the entire layer. Thus it was possible to come across multiple FSN 0s even when FSNs are notionally unique within a file. In modern IFF files, the trailing TCs are no longer used.
The internal sequence number (ISN) is unique within the IFF file, and can be used as a single unique identifier for a feature. It may, but need not, be the same as the FSN. The ISN is generally assigned starting at 1 and incremented as a file is digitised.
--------------------------------------------------------------------------------
SEARCHING
NF [values required]
If the search is to be qualified by the contents of the NF, then the relevant values may be specified. Any values not required may be wildcarded if necessary.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompts will be made:
FSN:
ISN:
A reply of <CR> will leave the relevant value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new values to be inserted into the NF. A wildcard may be used as a placeholder - for instance
IPATCH> / 2 2<CR>
will change the feature serial number and the internal sequence number, but
IPATCH> / * 80<CR>
just changes the internal sequence number
--------------------------------------------------------------------------------
Command mode
/ FSN integer
Sets the feature serial number. The value may be in the range 0-65535.
/ ISN integer
Sets the internal sequence number. The value may be in the range 0-65535.
Note that many programs use the internal sequence number as a unique identifier
for features, and therefore care should be taken when editing this field.
--------------------------------------------------------------------------------
NO - New layer (overlay) entry
address: NO layer status EO-address
--------------------------------------------------------------------------------
DESCRIPTION
The NO entry starts a layer. It contains the number identifying this layer, and a status word. It may also contain the address of the corresponding EO entry.
IFF files are generally divided up into multiple layers, where data of a common sort or source is grouped in the same layer. Note that a layer may be split into several parts, identified by all having the same layer number.
Layer 0 is conventionally reserved for 'non-essential' data - for instance a grid, symbols at control points, or MCE DFAD accuracy polygons. The assumption is that the IFF file would not be significantly degraded in terms of information content by throwing layer 0 away. If layer 0 is present, some programs expect it to be the first layer in the file.
Historically, layers 11 and 32 were also used for the same sort of purpose as layer 0.
The status flag is not currently used, and should be set to zero.
If the EO pointer field is present, it should contain the hexadecimal address of the EO entry which matches this NO. This is used by programs which must ignore layers to 'jump' from the NO to the EO. Thus take great care when editing the EO pointer field, as an incorrect value could cause a processing program to abort.
--------------------------------------------------------------------------------
SEARCHING
NO [values required]
If the search is to be qualified by the contents of the NO, then the relevant values may be specified. Any values not required may be wildcarded if necessary.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompts will be made:
Layer:
Status:
and if the NO entry contains an EO address field, then
EO pointer:
A reply of <CR> will leave the relevant value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new values to be inserted into the NO. Wildcards may be used as placeholders - for instance
IPATCH> / 2<CR>
will change the layer, and
IPATCH> / 5 * 8013<CR>
changes the layer and the EO pointer field.
--------------------------------------------------------------------------------
Command mode
/ LAYER integer
Sets the layer (overlay) to a new value. The number is in the range
0-32767.
/ STATUS hex-value
Sets the second word of the NO entry. Note that this entry is not
currently used or transferred by Laser-Scan programs.
The value is conventionally zero.
/ POINTER hex-address
Sets the pointer to the next EO entry, which terminates this layer.
This field can only be changed if the NO entry contained it already - older IFF
files contain NO entries without the EO pointer field.
--------------------------------------------------------------------------------
NS - New section entry
address: NS "text"
--------------------------------------------------------------------------------
DESCRIPTION
The NS entry is used to flag the start of a new digitising session. The text written in it conventionally contains the initials of the digitising operator, the program being used and the date and time at which digitising was started.
The entry is necessary because IFF files are often digitised in several sessions. The NS entry will be followed by a CC and a CP entry, defining the transformations and control points applying from now on. Post-processing programs used to transform all data into the same coordinate system will normally also reduce the whole IFF file down to one section.
The NS entry will follow either an MD entry (for the first section) or an EO entry (for later sections).
The maximum number of characters in the text is 255, but note that IPATCH cannot itself change the length of the text string.
--------------------------------------------------------------------------------
SEARCHING
NS ["text"]
If a specific text is being searched for, IPATCH will stop at the first NS entry which contains the requested text as a sub-string. Note that the case of the letters must match exactly. For instance, NS "UP _& down" would match the NS
NS "This text goes UP _& down"
--------------------------------------------------------------------------------
EDITING
If a new text is specified, then if it is too long IPATCH will truncate it before using it, and if it is too short IPATCH will pad it to the right with spaces. For instance:
00001243: NS "This text belongs to an NS entry"
IPATCH> / TEXT "This text has been changed to a longer string"<CR>
%LSLLIB-E-STRTOOLONG, string is too long - truncated
00001243: NS "This text has been changed to a "
IPATCH> / TEXT "This text is too short"<CR>
00001243: NS "This text is too short "
--------------------------------------------------------------------------------
Prompt mode
The following prompt will be made:
Text:
If a text is specified, it should not be enclosed in quotation marks. Note that this means that it is not possible to define a text of all spaces in prompt mode, as the 'trailing' spaces on a response are ignored. Use line mode or command mode for this purpose.
A reply of <CR> will leave the text unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new text to be inserted into the NS - for instance
IPATCH> / "This is a new text"<CR>
--------------------------------------------------------------------------------
Command mode
/ TEXT "text"
Replaces the text for the entry with the specified string. If the string
is longer than that already in the file, it will be truncated. If the string
is shorter than that already in the file, it will be padded with spaces
on the right.
--------------------------------------------------------------------------------
RA - Range entry
address: RA minX maxX minY maxY
--------------------------------------------------------------------------------
DESCRIPTION
The RA entry records the maximum extent of the data in the IFF file. It is used by plot and display programs to work out whether to clip the file, and what scale it can be displayed at.
The range entry is always the first entry in the IFF file.
--------------------------------------------------------------------------------
SEARCHING
RA [values required]
If the search is to be qualified by the contents of the RA, then the relevant values may be specified. Any values not required may be wildcarded if necessary.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompts will be made:
Min X:
Max X:
Min Y:
Max Y:
A reply of <CR> will leave the relevant value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new values to be inserted into the RA. Wildcards may be used as placeholders - thus
IPATCH> / 200.0 0.0 300.0 0.0<CR>
will change the entire RA, but
IPATCH> / * 80.0<CR>
just changes the minimum X value.
--------------------------------------------------------------------------------
Command mode
/ MAXX real-value
Changes the maximum X value in the range entry to the specified real.
/ MINX real-value
Changes the minimum X value in the range entry to the specified real.
/ MAXY real-value
Changes the maximum Y value in the range entry to the specified real.
/ MINY real-value
Changes the minimum Y value in the range entry to the specified real.
--------------------------------------------------------------------------------
RO - Rotation entry
address: RO angle
--------------------------------------------------------------------------------
DESCRIPTION
The RO entry defines the angle at which an oriented symbol or a text is to be drawn. The angle is in radians, measured counterclockwise from the positive horizontal axis.
--------------------------------------------------------------------------------
SEARCHING
RO [angle]
If the search is to be qualified by the contents of the RO, then the angle may be specified.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompt will be made:
Angle:
A reply of <CR> will leave the angle unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new angle to be inserted into the RO - for instance
IPATCH> / 2.0<CR>
--------------------------------------------------------------------------------
Command mode
/ ANGLE radians
Changes the angle stored in the RO entry to the given number of real
radians.
--------------------------------------------------------------------------------
SH - Sector header entry
address: SH
--------------------------------------------------------------------------------
DESCRIPTION
The SH entry contains the addresses of the start of the JB chain for each sector in the IFF file.
When an IFF file contains junction structure, the map is divided into rectangular sectors. A chain of JB entries is maintained for each sector, containing the junction information. The SH entry provides the address of the start of each of these chains.
--------------------------------------------------------------------------------
SEARCHING
SH
It is not currently possible to modify the search by the SH contents.
--------------------------------------------------------------------------------
EDITING
Editing of junction entries is not currently supported.
--------------------------------------------------------------------------------
SL - Select symbol library entry
address: SL symbol-library
--------------------------------------------------------------------------------
DESCRIPTION
This entry is obsolete, and should not be used in new IFF files.
--------------------------------------------------------------------------------
SEARCHING
SL [symbol-library]
If the search is to be qualified by the contents of the SL, then the symbol library may be specified.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompt will be made:
Integer:
A reply of <CR> will leave the value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new value to be inserted into the SL - for instance
IPATCH> / 2<CR>
--------------------------------------------------------------------------------
Command mode
Command mode is not supported for the SL entry.
--------------------------------------------------------------------------------
SS - Symbol select entry
address: SS symbol
--------------------------------------------------------------------------------
DESCRIPTION
This entry is obsolete, and should not be used in new IFF files.
--------------------------------------------------------------------------------
SEARCHING
SS [values required]
If the search is to be qualified by the contents of the SS, then the symbol may be specified.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompt will be made:
Integer:
A reply of <CR> will leave the value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new value to be inserted into the SS - for instance
IPATCH> / 2<CR>
--------------------------------------------------------------------------------
Command mode
Command mode is not supported for the SS entry.
--------------------------------------------------------------------------------
ST - 2-dimensional point string entry
address: ST npts pen
--------------------------------------------------------------------------------
DESCRIPTION
The ST entry contains the point data defining the feature. There may be more than one ST entry in a feature.
Note that the pen flag is always considered to be 0 for the first ST in a feature - that is the pen is always kept up to move to the start of a new feature.
--------------------------------------------------------------------------------
SEARCHING
ST [values required]
If the search is to be qualified by the number of points or pen code of the ST, then the relevant values may be specified. Any values not required may be wildcarded if necessary.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
Prompt mode is not supported for the ST entry.
--------------------------------------------------------------------------------
Line mode
Line mode is not supported for the ST entry.
--------------------------------------------------------------------------------
Command mode
/ CHANGE from to
Change the specified points. If only one number is given,
then that one point will be changed. IPATCH will prompt for the new values. If
there is only one point, then no argument is necessary.
/ DELETE from to
Deletes the specified points. If only one number is given,
then that one point will be deleted. If there is only one point, then no
argument is needed.
/ PEN_POSITION hex-value
Specifies a new value for the pen up/down field of the ST. Note that
IFFLIB will truncate this value to 3 bits (ie the range 0-7). Currently
only the bottom bit (bit 0) is significant, and is used to indicate pen
up or down.
--------------------------------------------------------------------------------
TC - Transmitted comment entry
address: TC "text"
--------------------------------------------------------------------------------
DESCRIPTION
A TC entry is used to label the following feature. It is used by MCE to hold specialised plotting instructions.
Interpretation of a TC requires the IFF file to be regarded as a sequential file, since the TC applies either to the following feature, or to the layer as a whole (in which case it appears after the last feature - in old format IFF files before a special empty feature with FSN 0).
The TC entry is not allowed inside a feature, but must be inside a layer.
The maximum number of characters in a TC is 255, but note that IPATCH cannot itself change the length of that text.
--------------------------------------------------------------------------------
SEARCHING
TC ["text"]
If a specific text is being searched for, IPATCH will stop at the first TC entry which contains the requested text as a sub-string. Note that the case of the letters must match exactly. For instance, TC "UP _& down" would match the TC
TC "This text goes UP _& down"
--------------------------------------------------------------------------------
EDITING
If a new text is specified, then if it is too long IPATCH will truncate it before using it, and if it is too short IPATCH will pad it to the right with spaces. For instance:
00001243: TC "This text belongs to a TC entry"
IPATCH> / TEXT "This text has been changed to a longer string"<CR>
%LSLLIB-E-STRTOOLONG, string is too long - truncated
00001243: TC "This text has been changed to a"
IPATCH> / TEXT "This text is too short"<CR>
00001243: TC "This text is too short "
--------------------------------------------------------------------------------
Prompt mode
The following prompt will be made:
Text:
If a text is specified, it should not be enclosed in quotation marks. Note that this means that it is not possible to define a text of all spaces in prompt mode, as the 'trailing' spaces on a response are ignored. Use line mode or command mode for this purpose.
A reply of <CR> will leave the text unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new text to be inserted into the TC - for instance
IPATCH> / "This is a new text"<CR>
--------------------------------------------------------------------------------
Command mode
/ TEXT "text"
Replaces the text for the entry with the specified string. If the string
is longer than that already in the file, it will be truncated. If the string
is shorted than that already in the file, it will be padded with spaces
on the right.
--------------------------------------------------------------------------------
TH - Text height / line thickness entry
address: TH integer
--------------------------------------------------------------------------------
DESCRIPTION
The TH entry is used
--------------------------------------------------------------------------------
SEARCHING
TH [height/thickness]
If the search is to be qualified by the contents of the TH, then the relevant value may be specified.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompt will be made:
Thickness/height:
A reply of <CR> will leave the value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new value to be inserted into the TH - for instance
IPATCH> / 20<CR>
--------------------------------------------------------------------------------
Command mode
/ HEIGHT integer
Changes the value stored in the TH entry to the given integer.
/ THICKNESS integer
Changes the value stored in the TH entry to the given integer.
--------------------------------------------------------------------------------
TS - Text status entry
address: TS tcc reserved textcode reserved
--------------------------------------------------------------------------------
DESCRIPTION
The TS entry introduces a text component, and contains data which describes the text component following it.
Text features may contain one text string, with associated location and descriptive data, or they may be composite - that is composed of several sub-texts or text components, which may be manipulated independently or as a single entity.
Each text component starts with a TS entry, and ends with the next TS entry, or the final EF of the feature. The first TS entry occurs immediately after the FS entry and any AC entries. Text components may not include FS or AC entries, but may contain any other entries that are legal within a normal text feature.
Word 1 of the TS entry is the text component code (TCC), which is the primary descriptive code for a text component - it is effectively the feature code for this component of the composite text, and is used in the same manner.
Word 3 of the TS entry is the text word, and is identical in form to word 3 of a text's FS entry - it holds a description of the type of text component. Note that the top two bits (what would be the text/symbol bits in an FS) should always be set to '10' binary, as they would in an FS entry. These bits are referred to as redundancy bits, since they are not strictly necessary.
The second and fourth words are reserved for later definition, and should always be zero.
--------------------------------------------------------------------------------
SEARCHING
TS [values required]
If the search is to be qualified by the contents of the TS, then the relevant values may be specified. Any values not required may be wildcarded if necessary.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
The following prompts will be made:
TCC :
word 2 (hex):
text word (hex):
word 4 (hex):
A reply of <CR> will leave the relevant value unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new values to be inserted into the TS. Wildcards may be used as placeholders - for instance
IPATCH> / 2<CR>
will change the text component code, and
IPATCH> / * * 8012<CR>
changes the text word.
--------------------------------------------------------------------------------
Command mode
editing word 1:
/ TCC integer
Sets the text component code to an integer in the range 0-32767
editing word 3:
/ POSITION integer
Sets the text position to a value in the range 0-8. The number encodes
the point at which the text's position was digitised, relative to a rectangle
enclosing the text.
/ TYPE_STYLE integer
Sets the type style to a value in the range 0-3.
/ CATEGORY integer
Sets the text's name category to a value in the range 0-63.
editing any word:
/ WORD word hex-value
Sets the the specified word to the given hexadecimal value.
--------------------------------------------------------------------------------
TX - Text entry
address: TX "text"
--------------------------------------------------------------------------------
DESCRIPTION
The TX entry holds the text for a text feature. It should be the last entry before the EF entry.
The maximum number of characters in a TX is 255, but note that IPATCH cannot itself change the length of a text.
--------------------------------------------------------------------------------
SEARCHING
If a specific text is being searched for, IPATCH will stop at the first TX entry which contains the requested text as a sub-string. Note that the case of the letters must match exactly. For instance, TX "UP _& down" would match the TX
TX "This text goes UP _& down"
--------------------------------------------------------------------------------
EDITING
If a new text is specified, then if it is too long IPATCH will truncate it before using it, and if it is too short IPATCH will pad it to the right with spaces. For instance:
00001243: TX "This text belongs to a TX entry"
IPATCH> / TEXT "This text has been changed to a longer string"<CR>
%LSLLIB-E-STRTOOLONG, string is too long - truncated
00001243: TX "This text has been changed to a"
IPATCH> / TEXT "This text is too short"<CR>
00001243: TX "This text is too short "
--------------------------------------------------------------------------------
Prompt mode
The following prompt will be made:
Text:
If a text is specified, it should not be enclosed in quotation marks. Note that this means that it is not possible to define a text of all spaces in prompt mode, as the 'trailing' spaces on a response are ignored. Use line mode or command mode for this purpose.
A reply of <CR> will leave the text unaltered.
--------------------------------------------------------------------------------
Line mode
The / may also be followed immediately by the new text to be inserted into the TX - for instance
IPATCH> / "This is a new text"<CR>
--------------------------------------------------------------------------------
Command mode
/ TEXT "text"
Replaces the text for the entry with the specified string. If the string
is longer than that already in the file, it will be truncated. If the string
is shorted than that already in the file, it will be padded with spaces
on the right.
--------------------------------------------------------------------------------
VO - Void entry
address: VO size
--------------------------------------------------------------------------------
DESCRIPTION
The VO entry is used to replace a series of deleted IFF entries. Since it is not possible to 'compress' an IFF file, a deleted entry or series of entries is overwritten with a void area or the requisite size.
--------------------------------------------------------------------------------
SEARCHING
VO [size]
The search may optionally be qualified by the size of the VO entry required, as it would be reported by IPATCH.
--------------------------------------------------------------------------------
EDITING
It is not possible to edit a VO entry.
--------------------------------------------------------------------------------
XX - Invalid entry
address: XX size
--------------------------------------------------------------------------------
DESCRIPTION
IFFLIB returns the entry mnemonic XX when it has found an entry that it cannot identify as a valid IFF entry. This generally occurs because either the IFF file is corrupt in some manner, or because the FIND command has been used to position to an address which does not appear to contain an entry.
--------------------------------------------------------------------------------
SEARCHING
It is not possible to search for an XX entry.
--------------------------------------------------------------------------------
EDITING
It is not possible to edit an XX entry.
--------------------------------------------------------------------------------
ZS - 3-dimensional point string entry
address: ZS npts pen
--------------------------------------------------------------------------------
DESCRIPTION
The ZS entry contains the three-dimensional point data defining the feature. There may be more than one ZS entry in a feature:
Note that the pen flag is always considered to be 0 for the first ZS in a feature - that is the pen is always kept up to move to the start of a new feature.
--------------------------------------------------------------------------------
SEARCHING
ZS [values required]
If the search is to be qualified by the number of points or pen code of the ZS, then the relevant values may be specified. Any values not required may be wildcarded if necessary.
--------------------------------------------------------------------------------
EDITING
--------------------------------------------------------------------------------
Prompt mode
Prompt mode is not supported for the ZS entry.
--------------------------------------------------------------------------------
Line mode
Line mode is not supported for the ZS entry.
--------------------------------------------------------------------------------
Command mode
/ CHANGE from to
Change the specified points. If only one number is given,
then that one point will be changed. IPATCH will prompt for the new values. If
there is only one point, then no argument is necessary.
/ DELETE from to
Deletes the specified points. If only one number is given,
then that one point will be deleted. If there is only one point, then no
argument is needed.
/ PEN_POSITION hex-value
Specifies a new value for the pen up/down field of the ZS. Note that
IFFLIB will truncate this value to 3 bits (ie the range 0-7). Currently
only the bottom bit (bit 0) is significant, and is used to indicate pen
up or down.
--------------------------------------------------------------------------------
$ ipatch winnie_the_pooh/write/nostatus
00000000: Start of file
IPATCH> NEXT<CR>
00000001: RA -225.114 9241.125 -0.145 9081.765
IPATCH> /MINX 200.01<CR>
00000001: RA 200.010 9241.125 -0.145 9081.765
IPATCH> TYPE 1<CR>
0000000A: HI
History entry
- size of entry = 4001 words
Date Time Username Program Function Elapsed CPU STATUS
18-JUL-1986 17:16 TIM IFROMTEXT Create 00:01:41 00:00:47 00000001
25-JUL-1986 17:28 TONY IPATCH Patch 00:09:45 00:00:11 00000001
IPATCH> NEXT 2<CR>
0000110D: MD 2 200
IPATCH> /<CR>
%IPATCH-W-NOEDIT, MD entries cannot be edited
0000110D: MD 2 200
IPATCH> EXPLAIN<CR>
0000110D: MD 2 200
Map descriptor entry
- size is 200 words
- map descriptor version 2
- Local origin: 0.0000, 90.0000
- Map scale: 1000.0000
- Projection: 100 (Geographic (ie Lat and Long))
- Spheroid: 0 (Clarke 1866)
- Units: 5 (radians)
* use the TYPE command to type the contents of the map descriptor in *
* hexadecimal, or use the ITRANS utility to edit the map descriptor *
IPATCH> NEXT<CR>
000011D6: NS "created by IFROMTEXT at 15:39:49 on 30-OCT-85"
IPATCH> /<CR>
Text: This NS has been edited<CR>
000011D6: NS "This NS has been edited "
IPATCH> /TEXT "Fred"<CR>
000011D6: NS "Fred "
IPATCH> NEXT<CR>
000011EC: CC
IPATCH> /<CR>
%IPATCH-W-EDITCC, use the form 'letter' 'value' to change CC entries
000011EC: CC
IPATCH> EXPLAIN<CR>
000011EC: CC
Cubic coefficients entry
- size of entry = 40 words
- matrix of the form:
a = .000000E 000 k = .000000E 000
b = .100000E 001 l = .000000E 000
c = .000000E 000 m = .100000E 001
d = .000000E 000 n = .000000E 000
e = .000000E 000 o = .000000E 000
f = .000000E 000 p = .000000E 000
g = .000000E 000 q = .000000E 000
h = .000000E 000 r = .000000E 000
i = .000000E 000 s = .000000E 000
j = .000000E 000 t = .000000E 000
IPATCH> /A 10.0<CR>
000011EC: CC
IPATCH> TYPE<CR>
000011EC: CC
Cubic coefficients entry
- size of entry = 40 words
- matrix of the form:
a = .100000E 002 k = .000000E 000
b = .100000E 001 l = .000000E 000
c = .000000E 000 m = .100000E 001
d = .000000E 000 n = .000000E 000
e = .000000E 000 o = .000000E 000
f = .000000E 000 p = .000000E 000
g = .000000E 000 q = .000000E 000
h = .000000E 000 r = .000000E 000
i = .000000E 000 s = .000000E 000
j = .000000E 000 t = .000000E 000
IPATCH> NEXT<CR>
00001215: CP
IPATCH> /<CR>
%IPATCH-W-CPEDIT, to edit a CP use /TARGET, /BOTH, /ROTATE or /REPEAT
00001215: CP
IPATCH> EXPLAIN<CR>
00001215: CP
Control point entry
- size of entry = 32 words
corner original target
NW 400.000, 0.000 400.000, 0.000
SW 400.000, 400.000 400.000, 400.000
SE 0.000, 400.000 0.000, 400.000
NE 0.000, 0.000 0.000, 0.000
IPATCH> /ROTATE SE<CR>
00001215: CP
IPATCH> TYPE<CR>
00001215: CP
Control point entry
- size of entry = 32 words
corner original target
NW 0.000, 400.000 0.000, 400.000
SW 0.000, 0.000 0.000, 0.000
SE 400.000, 0.000 400.000, 0.000
NE 400.000, 400.000 400.000, 400.000
IPATCH> /TARGET<CR>
Now give a new value for each of the target control points
NW corner (was 0.0000, 400.0000) : 800, 0 <CR>
SW corner (was 0.0000, 0.0000) : 800, 800<CR>
SE corner (was 400.0000, 0.0000) : 0, 800<CR>
NE corner (was 400.0000, 400.0000) : 0, 0 <CR>
IPATCH> TYPE<CR>
00001215: CP
Control point entry
- size of entry = 32 words
corner original target
NW 0.000, 400.000 800.000, 0.000
SW 0.000, 0.000 800.000, 800.000
SE 400.000, 0.000 0.000, 800.000
NE 400.000, 400.000 0.000, 0.000
IPATCH> NEXT<CR>
00001236: NO 1 0000 00FFFFFF
IPATCH> EO<CR>
00001714: EO
IPATCH> FIND 1236<CR>
00001236: NO 1 0000 00FFFFFF
IPATCH> / * * 1714<CR>
00001236: NO 1 0000 00001714
IPATCH> NEXT<CR>
0000123B: NF 170 1
IPATCH> /<CR>
FSN: 171<CR>
ISN: 171<CR>
0000123B: NF 171 171
IPATCH> NEXT<CR>
0000123E: FS 123 0001 4000 0000
IPATCH> /TEXT<CR>
0000123E: FS 123 0001 8000 0000
IPATCH> /CATEGORY 4<CR>
0000123E: FS 123 0001 8100 0000
IPATCH> /POSITION 3<CR>
0000123E: FS 123 0001 8103 0000
IPATCH> /STATUS 0<CR>
0000123E: FS 123 0000 8103 0000
IPATCH> /WORD 4 512<CR>
0000123E: FS 123 0000 8103 0512
IPATCH> NEXT<CR>
00001243: AC Height (3) = 67.9 "This text belongs to a type 3 AC.."
IPATCH> /TYPE 2<CR>
%IPATCH-I-ACNOWINT, value has been converted from real to integer
00001243: AC Contour (2) = 68 "This text belongs to a type 3 AC.."
IPATCH> /TYPE 3<CR>
%IPATCH-I-ACNOWREAL, value has been converted from integer to real
00001243: AC Height (3) = 68.0 "This text belongs to a type 3 AC.."
IPATCH> NEXT<CR>
00001258: TH 30
IPATCH> / 25<CR>
00001258: TH 25
IPATCH> NEXT<CR>
0000125A: ST 4 0000
IPATCH> TYPE<CR>
0000125A: ST 4 0000
1: -0.5344, 14.8308
2: 0.8506, 16.8394
3: 2.2290, 18.8454
4: 3.4641, 23.9534
IPATCH> NEXT 2<CR>
0000126B: EF
IPATCH> /<CR>
%IPATCH-W-NOEDIT, EF entries cannot be edited
0000126B: EF
IPATCH> NEXT<CR>
0000126C: NF 170 2
IPATCH> RO<CR>
00001F38: RO 0.000
IPATCH> /ANGLE 0.8<CR>
00001F38: RO 0.800
IPATCH> TO DEGREES 12.0<CR>
0.800 radians is 45.837 degrees
IPATCH> NEXT 3<CR>
00001F56: TC "This TC is outside a feature.."
IPATCH> NEXT<CR>
00001F66: NF 330 44
IPATCH> PREVIOUS<CR>
Scanning file to establish where we are
00001F56: TC ""This TC is outside a feature""
IPATCH> /"Hello there"<CR>
00001F56: TC "Hello there "
IPATCH> DISPLAY ON<CR>
%IPATCH-I-DISPLAYON, NEXT will now display intermediate entries
IPATCH> NEXT 15<CR>
00001F66: NF 330 44
00001F69: FS 123 0000 8080 0000
00001F6E: TH 30
00001F70: ST 1 0000
00001F75: EF
00001F76: TC ""This is a pointless line of text .....""
00001F8B: NF 422 45
00001F8E: FS 0 0000 0000 0000
00001F93: ST 4 0000
00001FA4: EF
00001FA5: NF 190 46
00001FA8: FS 5 0000 0000 0000
00001FAD: ST 1 0000
00001FB2: EF
00001FB3: CH ""This text came from a CH entry""
IPATCH> /<CR>
Text: <CR>
00001FB3: CH ""This text came from a CH entry""
IPATCH> /TEXT "fredddy"<CR>
00001FB3: CH "fredddy "
IPATCH> EIT<CR>
%LSLLIB-E-UNEXPCMD, unexpected 'EIT' found instead of command
IPATCH> EXIT<CR>
ELAPSED: 00:05:25.84 CPU: 0:00:05.71 BUFIO: 281 DIRIO: 46 FAULTS: 263
$
--------------------------------------------------------------------------------
These messages provide information on the current state of the program, or follow from a more serious message to help explain it.
ACNOWINT, value has been converted from real to integer
Explanation: The current AC entry or CB fixed attribute has had its type changed. The original type specified a real value, but the new type specifies an integer value. The real value has been converted to an integer.
User action: None.
ACNOWREAL, value has been converted from integer to real
Explanation: The current AC entry or CB fixed attribute has had its type changed. The original type specified an integer value, but the new type specifies a real value. The integer value has been converted to a real.
User action: None.
COMMAND, commands are being read from 'file-spec'
Explanation: Both the /LOG and the /COMMANDS switches have been used in starting IPATCH. This message confirms which file commands will be read from.
User action: None.
DISPLAYOFF, NEXT will now only display the destination entry
Explanation: The DISPLAY OFF command has been given. This message confirms its action.
User action: None.
DISPLAYON, NEXT will now display intermediate entries
Explanation: The DISPLAY ON command has been given. This message confirms its action.
User action: None.
JOURNAL, commands are being journalled to 'file-spec'
Explanation: Both the /LOG and the /JOURNAL switches have been used in starting IPATCH. This message confirms which file commands will be journalled to.
User action: None.
LOOKFOR, when looking for entry 'entry', at address 'hex-address'
Explanation: This message follows a WARNING message reporting some error in positioning back to a known entry within the IFF file. It is intended to provide extra help in diagnosing the error.
User action: As for the WARNING message.
MARKED, current entry now marked
Explanation: The MARK command has been given, and this message confirms that the current entry has been marked successfully.
User action: None.
NOCHANGE, no change made to the entry
Explanation: This message is given after an error has occurred in the routines which prompt for new values for an ST or ZS. It indicates that all changes for that ST or ZS in this sequence of prompts have been thrown away.
User action: As indicated by the original error messages.
NOPTS, no points read in for this entry
Explanation: This message indicates that no points were read in for the current ST, ZS, or CB entry. The message follows the WARNING message MAXPTS.
User action: As for the MAXPTS message.
NOROTATE, no rotation - NW corner is already at the NW
Explanation: An attempt has been made to rotate the current CP entry so that the NW corner is at the NW. The program need not do anything, but points this out in case it was a mistake.
User action: None.
PARTPREV, PREVIOUS will only work over the first part of the file
Explanation: This message follows an error in scanning the NF entries in the IFF file, to allow backwards movement with the PREVIOUS command. The error has been such that the scan has not been extended successfully, so the PREVIOUS command will only be available over part of the file.
User action: As for the preceding WARNING message. In general, report this error to Laser-Scan, together with a copy of the IFF file, and a log of the commands obeyed by IPATCH before the error.
READINGFRT, reading FRT file 'file-spec'
Explanation: This message if output if the /LOG switch has been used, and an FRT file is specified.
User action: None.
READONLY, the IFF file is not open for writing
Explanation: This message if output if the /LOG switch has been used, and the /WRITE switch is absent.
User action: None.
REPORTLSL, please report this problem to Laser-Scan
Explanation: The previous WARNING message reflects a bug or problem in the IPATCH program, and should be reported to Laser-Scan.
User action: Report the error to Laser-Scan.
REPROTATE, repeating rotation to put 'corner' corner at NW
Explanation: This message is output by the CP edit command /REPEAT if the operation being repeated is a /ROTATE command.
User action: None.
REPTARGET, repeating setting of target values
Explanation: This message is output by the CP edit command /REPEAT if the operation being repeated is a /TARGET command.
User action: None.
Scanning file to establish where we are
Explanation: This message (which is not prefixed by the normal %IPATCH-x-mnemonic string) is output before IPATCH starts to scan the file for a PREVIOUS command which is beyond the current NF list. It should be taken as a warning that the program may be occupied for a while, depending upon the size of the file and the distance to be scanned.
User action: Wait.
WRITING, the IFF file is open for WRITE
Explanation: This message if output if the /LOG switch has been used, and the file is opened with the /WRITE switch.
User action: None.
--------------------------------------------------------------------------------
These messages indicate that something has gone wrong, or that the operation requested is not possible.
ACDRANGE, 'value' is outside valid range for 'name' ('code')
valid range is 'value' : 'value'
Explanation: The value entered for an AC or CB attribute value is outside the valid range for the attribute code.
User action: Specify a value within the valid range.
ACNOTEXT, AC does not have a text entry
Explanation: An attempt has been made to edit the text of the current AC entry, but the entry does not contain a text field. The edit is ignored.
User action: If a text must be added to an AC entry, use a program that can add data to an IFF file - for instance LITES2.
ACNOWABSENT, value has been set to absent because of datatype change
Explanation: The current AC entry or CB fixed attribute has had its type changed. The old value is not within the valid range for the new type, so the value has been set to absent.
User action: Unless the absent value is desired, then set a new value appropriate to the new datatype.
BADCORNER, there is no corner 'corner' - it should be NW,SW,SE or NE
Explanation: The corner name used for the CP edit command /ROTATE is not one of the four recognised corners. The command is ignored.
User action: Try again with one of the valid corner names, as listed in the error message.
BADDATE, bad date format "'string'"
Explanation: Dates must be given in the system date format dd-mmm-yyyy.
User action: Specify date correctly.
BADFIND, cannot FIND before 00000001 or after 'end-of-file' - nothing there
Explanation: The FIND command will only move to an address within the IFF file (after the start of file, and up to the end of file). The address given was outside that range. The command is ignored.
User action: Check the address given. Note that it should be a hexadecimal value.
BADNEXT, argument to NEXT must be greater than zero
Explanation: It is not possible to use NEXT to move backwards, or to stay on the same entry. Thus NEXT 0 or NEXT -1 are illegal commands.
User action: Use PREVIOUS to move backwards, ? to show the current entry again, or specify a positive value for the distance to NEXT forwards.
BADPREV, argument to PREVIOUS must be greater than zero
Explanation: It is not possible to use PREVIOUS to move forwards, or to stay on the same entry. Thus PREVIOUS 0 or PREVIOUS -1 are illegal commands.
User action: Use NEXT to move forwards, ? to show the current entry again, or specify a positive value for the distance to PREVIOUS backwards.
BADPRJ, unknown projection code 'integer'
Explanation: The EXPLAIN command is trying to explain the contents of the current MD entry, but it does not recognise the projection code. Either the current version of IPATCH is not up to date with respect to legal values in the MD, or the MD is corrupt.
User action: The utility ITRANS can be used to report on the MD entry more fully, and its documentation lists legal projection codes and their meanings. ITRANS should also be used to repair a corrupt MD entry, although the cause of the error should also be established.
BADREV, unknown revision level 'integer', must be -1, 0, or 1
Explanation: An illegal IFF input revision level has been specified, either by the /REVISION_LEVEL qualifier, or by the REVISION_LEVEL command.
User action: Specify correct revision level.
BADSPH, unknown spheroid code 'integer'
Explanation: The EXPLAIN command is trying to explain the contents of the current MD entry, but it does not recognise the spheroid code. Either the current version of IPATCH is not up to date with respect to legal values in the MD, or the MD is corrupt.
User action: The utility ITRANS can be used to report on the MD entry more fully, and its documentation lists legal spheroid codes and their meanings. ITRANS should also be used to repair a corrupt MD entry, although the cause of the error should also be established.
BADTIME, bad time format "'string'"
Explanation: Times must be given in the system time format hh:mm:ss.cc.
User action: Specify time correctly.
BADTYPE, argument to TYPE must be zero or greater
Explanation: It is not possible to use TYPE to move backwards. Thus TYPE -1 is an illegal command.
User action: Use PREVIOUS to move backwards. Use TYPE or TYPE 0 to type the current entry, or a value larger than zero to type the next several entries.
BADUNT, unknown units code 'integer'
Explanation: The EXPLAIN command is trying to explain the contents of the current MD entry, but it does not recognise the units code. Either the current version of IPATCH is not up to date with respect to legal values in the MD, or the MD is corrupt.
User action: The utility ITRANS can be used to report on the MD entry more fully, and its documentation lists legal units codes and their meanings. ITRANS should also be used to repair a corrupt MD entry, although the cause of the error should also be established.
BINCHOPERR, internal error looking for start of current feature
Explanation: When IPATCH moves the current position to an entry within the list of addresses which it has scanned for the PREVIOUS list, it looks for the start of the feature containing this entry. This error means that the binary chop that it uses to perform that search has failed - the top and bottom limits have crossed over each other.
User action: Unless something obviously strange has already occurred earlier in the IPATCH session, which would quite sensibly have corrupted the internal list of NF positions, then report this error to Laser-Scan with as much detail as possible (eg the file and a log of the commands obeyed).
CANTEDIT, you cannot edit the 'string' of the file
Explanation: 'string' will be either "start" or "end". The start of the IFF file (address 00000000) and the end of the IFF file are not entries, so cannot be edited. Thus the preceding / command will be ignored.
User action: None.
CBEDIT, to edit a CB use /FLAGS /CHANGE /DELETE /GTYPE or /ATTRIBUTE
Explanation: Line mode and prompt mode edit commands are not provided for CB entries. The command is ignored.
User action: Use one of the command mode edit commands specified.
CHKTERM, error checking to see if SYS$OUTPUT is an ANSI terminal
Explanation: When the STATUS ON command is given, IPATCH checks to see if the terminal is an ANSI terminal. If it is not, then the status area will not work. If an error occurs establishing this fact, then various system error messages may result, followed by this message. The status area will not be established.
User action: Dependent upon the system errors. If in doubt, report this error to the system manager or to Laser-Scan, with the results of the DCL SHOW TERMINAL command.
CONVWHAT, missing arguments to TO - convert what to what?
Explanation: The TO command was not followed by one of DECIMAL, DEGREES, HEXADECIMAL or RADIANS.
User action: Repeat the command with the rest of the line correct.
CPBOTH, it is not possible to repeat the /BOTH operation
Explanation: The CP edit /REPEAT command cannot be used to repeat the /BOTH command, as this would involve changing the original side of the CP without any checks.
User action: If the original side of the CP must be changed, use the /BOTH command on each occasion.
CPEDIT, to edit a CP use /TARGET, /BOTH, /ROTATE or /REPEAT
Explanation: This message is given if line mode or prompt mode editing is attempted on a CP entry. These edit modes are not supported for the CP.
User action: Use one of the command mode edit commands, as suggested.
CPNONE, no previous CP edit to repeat
Explanation: The /REPEAT command has been used on a CP, but there has not been a previous CP edit.
User action: Use the appropriate CP edit command.
CRESTATUS, error creating status area - status is now OFF
Explanation: In order to maintain the status area on the screen, IPATCH uses binary writes to the relevant lines. This error is given if the program fails to open the terminal for binary writing. The status area will not be written.
User action: If in doubt, report this error to the system manager or to Laser-Scan, with the results of the DCL SHOW TERMINAL command.
DELORDER, current entry is before the marked entry - can't delete to the mark
Explanation: To perform a DELETE MARK, the marked entry must precede the current entry. The command is ignored.
User action: Ensure that the entry at the start of the range to be deleted is the one marked, and that the current entry when you give the command is the one AFTER the range to be deleted. Then try again.
DISABOVE, PREVIOUS is disabled above 'hex-address'
Explanation: This message should not occur in the current version of IPATCH. It is a historical message from earlier development versions.
User action: Report the message to Laser-Scan, with as much data as possible - preferably the IFF file and a log of the commands used to produce the message.
EDITCC, use the form 'letter' 'value' to change CC entries
Explanation: Line mode and prompt mode are not supported for editing CC entries. The command is ignored.
User action: Use the /UNIT command to set the CC to the unit transformation, or one of the commands /A to /T to edit individual values.
EDITCS, there are no /commands to edit a CS - try prompt mode
Explanation: Command mode is not supported for editing the CS entry, as it is considered obsolete. The command is ignored.
User action: Use line or prompt mode.
EDITSSL, there are no /commands to edit an SS or SL - try prompt mode
Explanation: Command mode is not supported for editing the SS or SL entries, as they are considered obsolete. The command is ignored.
User action: Use line or prompt mode.
ENDOFCOM, unexpected end of command file - now prompting
Explanation: If the command file specified with the /COMMANDS switch does not end with an EXIT command, then IPATCH will give this message and look for commands from SYS$INPUT:.
User action: Either give the EXIT command to the first prompt, or proceed to use the program interactively.
ENDSCAN, error moving back to current entry after scanning file
Explanation: After scanning the IFF file to update the PREVIOUS list (for instance, after a NEXT command which moves off the end of the list), an error has occurred in going back to the entry that should be current. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
FSBITS, cannot find 'type' FS
Explanation: This message is given if one of the LINE, SYMBOL or TEXT commands has been used to search for an FS entry with the appropriate bits set in word 3, and IPATCH has not been able to find such an entry after the current entry. 'type' is one of "linear", "symbol" or "text". The program will position back to the current entry - the effect is as if the command had never been given.
User action: None.
GOBACK, error going back to current entry, after PREVIOUS scan
Explanation: When moving backwards during the PREVIOUS command, IPATCH has to take various other entries into hand before making the destination entry current. This message indicates that some error occurred in that final step. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
GOTOEOF, error moving to end of file
Explanation: The EOF command has been given, but the program is unable to reach the place that it considers end of file. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
GOTOVO, error returning to just deleted entry (void)
Explanation: In order to delete an entry (using DELETE), IPATCH must effectively perform the sequence
MARK
NEXT
DELETE MARK
PREVIOUS
This message indicates that an error occurred in the final stage, equivalent to a PREVIOUS command. Other error messages should indicate more about the problem. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
HANDST, error taking ST/ZS/CB into hand again, after editing it
Explanation: Editing an ST, ZS, or CB entry can involve deleting it and then overwriting it with the new values (specifically, the /PEN and /DELETE commands must follow this sequence). This error indicates that after the new entry has been written out to the file, IPATCH tried to take it back into hand, but failed. Other error messages should indicate more about the problem. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
HEXRANGE, 'hex-number' is out of range - should be between 'hex-number' and 'hex-number'
Explanation: The previous command contained a hexadecimal value which was outside the range permitted for the particular application. The permitted range is indicated in the message. The command is ignored.
User action: Specify the command again with a corrected value.
IFFPKE, error in positioning to entry
Explanation: This error indicates that IPATCH tried to position to a given address, but failed to find an entry there. The unrecognised entry type, XX, will be indicated. The normal cause of this message is using FIND to move to a wrong address, or trying to read a corrupt area of an IFF file.
User action: If the error was caused by FIND, then check the argument - the address should be a hexadecimal number. If the error does not seem to be caused by the commands given or by the file itself, then report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
INTRANGE, 'integer' is out of range - should be between 'integer' and 'integer'
Explanation: The previous command contained a number which was outside the range permitted for the particular application. The permitted range is indicated in the message. The command is ignored.
User action: Specify the command again with a corrected value.
MARKDEL , no marked entry to delete from
Explanation: The DELETE MARK command has been given, but there is no marked entry. This means that either the MARK command has not been used to mark an entry, or that a previous command has removed the MARK. The commands DELETE and DELETE MARK both remove any existing marks.
User action: Mark the required entry and try again.
MARKERR, error in positioning back to MARKed entry
Explanation: This message follows an error in the RETURN command. It probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
MAXENTRIES, more than 200 entries from the current NF to the next
Explanation: The list of entries in the current 'feature' that is maintained to allow the PREVIOUS command can only contain up to 200 addresses. Thus if there are more than that number of entries between the two NFs under consideration, this message will appear. The MAXENTRIES message is followed by the PREVBETWEEN message (qv), which explains over which area of the file PREVIOUS will be disabled.
User action: If this is a problem, request Laser-Scan to rebuild IPATCH with a larger limit for the number of entries between NFs.
MAXPTS, 'entry' contains 'integer' points, but maximum storable is 200
Explanation: Conventionally, no ST, ZS, or CB entry may contain more than 200 points, and this is the maximum that IPATCH can read in. This message is given when an ST, ZS, or CB entry with more than that number of points is made current. If the IFF file is corrupt, then it is possible that this is not a true ST, ZS, or CB entry, but just a bit pattern that looks like such.
User action: If applicable, correct the program producing the ST, ZS, or CB entries with too many points.
MD2LEN, version 2 MD entry should be 'integer' words long
Explanation: IPATCH knows how many words there should be in a version 2 MD entry. If the definition of an MD entry has been changed to make the entry longer, or if a corrupt MD entry which appears longer is found, then this message will be given.
User action: Report the error to Laser-Scan, with as much detail as possible, including the date of release of the IPATCH image, the exact text of the message(s), and the IFF file.
MDVERSION, unknown map descriptor version 'integer'
Explanation: A map descriptor with an unrecognised version number has been found. Either the version of IPATCH has not been updated to recognise a new form of descriptor, or the MD entry is corrupt.
User action: Report the error to Laser-Scan, with as much detail as possible, including the date of release of the IPATCH image, the exact text of the message(s), and the IFF file.
MHEDIT, use the /CUSTOMER command to edit the MH customer number
Explanation: Line and prompt modes are not available for editing the MH entry, and the only command available is to edit the customer number. The edit command is ignored.
User action: If the customer number is to be changed, use the /CUSTOMER command, otherwise use the appropriate utility to edit the map header.
NEXTDEL , error moving to next entry, to delete this one
Explanation: The DELETE command must effectively perform the sequence
MARK
NEXT
DELETE MARK
PREVIOUS
This message indicates that the 'NEXT' stage has failed. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
NEXTEOF, you can't NEXT off the end of the file
Explanation: The current position is at the end of file, and a NEXT command has been given. It is ignored. Note that a NEXT 'count' command which tries to move over the end of the file will give this error and stop at the end of file.
User action: None.
NEXTERR, NEXT command abandoned after 'integer' entries
Explanation: This follows an error message from the IFF library, reflecting a problem in taking the next entry into hand. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
NEXTONE, NEXT command abandoned after 1 entry
Explanation: This follows an error message from the IFF library, reflecting a problem in taking the next entry into hand. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
NFGONE, no NF where expected, when attempting PREVIOUS scan
Explanation: When an entry is made current, and it is within the area of the file that has been scanned to allow PREVIOUS to operate there, then a routine is called to determine which entry within the current 'feature' this one is. If the initial NF entry of the 'feature' is not found where it is expected, then this error is given.
User action: Unless a sequence of actions which might have corrupted the NF entry has been taken (for instance using FIND to move near the NF and editing the 'apparent' entry there), this is probably an error in either IPATCH or the IFF library. In that case, report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
NOADDRESS, no (hexadecimal) address given after FIND
Explanation: The FIND command must be followed by the address of the entry it is to find. The command is ignored.
User action: Give the FIND command with the required address.
NOATT, fixed attribute 'name' ('code') not present in CB
Explanation: The attribute specified in a /ATTRIBUTE command is not present in the current CB entry, and can not therefore be edited.
User action: Specify an attribute which is present in the CB.
NOCORNER, no corner given - say which corner should be at the NW
Explanation: The CP edit command /ROTATE has been given without following it by the name of a corner which should be placed at the NW corner.
User action: Give the command again, with one of the corners NW,SW,SE,NE.
NOCURDEL, no current entry to delete
Explanation: The DELETE command has been given when there is no current entry. It is ignored.
User action: Make sure that the entry that is to be deleted is current before trying to delete it.
NOCURMARK, no current entry to MARK
Explanation: The MARK command has been given when there is no current entry. It is ignored.
User action: Make sure that the entry that is to be marked is current before trying to mark it.
NOEDIT, 'entry' entries cannot be edited
Explanation: An attempt has been made to edit an entry that cannot be edited - for instance an EF. The command is ignored.
User action: None.
NOENTRY, no entry at that position
Explanation: The FIND command has been used to move to an address that does not contain a recognisable entry. Other messages will help to clarify the problem.
User action: Check that the address given to FIND was correct, and that it was hexadecimal.
NOEOPTR, this NO entry does not contain an EO pointer
Explanation: An attempt has been made to edit the pointer field of an NO entry which does not include one. The command is ignored.
User action: If an EO pointer field must be added, then use a utility which can add new data to the IFF file - for instance LITES2.
NOMARK, no marked entry to RETURN to
Explanation: The RETURN command has been given, but there is no marked entry to move back to. Either the MARK command has not been used, or a DELETE or DELETE MARK command has removed the mark.
User action: Find the required entry by some other method.
NOSEARCH, error returning to old entry after search failed
Explanation: If a search for a particular entry reaches the end of file without finding the entry, then IPATCH makes the entry that was current before the search be current again. This message indicates that that operation failed. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
NOTANSI, SYS$OUTPUT_: is not an ANSI terminal
Explanation: The STATUS ON command outputs this message if the terminal will not support a status area. The status area is created and maintained using ANSI escape sequences, so the terminal must support them for a status area to be possible.
User action: None.
NOTBIT, 'integer' is out of range - should be 0 or 1 (bit unset or set)
Explanation: The various bit setting commands used to edit the second word of the FS entry take an argument which is either 0 or 1. This message is given if some other value is found.
User action: Try the command again with the correct value.
NOTENTRY, entry 'entry' at 'hex-address' is not simply reachable
Explanation: If the FIND command is used to position to an entry which is within the area of the file scanned for PREVIOUS, but could not be reached by using successive NEXT commands from the start of file, then this warning is given. It is probable that the apparent current entry is really just a bit pattern that looks like an entry to the IFF library.
User action: Check that the correct argument was given to FIND - it should be a hexadecimal address. Take great care in using or amending the entry.
NOTIFTEXT, cannot do that for text features (text bit is set)
Explanation: An attempt has been made to use the /PC edit command on an FS with the text bit set in word 3. Text features do not have a process code. The command is ignored.
User action: If the command was correct, use the /SYMBOL or /LINE command to change the FS and then try the /PC command again. Otherwise, perform an edit appropriate to a text.
NOTSTRING, LIST will only work for an ST, ZS, or CB
Explanation: The LIST command was used on a current entry that is not an ST or a ZS. The command is ignored.
User action: To show the contents of an entry that is not an ST or ZS, use one of the EXPLAIN or TYPE commands.
NOTWRITE, IFF file has not been opened for write
Explanation: An edit or delete command was given on a file which was not opened /WRITE. The command is ignored.
User action: If the file is to be edited, specify the /WRITE switch on the initial command line.
OPENCOM, error opening command file 'file-spec'
Explanation: The /COMMANDS switch was used to designate a file from which commands should be taken. However, the file could not be opened - other messages should explain why not. This message repeats the name of the file that IPATCH thought was being opened.
The program will continue with prompts to SYS$INPUT_:.
User action: Either EXIT and try with a correct file specification, or continue editing interactively.
OPENJOU, error opening journal file 'file-spec'
Explanation: The /JOURNAL switch was used to designate a file to which commands should be journalled. However, the file could not be opened - other messages should explain why not. This message repeats the name of the file that IPATCH thought was being opened.
The program will continue without journalling commands.
User action: Either EXIT and try with a correct file specification, or continue editing without journalling the commands.
ORDER, cannot work from 'integer' to 'integer' - try again in the other order
Explanation: A range was specified to a command such as LIST or /DELETE, with the first number being higher than the second. The range must be specified from low end to high end.
User action: Repeat the command with the numbers in the other order.
OUTRANGE, 'number' is out of range - should be between 'integer' and 'integer'
Explanation: The previous command contained a number which was outside the range permitted for the particular application. The permitted range is indicated in the message. The command is ignored.
User action: Specify the command again with a corrected value.
PREVBETWEEN, PREVIOUS will not work between 'hex-address' and 'hex-address'
Explanation: This message follows the MAXENTRIES message (qv). Since only the first 200 entries between the previous and next NF can be remembered, PREVIOUS will not work for the 201st entry through to the entry before the next NF. This message specifies which addresses the PREVIOUS command will thus not work between.
User action: If this is a problem, request Laser-Scan to rebuild IPATCH with a larger limit for the number of entries between NFs.
PREVBOF, you can't PREVIOUS off the start of the file
Explanation: The current position is at the start of file, and a PREVIOUS command has been given. It is ignored. Note that a PREVIOUS 'count' command which tries to move over the start of the file will give this error and stop at the start of file.
User action: None.
PREVERR, PREVIOUS command abandoned
Explanation: This follows an error message from the program or IFF library, reflecting a problem in taking the previous entry into hand. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
PREVNF, error looking for NF entry, during PREVIOUS scan
Explanation: If moving backwards beyond the start of the current 'feature', PREVIOUS makes previous NF entries temporarily current whilst it is moving back. This message indicates that an NF entry was not where one was expected, which indicates corruption of the list of NF entries.
User action: Unless the previous actions are likely to have confused IPATCH about the positions of NF entries (such as using FIND to move somewhere strange and editing over an actual NF), then this indicates a problem in either the IFF library or the program. Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
PREVXX, error looking for start-of-file entry, during PREVIOUS scan
Explanation: This error is similar to the PREVNF error, but occurs when IPATCH is trying to move back between the start of file and the first NF. It indicates that the first entry is now what was expected.
User action: As for the PREVNF error.
READCOM, error reading from command file 'file-spec' - abandoning file
Explanation: This message follows LSLLIB messages describing the problem with reading from the file specified by the /COMMANDS switch. IPATCH will start to prompt for input from SYS$INPUT_:.
User action: Dependent upon the LSLLIB errors.
REMARK, error restoring the MARK after replacing an ST/ZS/CB
Explanation: Some ST, ZS, and CB edit operations have to delete and then rewrite the entry. This has the side-effect of removing the current mark. However, they then attempt to reinstate the mark so that the operation is transparent to the user. This message indicates some problem in restoring the mark, and represents a bug.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
RESCAN, error moving to last known NF to continue PREVIOUS scan
Explanation: When the PREVIOUS command is given at a position above the area of the file that was already scanned, IPATCH must scan up to the current entry. This message follows IFF messages about problems repositioning to the last NF that was in the scanned list - ie the position at which IPATCH wishes to start its new scan.
User action: Unless the previous actions are likely to have confused IPATCH about the positions of NF entries (such as using FIND to move somewhere strange and editing over an actual NF), then this indicates a problem in either the IFF library or the program. Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
RETST, error returning to ST/ZS/CB entry after restoring the MARK
Explanation: Some ST, ZS, and CB edit operations have to delete and then rewrite the entry. This has the side-effect of removing the current mark. However, they then attempt to reinstate the mark so that the operation is transparent to the user. This message indicates some problem in returning to the ST/ZS/CB after restoring the mark, and represents a bug.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
RUBBISH, unexpected "'character'" - line ignored
Explanation: An unexpected character was found at the end of a command line which otherwise made sense. Lines must either end with a <CR> or be terminated by a comment character (!). The line is ignored.
User action: Repeat the line without the extraneous character, or prefix the character(s) by a comment symbol.
SCANERR, error scanning file for PREVIOUS
Explanation: This message is given when the IFF library has an error finding the next NF entry during a scan of the IFF file to allow the PREVIOUS command. It should follow IFF error messages explaining the problem.
User action: If the errors are not sensible from context, then report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
SEARCH, cannot find 'entry' 'details'
Explanation: This message is given if an entry search command (eg AC) has been given, and IPATCH has been unable to find such an entry after the current entry. 'entry' is the type of entry being searched for, and 'details' is the rest of the entry search specification (for instance, what AC type was requested). IPATCH repositions to the current entry - the effect is as if the search command had not been given.
User action: None.
SEARCHEOF, you can't search off the end of the file
Explanation: This message is given if you are positioned at the end of the file and attempt to search for an entry - that is, using the TEXT,LINE or SYMBOL commands, or one of the entry search commands. The command is ignored.
User action: If you want to search from the start of the file, then use the * command to move there. Otherwise, reconsider what effect is wanted.
STCHANGE, which points are to be changed?
Explanation: If the /CHANGE edit command is used on an ST, ZS, or CB without arguments, and the entry has more than one point, then it is not obvious which points are to be changed. The command is ignored.
Note that if there is only one point in the ST, ZS, or CB, then IPATCH deduces correctly which point to change.
User action: Repeat the command specifying which point(s) to change.
STDELETE, which points are to be deleted?
Explanation: If the /DELETE edit command is used on an ST, ZS, or CB without arguments, and the entry has more than one point, then it is not obvious which points are to be deleted. The command is ignored.
Note that if there is only one point in the ST, ZS, or CB, then IPATCH deduces correctly which point to delete.
User action: Repeat the command specifying which point(s) to delete.
STEDIT, to edit an ST or ZS use /PEN, /CHANGE or /DELETE
Explanation: Line mode and prompt mode edit commands are not provided for ST and ZS entries. The command is ignored.
User action: Use one of the command mode edit commands specified.
TEXTONLY, can only do that for text features (text bit is not set)
Explanation: One of /CATEGORY, /TYPE_STYLE or /POSITION edit commands was used on an FS which has not got the text bit set. These commands are not applicable to lines or symbols.
User action: If the command was correct, then use the /TEXT edit command to change the FS to have the text bit set in word 3. Otherwise, use the /PC edit command to edit the process code.
TOOMANYNF, error in PREVIOUS scan - more than 65535 NF entries found in file
Explanation: The list of NF entries maintained by IPATCH to allow the PREVIOUS command can only hold up to 65535 NF entries. This message is given if an attempt is made to scan more than that. In fact, a correct IFF file cannot have more than 65535 NF entries in it, as the internal sequence number must be between 1 and 65535, and unique within the file.
User action: None.
TYPEERR, TYPE command abandoned after 'integer' entries
Explanation: This follows an error message from the IFF library, reflecting a problem in taking the next entry into hand. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
TYPEONE, TYPE command abandoned after 1 entry
Explanation: This follows an error message from the IFF library, reflecting a problem in taking the next entry into hand. This probably reflects a bug or problem in either IPATCH or the IFF library.
User action: Report the problem to Laser-Scan, with as much detail as possible - preferably the IFF file and a log of the commands which provoked the message.
UNEXPENT, unexpected entry 'entry' found
Explanation: This message is given when the program has moved to an address expecting to find one type of entry, and has instead found the type mentioned. It will be followed by other messages which detail the circumstances.
User action: Dependent upon the accompanying messages.
UNKENTRY, unknown entry type 'entry' at address 'hex-address'
Explanation: This message is output whenever the program attempts to print out an entry type that it does not recognise. This indicates that the program is not up to date with respect to the possible entries within an IFF file.
User action: Report the problem to Laser-Scan, with a note of the unrecognised entry type. Laser-Scan will either update IPATCH to recognise the entry, or request further details if the entry really does not exist.
UNKSEARCH, attempt to search for unknown entry type 'entry'
Explanation: This error should not occur, as it indicates that the searching section of the program has been asked to look for an entry that it does not know about.
User action: Report the problem to Laser-Scan, with a note of the unrecognised entry type. Laser-Scan will provide a corrected version of IPATCH.
UNMARK, the MARK is now removed
Explanation: This message follows the REMARK message, and acts as a reminder that the marked entry is no longer marked.
User action: As for the REMARK message.
WILDNEXT, DISPLAY is OFF - attempt to do "NEXT *" ignored
Explanation: This message is given if the NEXT * command has been used when the NEXT command will not display intermediate entries. Since the EOF command is provided to move immediately to the end of the IFF file, this is faulted.
User action: Either switch DISPLAY ON and try again, or use the EOF command.
WRITEJOU, error writing to journal file 'file-spec' - stopping journal
Explanation: This message follows LSLLIB messages describing the problem with writing to the file specified by the /JOURNAL switch. Journalling of commands will cease.
User action: Dependent upon the LSLLIB errors.
XXGONE, no entry where expected, when attempting scan for PREVIOUS
Explanation: The error is identical to the NFGONE error, except that the program was looking for the first entry in the file, rather than an NF entry.
User action: As for NFGONE.
--------------------------------------------------------------------------------
These messages reflect a problem with the program itself, and should be reported to Laser-Scan.
BADREPEAT, unknown operation 'integer' to REPEAT
Explanation: None.
User action: Report problem to Laser-Scan, together with a note of which command was just given. A new version of IPATCH will be issued.
NOSUCHCMD, command number 'integer' not recognised
Explanation: None.
User action: Report problem to Laser-Scan, together with a note of which command was just given. A new version of IPATCH will be issued.
NOSUCHCMD2, secondary command number 'integer' not recognised
Explanation: None.
User action: Report problem to Laser-Scan, together with a note of which command was just given. A new version of IPATCH will be issued.
--------------------------------------------------------------------------------
In addition to those which are generated by IPATCH itself, messages may be produced by the command line interpreter (CLI) and by Laser-Scan libraries.
In particular, messages may be generated by the IFF library and by the Laser-Scan I/O library, LSLLIB.
IFF library messages are introduced by '%IFF' and are documented in the IFF library user's guide. In most cases IFF errors will be due to a corrupt input file, and this should be the first area of investigation. If the cause of the error cannot be traced by the user, and Laser-Scan are consulted, then the input file should be preserved to facilitate diagnosis.
LSLLIB messages are introduced by '%LSLLIB' and are generally self-explanatory. They are used to explain the details of program generated errors.