-------------------------------------------------------------------------------- MODULE IWINDOW
-------------------------------------------------------------------------------- REPLACES DAMP modules ICLIP and OSCLIP
--------------------------------------------------------------------------------
IWINDOW clips IFF map data to a rectangular boundary or "window".
--------------------------------------------------------------------------------
-------------------------------------------------------------------------------- PROMPTS
From: input-file-spec To: output-file-spec
--------------------------------------------------------------------------------
input-file-spec
- specifies the IFF file which is to be clipped. Any part of the file-spec which is not supplied will be taken from the default specification 'LSL$IF:IFF.IFF'.
output-file-spec
- specifies the IFF file which is to be created to contain the data clipped out of the input file. Any part of the file name which is not explicitly given will be taken from the parsed input specification. Note that a version number must not be specified for the output file. If a file with the specified name already exists, a new file will be created with the version number incremented by one.
--------------------------------------------------------------------------------
/ABSOLUTE
- Enables the user to specify clipping bounds in absolute (whole world) coordinates. By default clipping bounds are relative to the sheet local origin defined by the origin offset in a type 2 IFF MD (Map Descriptor) entry.
/AREA
/AREA=FC=integer[,integer...]
/AREA=LAYER=integer[,integer...]
- Area features are identified to IWINDOW either using the keyword arguments to the /AREA qualifier, or using the graphical type information from a FRT file specified using the /FRT qualifier. Area feature identifications from /AREA keyword arguments take precedence over those from a FRT file. Area features which intersect with a clipping bound are closed with a straight line segment along the clipping bound. A single keyword argument to /AREA is obligatory unless used in conjunction with the /FRT qualifier. /AREA=FC and /AREA=LAYER are mutually exclusive. Clipping suppression using /FC_IGNORE and /LAYER_IGNORE overrides /AREA=FC and /AREA=LAYER specifications.
/CONTROL_POINTS
- derive the clipping bounds from the CP (Control Point) entry.
/DEBUG
/NODEBUG
- reserved for Laser-Scan use. /DEBUG provides voluminous output relating to IFF entries found. It is intended as a debugging aid for use by LSL personnel only.
/EAST=real
- specifies the eastern bound of the clipping window in IFF units.
/FC_IGNORE=integer[,...]
- turn off clipping for the specified feature codes. The /FC_IGNORE qualifier will accept single, multiple or ranges of feature code arguments. The maximum number of feature codes which may be specified is 1024.
/FRT=file-spec
- specifies the FRT (Feature Representation Table) file used to identify symbol strings, and area features when the /AREA qualifier is specified. The FRT file-specification is required. Any part of the file-spec not supplied will be taken from the default specification 'LSL$FRT:.FRT'.
/FSN_BY_LAYER
- Specification of the /FSN_BY_LAYER qualifier causes IWINDOW to keep a record of the maximum FSN per layer. Individual layer maximum FSN + 1 is then used for reentrant features within that particular layer. By default IWINDOW allocates uses the whole file maximum FSN + 1 for reentrant features.
/LAYER_IGNORE=integer[,...]
/NOLAYER_IGNORE
- turn off clipping for the specified layers. /LAYER_IGNORE will accept single, multiple or ranges of layer arguments. The maximum number of layers which may be specified is 1024.
/LITES2
- If /LITES2 is specified IWINDOW creates a LITES2 command file which is used to guide the user to re-entrant features within the LITES2 editor. The LITES2 command file specification is derived from the output filename but with the substitution of the logical name LSL$LITES2CMD: and the extension '.LCM' Thus if the /LITES2 qualifier is specified for use with an output file called LSL$IF:TST.IFF then the LITES2 command file will be LSL$LITES2CMD:TST.LCM
If there were no re-entrant features an empty guidance file, containing just a header and message stating there were no re-entrant features, can still be produced by setting the logical name LSL$EMPTY_LITES2_GUIDANCE to 1. If this logical name is set to 0, no empty guidance files will be produced, (the normal behaviour). If the /LITES qualifier is given, this logical name must be set to 0 or 1.
If the map is totally within the clipping boundary, a suitable message is given and there will be no output file or guidance file produced, regardless of the logical name setting.
/LOG
/NOLOG
- this will result in supplementary messages being sent to SYS$OUTPUT:. Supplementary messages are generated when an IFF file is successfully opened and a reassuring message output each time a new IFF layer is found in the input IFF file.
IWINDOW also writes out the actual bounds being clipped to and a summary of the options chosen. For each layer, a note is made of each feature changed, and a summary is given of how many features were clipped, deleted and created. A similar summary is given at the end of clipping for the whole map. If no clipping was necessary then this is indicated in the summary information.
If /OUTPUT is specified in conjunction with /LOG then the clipping bound information and summary information is sent to the specified file and will not be reflected at the terminal.
/MAP_HEADER
- clip to the window bounds held in the MH (Map Header) entry, which must be either an OS or MCE map header depending on whether or not the program is running in OS mode.
/NORTH=real
- specifies the northern bound of the clipping window in IFF units.
/OFFSET=real
- specifies the boundary offset in IFF units. For use with /CONTROL_POINTS and /MAP_HEADER qualifiers. This is the distance outside the edge of the map to which all features will be clipped. The default is zero, clip to the true map edge.
/ORIGIN
- translates coordinates so that the SW corner of the window is at (0,0). The map origin in the OS or MCE map header and type 2 map descriptor is changed in accordance with this. If the OS map header is type 3 or 4, the origin is updated in the header using the position and size specified in the OS map header translation table, LSL$OS_MH_TABLE. This table is described in the DATA PREPARATION section of the IFFOSTF chapter in the "Convert User Guide". Since a type 4 (CITF) Map Header contains no basic grid interval it is caluculated from the scale so that maps at scales 1:1250, 1:2500 and 1:10000 have basic grid intervals of 50m, 100m, and 400m respectively. These are the only scales intended for use with CITF data.
/OS
- forces IWINDOW into Ordnance Survey (UK) mode. Command qualifiers preceding the /OS qualifier are ignored by the Command Line Interpreter.
/OUTPUT[=file-spec]
- for use with /LOG. This enables the user to send to file the clipping bound and summary information produced by the /LOG qualifier. Additional information sent to the /OUTPUT file includes details of the current process and the IFF HIstory information if this was present in the input file. The output file specification defaults to SYS$DISK:IWINDOW.LIS.
/RESET_CP
/NORESET_CP
- if /RESET_CP is specified the control point values in the output IFF file will be reset to the clipping bound coordinates. By default the CP values in the input file are copied to the output file.
/RETAIN_FSN
/NORETAIN_FSN
- when splitting a reentrant feature, the new feature created should have the same FSN as its 'parent'.
/SOUTH=real
- specifies the southern bound of the clipping window in IFF units.
/VOID
- clip a rectangular void (or "hole") inside the map. The void boundary is defined in the same way as a clipping window.
/WEST=real
- specifies the western bound of the clipping window in IFF units.
--------------------------------------------------------------------------------
Two additional qualifiers are available in Ordnance Survey mode:
/CLIP_GRID
- force clipping of grids.
/KEEP_TEXT
- retain text outside the window. This qualifier has no effect with /VOID ,i.e text is not retained inside the window.
--------------------------------------------------------------------------------
IWINDOW clips IFF map data to a rectangular boundary or window. The clipping window can be given explicitly using the /NORTH, /SOUTH, /EAST and /WEST qualifiers or it can be extracted from the MH (Map Header) or CP (Control Point) entries by use of the /MAP_HEADER or /CONTROL_POINT qualifiers. The default clipping window is defined by the values in the RA (Range) entry, except when running in Ordnance Survey mode, when /MAP_HEADER is assumed. Explicit bounds can be given in IFF units, or absolute values if /ABSOLUTE is specified.
The map header option uses either
For type 3 and 4 OS map headers, Laser-Scan regard the definitive values for the Eastings, Northings and scale to be those in the map descriptor (MD) entry, not those in the map header. If these values need to be changed, Laser-Scan recommend that they are updated in the MD entry using ITRANS/DESCRIPTOR.
If the control points are being used to define the window then they must be rectangular.
IWINDOW also performs checks on any additional clipping bounds supplied using the /NORTH, /SOUTH, /EAST, and /WEST qualifiers. These checks ensure that
If the window contains the whole map, the program does not normally produce an output file. However, if the /ORIGIN qualifier has been given and the window contains the whole map, then an output file is produced containing all the input data, with coordinates relative to the clipping origin. This is an inefficient but possibly useful means of performing a simple map translation.
By default the program will delete all features outside the clipping bounds, but this action can normally be modified through the use of the /FC_IGNORE, /LAYER_IGNORE and /OS qualifiers.
Ordnance Survey mode makes available the following features:
When splitting a reentrant feature, the new feature will normally be given a new, unique FSN. If it is required that it should have the same FSN as the original, then the /RETAIN_FSN qualifier should be given (except in OS mode when it is invalid).
If a feature is deleted then any TC (Transmitted Comment) or CH (CHaracter command) entries associated with that feature (ie. immediately in front of it) are also deleted. Likewise, if a new feature is generated then copies of the TC/CH entries will be made.
Empty features with FSN 0 are deleted. Any TC/CH entries preceding them are retained.
For IFF revision 0 files containing ZS entries and IFF revision 1 files containing CB entries with Z-coordinates, the Z-value of the intersection between string and clipping boundary is estimated using simple linear interpolation. This is based upon the known heights of the two points defining the segment which contains the intersection point. If the height of either of the end points of such a segment is unknown, the intersection point will also be given an unknown height.
All other attributes in CB entries are copied over for points inside the clipping area. New points created on the clipping boundary will have their attributes unset.
--------------------------------------------------------------------------------
IWINDOW opens the given input file and reads the RA (RAnge) entry to ascertain the maximum extent of the map. It then reads the MH (Map Header) entry to check the data type, and uses this entry if /MAP_HEADER was specified, or the CP (Control Point) entry if /CONTROL_POINTS was specified, to work out the default clipping bounds. There are no default bounds if neither of the IFF entry qualifiers was given. If /OFFSET was specified, account is taken of it, and then any explicit bounds are transferred to give the actual clipping bounds.
The output file is opened and the input file is clipped into it. This involves copying entries from the input file into the output file, with the exception of features, and layer entries, which are dealt with in a more complex manner.
Internally, IWINDOW treats ST and ZS entries in IFF revision 0 input files as if they were CB entries. For each feature, the program notes where the feature starts, and finds the associated CB (which may be the first of several). The points in the CB are clipped to the clipping bounds.
If a feature is outside the clipping bounds, it is discarded, and if it is inside it is simply copied across.
If a feature crosses the boundary, the first part inside is written out with the feature's serial number, and any subsequent (reentrant) parts are written out as features with either a temporary feature number of -1, or, if /RETAIN_FSN was specified, the same feature serial number as the original.
After the whole file has been processed, the program goes back to any features with a dummy feature serial number and assigns each a new, unique serial number (greater than all the original feature serial numbers.
Area features specified by the /AREA qualifier are dealt with using a different algorithm and are closed correctly if clipped.
--------------------------------------------------------------------------------
$ IWINDOW/CONTROL_POINTS/WEST=9600/SOUTH=23100/LAYER_IGNORE=3 DFAD1 NEW_DFAD1ELAPSED: 00:00:49.0 CPU: 0:00:26.69 BUFIO: 4 DIRIO: 602 FAULTS: 177 $
This example illustrates a common use of IWINDOW. Input is from LSL$IF:DFAD1.IFF;0 while output is to LSL$IF:NEW_DFAD1.IFF. The control points have been used in conjunction with explicit western and southern bounds to form the window. In addition, clipping has been suppressed for layer 3, so all features in that layer will be copied, unchanged, to the output file. $STATUS is set to SS$_NORMAL.
$ $ IWINDOW/MAP_HEADER/SOUTH=14100/NORTH=18600/EAST=14100/VOID/LOG_From: DFAD2 _To: NEW_DFAD2 %LSLLIB-I-OPENED, IFF file DUA0:[JAMIE.TEST]DFAD2.IFF;0 opened for read Bounds N =18600.0, S =14100.0, E =14100.0, W = 600.000 Clipping not suppressed for any feature codes Clipping not suppressed for any layers Clipping to void %LSLLIB-I-OPENED, IFF file DUA0:[JAMIE.TEST]NEW_DFAD2.IFF opened for write %IWIN-I-LAYER, layer 0 found Layer 0: 0 features deleted, 0 clipped and 0 created %IWIN-I-LAYER, layer 1 found Feature 1 (1) split 1 time Feature 45 (45) deleted Feature 46 (46) deleted Feature 47 (47) deleted Feature 48 (48) deleted Feature 49 (49) split 1 time Feature 50 (50) split 3 times Feature 51 (51) deleted Feature 52 (52) deleted Feature 53 (53) deleted Feature 54 (54) deleted Feature 55 (55) deleted Feature 56 (56) deleted Feature 57 (57) deleted Feature 58 (58) deleted Feature 59 (59) deleted Feature 60 (60) deleted Feature 61 (61) deleted Feature 62 (62) deleted Feature 63 (63) deleted Feature 64 (64) deleted Feature 65 (65) deleted Feature 66 (66) deleted Feature 67 (67) deleted Feature 68 (68) deleted Feature 69 (69) deleted Feature 70 (70) deleted Feature 71 (71) deleted Feature 72 (72) deleted Feature 73 (73) deleted Feature 74 (74) deleted Feature 75 (75) was clipped Feature 100 (100) deleted Feature 101 (101) deleted Feature 102 (102) deleted Feature 103 (103) deleted Feature 104 (104) deleted Feature 105 (105) deleted Feature 106 (106) deleted Feature 108 (108) deleted Feature 109 (109) deleted Feature 110 (110) deleted Feature 111 (111) deleted Feature 112 (112) deleted Feature 113 (113) deleted Feature 114 (114) split 1 time Feature 124 (124) deleted Feature 125 (125) split 1 time Layer 1: 42 features deleted, 6 clipped and 7 created %IWIN-I-LAYER, layer 2 found Feature 346 (346) deleted Feature 347 (347) deleted Feature 348 (348) deleted Feature 349 (349) deleted Feature 350 (350) deleted Layer 2: 5 features deleted, 0 clipped and 0 created %IWIN-I-LAYER, layer 3 found Single point feature 2576 (2576) deleted Single point feature 2577 (2577) deleted Single point feature 2582 (2582) deleted Single point feature 2858 (2858) deleted Single point feature 2859 (2859) deleted Single point feature 2860 (2860) deleted Feature 2910 split 1 time Layer 3: 6 features deleted, 1 clipped and 1 created Summary: 53 features deleted, 7 clipped and 8 created Features 10832 to 10839 were created No layers suppressed from clipping ELAPSED: 00:01:05.23 CPU: 0:00:35.55 BUFIO: 9 DIRIO: 673 FAULTS: 126 $
In this example, the map header has been used in conjunction with explicit southern, northern and eastern bounds to form the window. Thus only one edge of the window coincides with the original map boundary. Clipping has been performed to a void, i.e. the rectangle has been 'cut out' of the map. The user has also selected the /LOG qualifier which has resulted in the output of supplementary messages and summary information. $STATUS is set to SS$_NORMAL.
$ IWINDOW/OS/NORTH=500/CLIP_GRID/LOG/OUTPUT=SP8061 SP8061 SP8061S%LSLLIB-I-OPENED, IFF file DUA0:[LSL.IFF]SP8061.IFF;7 opened for read %LSLLIB-I-OPENED, IFF file DUA0:[LSL.IFF]SP8061S.IFF;4 opened for write %IWIN-I-LAYER, layer 1 found %IWIN-I-LAYER, layer 11 found ELAPSED: 00:00:36.60 CPU: 0:00:18.15 BUFIO: 9 DIRIO: 341 FAULTS: 144 $
This example illustrates the use of IWINDOW in OS mode. The /MAP_HEADER qualifier was present by default, and the window was modified by an explicit northern bound. Grid lines were clipped, and because of the presence of /NORTH, texts have also been clipped. Use of the /LOG qualifier has resulted in the appearance of supplementary messages. Because /OUTPUT has also been specified the summary information has been sent to the file SP8061.LIS, reproduced below. The format is similar to that when output is to the terminal, but differs in the extra header information. If there had been a history entry in the IFF file, this would also have been printed out in full. $STATUS is set to SS$_NORMAL.
=================================== IWINDOW ====================================== IWINDOW invoked by: JAMIE, Process: Jamie Hulme, on: 28-AUG-86 13:05:13 Input file : LSL$IF:SP8061.IFF;0 Running in OS mode Bounds N = 500.000, S = 0.000, E =1000.000, W = 0.000 Clipping not suppressed for any feature codes Clipping texts Clipping grids Output file : LSL$IF:SP8061S.IFF Feature 124 (124) was clipped Feature 190 (190) was clipped Feature 191 (191) was clipped Feature 214 (214) was clipped Feature 215 (215) was clipped Feature 217 (217) was clipped Feature 240 (240) was clipped Feature 247 (247) was clipped Feature 248 (248) was clipped Feature 251 (251) was clipped Feature 254 (254) was clipped Feature 260 (260) was clipped Feature 277 (277) was clipped Feature 300 (300) was clipped Single point feature 303 (303) deleted Single point feature 304 (304) deleted Single point feature 305 (305) deleted Single point feature 306 (306) deleted Single point feature 307 (307) deleted Single point feature 308 (308) deleted Single point feature 309 (309) deleted Single point feature 310 (310) deleted Single point feature 311 (311) deleted Feature 317 (317) was clipped Feature 351 (351) was clipped Layer 1: 9 features deleted, 16 clipped and 0 created Feature 9974 (9974) deleted Feature 9975 (9975) deleted Feature 9976 (9976) deleted Feature 9977 (9977) deleted Feature 9978 (9978) deleted Feature 9980 (9980) was clipped Feature 9981 (9981) was clipped Feature 9982 (9982) was clipped Feature 9983 (9983) was clipped Feature 9984 (9984) was clipped Feature 9985 (9985) deleted Feature 9986 (9986) was clipped Feature 9987 (9987) was clipped Feature 9988 (9988) was clipped Feature 9989 (9989) was clipped Feature 9990 (9990) was clipped Feature 9991 (9991) was clipped Feature 9992 (9992) was clipped Feature 9993 (9993) was clipped Feature 9994 (9994) was clipped Feature 9995 (9995) was clipped Layer 11: 6 features deleted, 15 clipped and 0 created Summary: 15 features deleted, 31 clipped and 0 created
--------------------------------------------------------------------------------
These messages indicate that the program has completed successfully.
MAPINBDY, map is totally within window, no output
Explanation: As it says.
User action: Check that the correct clipping bounds were specified.
--------------------------------------------------------------------------------
These messages give information only, and require no immediate action by the user (except perhaps to verify that the correct options have been selected). Those referring to the opening and closing of IFF files, and the notification of layers, will only appear if /LOG has been specified on the command line. The messages giving boundary information are continuation messages and will appear regardless of /LOG.
CLIPBOUNDS, Clip boundary: 'real' 'real' 'real' 'real'
Explanation: The supplied clipping boundaries are out of range, described in a further message.
User action: Check the supplied boundaries in the command line.
DEFAULTMDORG, Default MD origin of (0.0, 0.0) used
Explanation: There was an error finding the IFF file map descriptor origin, and a default value of (0,0) is used.
User action: Check the IFF file for a valid MD2 entry.
FRTREAD, reading FRT file 'file-spec'
Explanation: This message indicates that the specified FRT file is being read.
User action: None
LAYER, layer 'integer' found
Explanation: The program has reached the given layer in the input file, and will commence clipping if appropriate.
User action: None.
EGTW, East boundary should be greater than West
Explanation: This is a continuation message, and indicates that the particular combination of qualifiers used to specify the clipping bounds has resulted in the eastern boundary being less than the western one.
User action: Reissue the IWINDOW command and qualifiers, taking care that the new combination will result in a valid window.
NGTS, North boundary should be greater than South
Explanation: This is a continuation message, and indicates that the particular combination of qualifiers used to specify the clipping bounds has resulted in the northern boundary being less than the southern one.
User action: Reissue the IWINDOW command and qualifiers, taking care that the new combination will result in a valid window.
NOLCM, no LITES2 guidance file (no reentrant features)
Explanation: This message appears when /LITES2 was specified and no guidance file. This will occur when there are no reentrant features.
User action: None.
OSMH, OS map header
Explanation: The IFF file has an OS map header.
User action: None.
--------------------------------------------------------------------------------
These messages indicate that IWINDOW has been unable to guarantee that features can been correctly clipped.
BADMHBGI, invalid basic grid interval 'integer' in OS MH entry
Explanation: An invalid value for the basic grid interval has been found in an OS map header entry. This means that the default clipping bounds will not have been properly set up, and the program may subsequently fail on that account. If it does not fail, the window may well differ from the expected dimensions.
User action: Investigate the cause of the invalid basic grid interval by running OMHED and examining the map header. If the error can be easily traced and corrected, run IWINDOW again on the corrected input file; otherwise, consult your supervisor.
BADMHMCE, inconsistency in MCE MH entry
Explanation: The latitude and longitude values for the map corners do not agree with those for the map extent. This means that the default clipping bounds will not have been properly set up, and the program may subsequently fail on that account. If it does not fail, the window may well differ from the expected dimensions.
User action: Investigate the cause of the inconsistency by running MCEHED and examining the map header. If the error can be easily traced and corrected, run IWINDOW again on the corrected input file; otherwise, consult your supervisor.
BADEBOUND, East boundary not in expected range ('real' to 'real')
Explanation: The value given with /EAST is not within the default window as defined by the map header, control points or range.
User action: Check that the clipping bounds used are the desired ones.
BADNBOUND, North boundary not in expected range ('real' to 'real')
Explanation: The value given with /NORTH is not within the default window as defined by the map header, control points or range.
User action: Check that the clipping bounds used are the desired ones.
BADSBOUND, South boundary not in expected range ('real' to 'value')
Explanation: The value given with /SOUTH is not within the default window as defined by the map header, control points or range.
User action: Check that the clipping bounds used are the desired ones.
BADWBOUND, West boundary not in expected range ('real' to 'real')
Explanation: The value given with /WEST is not within the default window as defined by the map header, control points or range.
User action: Check that the clipping bounds used are the desired ones.
DELLCMFIL, LITES2 guidance file deleted
Explanation: This is normally a continuation message and indicates that the output LITES2 guidance file has been deleted.
User action: See the appropriate error.
DELOUTFIL, output IFF file deleted
Explanation: This is normally a continuation message and indicates that the output file has been deleted.
User action: See the appropriate error.
FCNOTFND, feature code 'integer' not defined in FRT
Explanation: The program has tried to look up the specified feature code in the FRT file specified, and has not found a definition.
User action: If the feature code in the IFF data is correct, then either correct the FRT or use a different FRT file.
FEATINCOMP, feature 'integer' ('integer') incomplete
Explanation: This is normally a continuation message and indicates that a feature in the file is incomplete.
User action: Depends on the main error which caused this action. The input file should be examined using IPATCH. LITES2 will repair incomplete IFF features.
ILLEGLCP, illegal values in CP entry
Explanation: The control point values result in either the eastern boundary being less than the western, or the northern less than the southern. This means that the default clipping bounds will not have been properly set up, and the program may subsequently fail on that account. If it does not fail, the window may well differ from the expected dimensions.
User action: Investigate the cause of the problem by running IPATCH and examining the control points. If the error can be easily traced and corrected, run IWINDOW again on the corrected input file; otherwise, consult your supervisor.
ILLEGLMH, illegal values in MH entry
Explanation: The latitude and longitude values for the map corners agree with those for the map extent, but result in either the eastern boundary being less than the western, or the northern less than the southern. This means that the default clipping bounds will not have been properly set up, and the program may subsequently fail on that account. If it does not fail, the window may well differ from the expected dimensions.
User action: Investigate the cause of the problem by running MCEHED and examining the map header. If the error can be easily traced and corrected, run IWINDOW again on the corrected input file; otherwise, consult your supervisor.
MHMDDIFF, conflicting Map Header and Map Descriptor entries
Explanation: One or more of the map header (MH) entries do not match the map descriptor (MD) entries. Specifically the origin Eastings and Northings are tested against the values held in the MD entry of a type 3 IFF OS Map Header.
User action: The values for the Eastings and Northings held in the MH should be kept up to date with those in the MD. You may need to consult your system manager if the MH has been altered using in-house editors. To change the values in the MD, use ITRANS/DESCRIPTOR.
NOEJ, no EJ entry in input IFF file
Explanation: The EJ entry was missing from the end of the input file.
User action: If the input file is to be used again, run IMEND to insert an EJ entry.
NOEM, missing EM entry in input IFF file
Explanation: An EM entry was not found where expected in the input file.
User action: If the input file is to be used again, use IPATCH to determine where in the file the EM entry is missing. If it is the final EM entry in the file, run IMEND to insert an EM entry. If it is anywhere else in the file run LITES2 to insert the missing EM entry.
NOEO, missing EO entry in input IFF file
Explanation: An EO entry was not found where expected in the input file.
User action: If the input file is to be used again, run LITES2 on the file and then immediately exit from LITES2 to insert the missing EO entry.
NOMD, No MD entry in input IFF file
Explanation: No MD entry was not found in the input file and the /ABSOLUTE qualifier will not be valid. User action: If this is not expected then examine the IFF file with IPATCH to determine the cause of the problem as all IFF files should have a MD entry.
NOTOSMODE, OS map not running in OS mode
Explanation: The /OS qualifier was not given on the command line, although the input file has an OS map header.
User action: Run IWINDOW again, if necessary, with the /OS qualifier.
NOV2MD, MD entry in input IFF file is not version 2
Explanation: The MD entry found in the input file is version 1 and the /ABSOLUTE qualifier will not be valid.
User action: None
--------------------------------------------------------------------------------
These messages indicate an error in processing which has caused the program to terminate. The most likely causes are a corrupt or otherwise invalid input IFF file, or an error related to command line processing and file manipulation. Some of the messages may indicate a programming error. All result in the deletion of the output IFF file.
BADCP, CP entry is not rectangular
Explanation: The control points in the input file do not define a rectangle.
User action: Edit the input file using IPATCH, ensuring the corner points are correctly set.
BADRA, invalid RA entry in input IFF file
Explanation: One, or both, of the minimum range values is greater than or equal to the corresponding manimum range value.
User action: Edit the input file using IPATCH, ensuring the range are correctly set.
CMDLINERR, Error reading command line
Explanation: There was an error reading the supplied command line.
User action: Check the command line, and resubmit.
EOFINFTR, unexpected end of file whilst updating feature
Explanation: While updating the NF entries of features with new serial numbers, the end of the output file was found where a NF entry was expected. This is almost certainly a programming error.
User action: A note should be made of the qualifiers used, the input file should be preserved, and the error should be reported to Laser-Scan. IPATCH can be used to update all missing serial numbers in the output file manually. At the same time, the file should be checked for any other inconsistencies if it is to be used again.
EOICPYFEAT, unexpected end of input IFF file copying feature
Explanation: Before outputting a feature, its details are copied from the input file. The end of the input file was found within a feature when an NF, TC, or CH entry was expected. This could be due either to a corrupt IFF file or a programming error.
User action: Examine the input file contents using IPATCH and if it is the cause of the problem, edit it. If no inconsistencies are found, make a note of the qualifiers used, preserve the input file, and report the error to Laser-Scan.
EQUALBDY, boundary lines should not be the same
Explanation: This message indicates that the combination of qualifiers used to specify the clipping bounds has resulted in either the eastern and western or the northern and southern boundaries being the same.
User action: Reissue the IWINDOW command and qualifiers, taking care that the new combination will result in a valid window.
ERRCLOLCM, error closing LITES2 guidance file on logical unit 'integer'
Explanation: The LITES2 guidance file could not be closed. This message should be followed by other supplementary meesages which should give an indication of the source of the error.
User Action: Consult your system manager, and if necessary Laser-Scan.
ERRCLOLOG, error closing log file on logical unit 'integer'
Explanation: The log file could not be closed - note that this is SYS$OUTPUT if /OUTPUT was not specified with /LOG. A continuation message immediately follows giving the LSLLIB error which gave rise to the problem, and if applicable a further continuation message gives the system error. These messages will give some indication as to whether the error is due to system problems or programming errors.
User action: Consult your supervisor or system manager, and if necessary Laser-Scan.
ERRDELLCM, cannot delete LITES2 guidance file on unit 'integer'
Explanation: If /LITES2 is specified and no reentrant features are found the LITES2 file is normally deleted. This error occurs if for some reason this cannot be deleted.
User action: Consult your supervisor or system manager, and if necessary Laser-Scan.
ERROPNLOG, error opening 'file-spec' as logfile on logical unit 'integer'
Explanation: If /OUTPUT was not specified with /LOG, the program attempts to open SYS$OUTPUT as the log file. A continuation message immediately follows giving the LSLLIB error which gave rise to the problem, and if applicable a further continuation message gives the system error. These messages will give some indication as to whether any of the more serious errors are due to system problems or programming errors.
User action: If the problem is due to a simple mistake, reissue the IWINDOW command and qualifiers with the correct file specification. Otherwise, consult your supervisor or system manager, and if necessary Laser-Scan.
ERRPOSNO, error repositioning to NO (posn 'address')
Explanation: An NO entry in the output file was about to be updated with a pointer to the EO prior to writing the EO entry itself. This is almost certainly a programming error.
User action: A note should be made of the qualifiers used, the input file should be preserved, and the error should be reported to Laser-Scan.
ERRPOSTC, error repositioning to TC/CH (position 'address')
Explanation: A TC or CH entry in the input file was to be copied to the output file, but one address used is incorrect. This is almost certainly a programming error.
User action: Make a note of the command qualifiers used, preserve the input file, and report the error to Laser-Scan.
ERRWRTLOG, error writing to log file
Explanation: The log file could not be written to - note that this is SYS$OUTPUT if /OUTPUT was not specified with /LOG. A continuation message immediately follows giving the LSLLIB error, and a further continuation message gives the system error. The error is most likely to be due to system problems and this will be clarified by the messages.
User action: Consult your supervisor or system manager.
FRTFAIL, error reading FRT file 'file-spec'
Explanation: An error has occurred reading the specified FRT file. Additional messages should accompany this message giving some indication of the problem.
User action: Consult your system manager and if necessary Laser-Scan.
GOTHI, more than one HI entry in input IFF file
Explanation: More than one history entry was found in the input IFF file.
User action: Preserve the input file and consult Laser-Scan.
HIWRONG, HI is not the second entry in input IFF file
Explanation: The history entry should always be the second entry and in this case is not.
User action: Preserve the input file and consult Laser-Scan.
IFFCREATERR, Error creating output IFF file 'filename'
Explanation: There was an error creating the output IFF file.
User action: Check the requested IFF file name, or command line.
IFFOPNERR, Error opening input IFF file 'filename'
Explanation: There was an error opening the input IFF file.
User action: Check the requested IFF file, or command line.
ILLEGFC, illegal feature code 'integer' with /'qualifier'
Explanation: The feature code specified with the given qualifier does not lie in the range 0 to 32767.
User action: Respecify the command line, taking care that feature codes fall within the allowed range.
ILLEGLAY, illegal IFF layer number 'integer' with 'qualifier'
Explanation: The layer number specified with the given qualifier does not lie in the range 0 to 32767.
User action: Respecify the command line, taking care that layer numbers fall within the allowed range.
NOBGIINMH4, no BGI in type 4 Map Header (MH) entry.
Explanation: An attempt was made to process an IFF file with a type 4 (CITF) MH entry which does not contain a Basic Grid Interval.
User action: At present IWINDOW cannot process IFF files containing type 4 Map Headers which are only intended for use by Ordnance Survey Great Britain. If IWINDOW is run without the /OS qualifier, the Map Header will be ignored.
NOCP, no CP entry in input IFF file
Explanation: A control point entry could not be found in the input file.
User action: Run IPATCH on the input file to ascertain the reason for this.
NOINPNF, cannot find NF entry in input IFF file where expected
Explanation: Before outputting a feature, its details are copied from the input file. The NF was not found in the input file where expected. This is almost certainly a programming error.
User action: A note should be made of the qualifiers used, the input file should be preserved, and the error should be reported to Laser-Scan.
NOMH, no MH entry in input IFF file
Explanation: A map header entry could not be found in the input file.
User action: Run IPATCH on the input file to ascertain the reason for this.
NOOUTNF, cannot find NF entry to update
Explanation: While updating the NF entries of features with new serial numbers, an NF was not found where expected. This is almost certainly a programming error.
User action: A note should be made of the qualifiers used, the input file should be preserved, and the error should be reported to Laser-Scan.
NOTANAREA, feature 'integer' has only 'integer' point(s), cannot be an area
Explanation: The specified feature cannot be an area as has less than the required number of points.
User action: Check that the features specified with the /AREA qualifier are correct.
NORA, no RA entry in input IFF file
Explanation: A range entry could not be found in the input file.
User action: Run IPATCH on the input file to ascertain the reason for this.
RANOTFND, cannot find RA entry in output IFF file
Explanation: Having finished going through the input file, with all the clipping done, the range entry in the output file has to be updated. This entry cannot be found, indicating a probable programming error.
User action: Make a note of the command qualifiers used, preserve the input file, and report the error to Laser-Scan.
TOOBIGFEAT, too many points ('integer') in feature 'integer' ('integer')
Explanation: There are too many points in the specified feature, the maximum possible is 5000.
User action: If it is not possible to reduce the number of points in the feature by splitting or filtering it then please submit an SPR.
TOOMANYFC, 'integer' feature codes with /'qualifier', maximum is 'integer'
Explanation: More than the maximum allowed number of feature codes have been specified with the given qualifier.
User action: Reissue the IWINDOW command and qualifiers, taking care that the number of feature codes specified does not exceed the maximum. If a larger number of feature codes is an ongoing requirement, please submit a software modification request to Laser-Scan.
TOOMANYFEAT, too many features created (max 'integer')
Explanation: More than the maximum allowed number of new features have been created.
User action: One way round this problem would be to suppress some of the layers, perform the clipping, and then clip the output file, this time suppressing the layers which have already been clipped. If this problem is likely to occur frequently, please submit a software modification request to Laser-Scan.
TOOMANYLAY, 'integer' layers with /'qualifier', maximum is 'number'
Explanation: More than the maximum allowed number of layers have been specified with the given qualifier.
User action: Reissue the IWINDOW command and qualifiers, taking care that the number of layers specified does not exceed the maximum. If a larger number of layers is an ongoing requirement, please submit a software modification request to Laser-Scan.
TOOMANYPTS, too many points ('integer') in ST entry, feature FSN 'integer' ('integer')
Explanation: There are too many points in the ST or CB entry read from the input file. This is probably due to an error in the input file.
User action: A note should be made of the qualifiers used, the input file should be preserved, and the error should be reported to Laser-Scan. IPATCH or ITOTEXT should also be used to find where the error occurs in the input file. The output file will almost certainly be incomplete and should either be edited with IPATCH or deleted.
UNEXPEOI, unexpected end of input IFF file
Explanation: The end of the input file was found within a feature - an EF, ST or ZS or CB entry was expected. This could be due either to a corrupt IFF file or a programming error.
User action: Examine the input file contents using IPATCH and if it is the cause of the problem, edit it. If no inconsistencies are found, make a note of the qualifiers used, preserve the input file, and report the error to Laser-Scan. The output file will almost certainly be incomplete and should either be edited with IPATCH or deleted.
UNSETMH, cannot derive boundaries with unset map header
Explanation: The /MAP_HEADER qualifier was specified, and since the map header is neither OS nor MCE, the default clipping bounds cannot be derived.
User action: Reissue the IWINDOW command with /CONTROL_POINTS to obtain the default clipping bounds, or specify some or all of the bounds explicitly with the boundary qualifiers. Note that if all four boundary qualifiers are given, default clipping bounds need not be specified.
WRONGBDY, boundaries were specified the wrong way round
Explanation: This message indicates that the combination of qualifiers used to specify the clipping bounds has resulted in the boundaries being the wrong way round. A further continuation message explains which boundaries are in error.
User action: Check for any additional messages which may help to diagnose the problem. Reissue the IWINDOW command and qualifiers, taking care that the new combination will result in a valid window.
WRONGCUST, map is not OS, cannot run in OS mode
Explanation: The /OS qualifier was given on the command line, but the input file does not have an OS map header.
User action: Run IWINDOW again, without the /OS qualifier.
--------------------------------------------------------------------------------
In addition to the above messages which are generated by IWINDOW itself, other 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. These are introduced by '%IFF' and are documented in the IFF library users' 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.