-------------------------------------------------------------------------------- MODULE IINFO
--------------------------------------------------------------------------------
REPLACES DAMP modules IFINFO and SCI
--------------------------------------------------------------------------------
IINFO gives brief general information about the specified IFF file. The default information given is as follows:
$ IINFO IFF-file-spec Command qualifiers Defaults /[NO]ABSOLUTE /NOABSOLUTE /[NO]BRIEF /NOBRIEF /EAST none /[NO]HEIGHT /NOHEIGHT /[NO]LAYER /NOLAYER /[NO]MAP_DESCRIPTOR /NOMAP_DESCRIPTOR /[NO]MH_TYPE /NOMH_TYPE /NORTH none /[NO]OUTPUT /NOOUTPUT /[NO]PRINTER /NOPRINTER /[NO]REVISION_LEVEL /NOREVISION_LEVEL /[NO]SCAN /NOSCAN /SOUTH none /[NO]SYMBOLS /NOSYMBOLS /[NO]TIMINGS /NOTIMIMGS /WEST none--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
IFF-file-spec
- specifies the IFF file which is to be processed. Any part of the file name which is not specified will be taken from the default specification 'LSL$IF:IFF.IFF'.
/ABSOLUTE
/NOABSOLUTE (default)
- displays the RA (Range) and CP (Control Point) entries in absolute coordinates. Any window limits given with the /NORTH etc. qualifiers are treated as absolute coordinates.
/BRIEF
/NOBRIEF (default)
- suppresses the display of entries in the IFF file, but displays the revision level number. /BRIEF is allowed only in conjunction with either the /REVISION_LEVEL or /MH_TYPE qualifier.
/EAST = real
- defines the eastern boundary of a window to delimit which feature points are used in the output statistics of point count, heights and line length. If the /ABSOLUTE qualifier is also present, the supplied real number is treated as a coordinate in absolute space.
/HEIGHT
/NOHEIGHT (default)
- displays the maximum and minimum heights from ZS (3-D point) entries, integer heights from type 2 AC (Ancillary Code) entries and real heights from type 3 AC entries.
/LAYER
/NOLAYER (default)
- instructs the program to output feature code data such as line lengths etc. on a by-layer basis. If a layer is in two parts within the IFF file then the values within each are displayed separately in order of occurance.
/MAP_DESCRIPTOR
/NOMAP_DESCRIPTOR (default)
- displays the contents of the MD (Map Descriptor) entry, in readable character format.
/MH_TYPE
/NOMH_TYPE (default)
- displays the map header (MH) entry type of the IFF file. The /BRIEF qualifier can be specified simultaneously to suppress the display of the entries in the IFF file.
Currently, Laser-Scan support the following map header types:
0 map header is unset
1 MCE specific map header
2 OSGB specific type 2 map header
3 OSGB specific type 3 (OSTF) map header
4 OSGB specific type 4 (CITF) map header
Type 1 map headers should be edited using MCEHED and type 2 map headers should be edited using OSMHED.
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.
/NORTH = real
- defines the northern boundary of a window to delimit which feature points are used in the output statistics of point count, heights and line length. If the /ABSOLUTE qualifier is also present, the supplied real number is treated as a coordinate in absolute space.
/OUTPUT [= file-spec]
/NOOUTPUT (default)
- output is directed to the specified file-spec in the current directory. Any parts of the file-spec not specified are taken from the default 'IINFO.LIS'. If this qualifier is not given, output will go to 'SYS$OUTPUT:'.
/PRINTER
/NOPRINTER (default)
- output is directed to a file named IINFO.LIS which is queued automatically for printing and then deleted.
/REVISION_LEVEL
/NOREVISION_LEVEL (default)
- displays the revision level of the IFF file in addition to the entries. The /BRIEF qualifier can be specified simultaneously to suppress the display of the entries in the IFF file.
/SCAN
/NOSCAN (default)
- reports on all layers, giving a description of all feature serial numbers, whether present, missing (i.e. any gaps) or duplicated. Any TC (Transmitted Comment) or CH (Character string) entries are also reported.
/SOUTH = real
- defines the southern boundary of a window to delimit which feature points are used in the output statistics of point count, heights and line length. If the /ABSOLUTE qualifier is also present, the supplied real number is treated as a coordinate in absolute space.
/SYMBOLS
/NOSYMBOLS (default)
- specifies that some of the program statistics are output to global DCL symbols.
/TIMINGS
/NOTIMINGS (default)
- specifies that all the elapsed time and CPU time statistics contained in the IFF HI (HIstory) entry are summed and the total times reported.
/WEST = real
- defines the western boundary of a window to delimit which feature points are used in the output statistics of point count, heights and line length. If the /ABSOLUTE qualifier is also present, the supplied real number is treated as a coordinate in absolute space.
--------------------------------------------------------------------------------
IINFO does not affect the IFF file being processed. It is purely informational, and outputs data concerning the IFF file specified as requested by the user via the command qualifiers.
If no qualifier is set, then only the default information is output to the screen (or wherever SYS$OUTPUT points):
The number of points and line-length will include values for both 2-d and 3-d strings. If no 2-d or 3-d strings are encountered, these values will be output as 0. The totals information given is as follows:
Total number of layers Total number of features Total number of 2-D points Total number of 3-D points Total 2-D line-length Total 3-D line-length
A window of interest with the IFF file may be created using the qualifiers /NORTH, /SOUTH, /WEST and /EAST. If a window is specified, then any feature points outside the supplied values are ignored in the calculation of point count, line length and height statistics. The feature and layer statistics are unchanged, and any feature totally outside the supplied window will be listed with its attributes set to zero. If /ABSOLUTE is present as well, the supplied window values are treated as absolute coordinates.
If /ABSOLUTE is specified the default information (as above) is output with the RA (RAnge) and CP (Control Point) entries displayed in absolute coordinates.
If /HEIGHT is specified, the maximum and minimum height values found in the IFF file will be displayed. Three maxima and minima are derived:
If /LAYER is specified then, in addition to the default output, feature code information such as number of points and line lengths is totalled per layer.
If /MAP_DESCRIPTOR is specified then the Map Descriptor information is output. Both types of Map Descriptor entry are catered for.
If /NORTH is specified, then any feature points north of the supplied value are ignored in the calculation of point count, line length and height statistics.
If /OUTPUT is specified then all output, except error messages, is directed to the specified file (default IINFO.LIS), instead of to the currently setup SYS$OUTPUT:.
If /PRINTER is specified then all output, except error messages, is directed to the file IINFO.LIS which is queued automatically for printing, and then deleted.
If /SCAN is specified, the following information is output:
In this case, the /TIMINGS, /MAP_DESCRIPTOR and /HEIGHT qualifiers are not appropriate. A message to this effect is displayed if either is specified with /SCAN, and the /TIMINGS, /MAP_DESCRIPTOR or /HEIGHT qualifiers are ignored.
The use of the /SCAN qualifier generates a quick summary of the IFF file, and therefore the output generated is unaffected by any windowing with /NORTH = n etc., and as no coordinates are output, /ABSOLUTE is irrelevant, and the /SYMBOLS qualifier will not create any output DCL symbols.
If /SYMBOLS is specified, the program statistics are output to global DCL symbols. Those created are:
If /TIMINGS is specified, the timing information held in the history record will be summed and output. This gives the total elapsed and CPU times spent on the file so far. If there is no history entry in the IFF file then a message is output to this effect, and no timings information can be displayed.
--------------------------------------------------------------------------------
$ IINFO/HEIGHT INFO_TESTIFF file : DUA0:[LSL.IFF]INFO_TEST.IFF;5 Created on : 25-NOV-1987 12:45:39.69 Range Information ----------------- Xmin = 0.000 Xmax = 234.567 Ymin = 0.000 Ymax = 948.397 Control Point Information ------------------------- NW 0.000 1000.000 0.000 1000.000 SW 0.000 0.000 0.000 0.000 SE 1000.000 0.000 1000.000 0.000 NE 1000.000 1000.000 1000.000 1000.000 History Record Information -------------------------- This IFF file contains no history entry Height Range Information ------------------------ Minimum Z height = 100.000 Maximum Z height = 983.622 Minimum integer height = -10 Maximum integer height = 1000 Minimum real height = -100.582 Maximum real height = 101.123 Information per Layer --------------------- Layer No. of No. of No. of 2-D 3-D Number Features 2-D Points 3-D Points Line-Length Line-Length 1 4 4 0 0.000 0.000 2 9 6 3 0.000 0.000 Information per Feature Code ---------------------------- Feature No. of No. of No. of 2-D 3-D Code Features 2-D Points 3-D Points Line-Length Line-Length 0 13 10 3 0.000 0.000 Totals Information ------------------ Total number of layers = 2 Total number of features = 13 Total number of 2-D points = 10 Total number of 3-D points = 3 Total 2-D line-length = 0.000 Total 3-D line-length = 0.000 ELAPSED: 0 00:00:01.39 CPU: 0:00:00.89 BUFIO: 71 DIRIO: 5 FAULTS: 163 $
This example demonstrates the output to be expected when the /HEIGHT qualifier is set. It assumes the logical name LSL$IF: has been set up to point to the correct directory.
$ IINFO/MAP_DESCRIPTOR/TIMINGS LESLEYIFF file : DUA0:[IFF.IMP.IINFO]LESLEY.IFF;7 Created on : 14-JUL-1986 17:38:03.09 Updated on : 14-JUL-1986 17:39:53.69 (Revision number : 3) Range Information ----------------- Xmin = -0.643 Xmax = 400.093 Ymin = -0.145 Ymax = 400.000 History Record Information -------------------------- Date Time Username Program Function Elapsed CPU STATUS 06-JAN-1986 17:30 TIM IFROMTEXT Create 00:00:26 00:00:10 00000001 12-MAR-1986 13:31 CLARKE ITRANS Create 00:00:04 00:00:02 00000001 23-APR-1986 10:02 TIM IED Update 00:01:00 00:00:07 00000001 23-APR-1986 10:21 TIM IED Update 00:00:37 00:00:00 00000001 15-MAY-1986 12:35 RON IED Update 00:00:58 00:00:00 00000001 31-MAY-1986 17:38 CLARKE ITRANS Create 00:00:03 00:00:01 00000001 19-JUN-1986 09:58 TOM IED Update 00:00:09 00:00:00 00000001 01-JUL-1986 15:02 TOM IED Update 00:00:07 00:00:00 00000001 14-JUL-1986 17:39 TIM IED Update 00:00:18 00:00:00 00000001 Type 2 Map Descriptor Information --------------------------------- Local Origin : 0.000, 90.000 Scale : 1000.000 Projection Code : 101 (UK National Grid) Spheroid Code : 0 (Airey) Unit Code : 2 (Metres) Control Point Information ------------------------- 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 Information per Layer --------------------- Layer No. of No. of No. of 2-D 3-D Number Features 2-D Points 3-D Points Line-Length Line-Length 1 17 231 156 770.742 2795.237 11 0 0 0 0.000 0.000 44 6 19 0 25.120 0.000 55 6 31 20 61.461 623.010 66 2 164 0 361.901 0.000 88 1 4 0 6.007 0.000 151 0 0 0 0.000 0.000 1234 32 86 1 149.693 0.000 9999 1 1 0 0.000 0.000 Information per Feature Code ---------------------------- Feature No. of No. of No. of 2-D 3-D Code Features 2-D Points 3-D Points Line-Length Line-Length 0 4 17 0 25.120 0.000 5 6 175 0 373.926 0.000 13 4 5 0 0.000 0.000 123 28 309 0 920.435 0.000 150 10 0 120 0.000 2011.770 600 3 0 45 0.000 988.223 717 1 1 0 0.000 0.000 800 3 3 0 0.000 0.000 840 3 0 12 0.000 418.254 987 3 26 0 55.443 0.000 Totals Information ------------------ Total number of layers = 9 Total number of features = 65 Total number of 2-D points = 536 Total number of 3-D points = 177 Total 2-D line-length = 1374.924 Total 3-D line-length = 3418.247 Timings Information ------------------- Total elapsed time = 0000:03:42 Total CPU time = 0000:00:20 ELAPSED: 00:00:14.84 CPU: 0:00:02.05 BUFIO: 105 DIRIO: 22 FAULTS: 178 $
This example demonstrates the output to be expected when the /TIMINGS and /MAP_DESCRIPTOR qualifiers are set. It assumes the logical name LSL$IF: has been set up to point to the correct directory.
The IFF file supplied contains a type 2 Map Descriptor entry and a History Record, allowing the timing information requested to be output.
$ IINFO/SCAN/TIMINGS
_File: LESLEY
IFF file : DUA0:[IFF.IMP.IINFO]LESLEY.IFF;7
Created on : 14-JUL-1986 17:38:03.09
Updated on : 14-JUL-1986 17:39:53.69 (Revision number : 4)
%IINFO-I-ERTIM, No Timings information output with /SCAN
Scan Information
----------------
4566 - NS : created by IFROMTEXT at 15:39:49 on 30-OCT-1985
In Layer 1234
-------------
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
Feature 170 repeated
In Layer 1
------------
Feature 170 repeated
In layer 55
Before feature 280
7865 - CH : "This text came from a CH entry"
In layer 44
Before feature 300
8022 - TC : "This TC is outside a feature"
Before feature 330
8054 - TC : "This is a pointless line of text"
Before feature 190
8115 - CH : "This text came from a CH entry"
Before feature 423
8188 - TC : "This is a particularly nasty TC"
Layer Number : 1
-------------------
First feature number is : 170
Feature numbers missing : 171 to 189
Feature numbers missing : 191 to 209
Feature numbers missing : 211 to 217
Last feature number is : 230
Layer contains : 16 features
This layer contains : 16 features,
229 2-D points,
156 3-D points.
Layer Number : 11
-------------------
This layer contains : 0 features,
0 2-D points,
0 3-D points.
Layer Number : 44
-------------------
First feature number is : 190
Feature numbers missing : 191 to 198
Feature numbers missing : 200 to 299
Feature numbers missing : 301 to 329
Feature numbers missing : 331 to 421
Last feature number is : 423
Layer contains : 6 features
This layer contains : 6 features,
19 2-D points,
0 3-D points.
Layer Number : 55
-------------------
First feature number is : 260
Feature numbers missing : 261 to 279
Feature numbers missing : 281 to 309
Feature numbers missing : 311 to 420
Feature numbers missing : 422 to 430
Last feature number is : 432
Layer contains : 6 features
This layer contains : 6 features,
31 2-D points,
20 3-D points.
Layer Number : 66
-------------------
First feature number is : 320
Feature numbers missing : 321 to 419
Last feature number is : 420
Layer contains : 2 features
This layer contains : 2 features,
164 2-D points,
0 3-D points.
Layer Number : 88
-------------------
First feature number is : 270
Only one feature in layer
This layer contains : 1 feature,
4 2-D points,
0 3-D points.
Layer Number : 151
-------------------
This layer contains : 0 features,
0 2-D points,
0 3-D points.
Layer Number : 1234
-------------------
First feature number is : 170
Feature numbers missing : 171 to 174
Last feature number is : 175
Layer contains : 2 features
This layer contains : 2 features,
4 2-D points,
1 3-D point.
Layer Number : 9999
-------------------
First feature number is : 797
Only one feature in layer
This layer contains : 1 feature,
1 2-D point,
0 3-D points.
Totals Information
------------------
Total number of features : 34
Total number of 2-D points : 452
Total number of 3-D points : 177
ELAPSED: 00:00:24.05 CPU: 0:00:04.39 BUFIO: 187 DIRIO: 17 FAULTS: 1953
$
In this example, the /SCAN and /TIMINGS qualifiers have been specified. The message to say that /TIMINGS information is unavailable with /SCAN has been output, and, of course, no timings information. Note that both 2-d and 3-d points are reported.
$ IINFO GARBAGE%LSLLIB-E-IFFOPEN, error opening LSL$IF:GARBAGE.IFF;0 %IFF-E-OPEN, error opening IFF file -RMS-E-FNF, file not found ELAPSED: 00:00:06.34 CPU: 0:00:00.48 BUFIO: 4 DIRIO: 2 FAULTS: 150 $
In this example, IINFO has attempted to open the input IFF file and failed to do so. This is either because the file-spec has been mistyped, or the logical name LSL$IF: has not been set to point to the correct directory.
$ IINFO/LAYER DUA0:[IAIN]NOTTS
IFF file : LSL$DATA_ROOT:[LSL.IFF]NOTTS.IFF;3
Created on : 12-OCT-1987 17:14:53.00
Updated on : 25-MAR-1988 11:07:16.00 (Revision number : 3)
Range Information
-----------------
Xmin = -11.300 Xmax = 1000.000
Ymin = -511.300 Ymax = 511.250
History Record Information
--------------------------
Date Time Username Program Function Elapsed CPU STATUS
7-OCT-1987 09:27 TOM OSTF2I Create 00:00:29 00:00:21 00000001
7-OCT-1987 12:12 TOM LITES2UIS Output 00:00:12 00:00:08 00000001
7-OCT-1987 13:51 TOM LITES2UIS Output 00:00:31 00:00:16 00000001
7-OCT-1987 16:11 TOM LITES2UIS Output 00:00:33 00:00:16 00000001
7-OCT-1987 17:46 TOM LITES2UIS Output 00:00:23 00:00:16 00000001
9-OCT-1987 15:47 TOM IPATCH Patch 00:00:23 00:00:00 00000001
9-OCT-1987 16:22 TOM LITES2UIS Output 00:00:23 00:00:16 00000001
9-OCT-1987 18:08 TOM LITES2UIS Output 00:00:23 00:00:16 00000001
12-OCT-1987 17:05 TOM ISELECT Create 00:00:14 00:00:08 00000001
12-OCT-1987 17:12 TOM IRECODE Create mode 00:00:04 00:00:03 00000001
12-OCT-1987 17:14 TOM IRECODE Create mode 00:00:08 00:00:03 00000001
Control Point Information
-------------------------
NW 0.000 500.000 0.000 500.000
SW 0.000 0.000 0.000 0.000
SE 500.000 0.000 500.000 0.000
NE 500.000 500.000 500.000 500.000
Information per Layer
---------------------
Layer No. of No. of No. of 2-D 3-D
Number Features 2-D Points 3-D Points Line-Length Line-Length
0 27 60 0 11500.204 0.000
1 182 2013 0 12067.274 0.000
Information per Feature Code
----------------------------
Feature No. of No. of No. of 2-D 3-D
Code Features 2-D Points 3-D Points Line-Length Line-Length
28 77 77 0 0.000 0.000
398 28 62 0 12500.204 0.000
2031 35 364 0 5556.678 0.000
2101 69 1570 0 5510.597 0.000
Totals Information
------------------
Total number of layers = 2
Total number of features = 209
Total number of 2-D points = 2073
Total number of 3-D points = 0
Total 2-D line-length = 23567.479
Total 3-D line-length = 0.000
Information per Feature Code/Layer
----------------------------------
Layer 0
----------
Feature No. of No. of No. of 2-D 3-D
Code Features 2-D Points 3-D Points Line-Length Line-Length
398 27 60 0 11500.204 0.000
Layer 1
----------
Feature No. of No. of No. of 2-D 3-D
Code Features 2-D Points 3-D Points Line-Length Line-Length
28 77 77 0 0.000 0.000
398 1 2 0 1000.000 0.000
2031 35 364 0 5556.685 0.000
2101 69 1570 0 5510.522 0.000
ELAPSED: 0 00:00:17.16 CPU: 0:00:07.04 BUFIO: 5 DIRIO: 118 FAULTS: 133
$
The /LAYER qualifier here means that the feature data is also output on a by layer basis.
--------------------------------------------------------------------------------
These messages give information only, and require no immediate action by the user.
ERMAPD, No Map Descriptor data output with /SCAN
Explanation: The operator has specified the /MAP_DESCRIPTOR qualifier with the /SCAN qualifier. These types of information are mutually exclusive, and the /MAP_DESCRIPTOR qualifier will be ignored.
User action: None.
ERTIM, No Timings information output with /SCAN
Explanation: The operator has specified the /TIMINGS qualifier with the /SCAN qualifier. These types of information are mutually exclusive, and the /TIMINGS qualifier will be ignored.
User action: None.
MULCP, multiple Control Point entries encountered
Explanation: More than one Control Point entry has been found in the IFF file. This IFF file has not been processed by IMERGE or LITES2. It retains the multiple section structure of an unprocessed digitising file.
User action: Ensure that this file is not used with any Laser-Scan IFF utility until digitising is complete and the file has been processed using LAPROCESS or IMERGE.
NOHIST, no data in history entry
Explanation: The IFF file contains a history entry, but no records have yet been put in it.
User action: None.
NOLAYERS, no layers defined in the current IFF file
Explanation: No layers were defined in the supplied IFF file.
User action: None.
NOFT, no features defined in the current IFF file
Explanation: No features were defined in the supplied IFF file.
User action: None.
These messages indicate that an error has occurred which may require some operator action, but which should not stop the processing of the file.
ERRMD2, Map Descriptor not marked as type 2
Explanation: The Map Descriptor entry found is the length of a type 2 map descriptor, but the record is not marked as type 2. The program will not attempt to output any map descriptor data.
User action: None.
ERRCLOUT, error closing output file 'file-spec'
Explanation: On exit, the output file has not been closed properly.
User action: The supplementary message supplied with this message will enable the user to determine the cause of the problem, e.g. insufficient disc space for file allocation. Notify your system manager.
IFFBADCLO, failed to close IFF file 'file-spec'
Explanation: On exit, the IFF file has not been closed properly.
User action: The supplementary message supplied with this message will enable the user to determine the cause of the problem, e.g. insufficient disc space for file allocation. Notify your system manager.
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 the command line processing and file manipulation.
BADNF, unexpected end of feature with FSN 'integer' ('integer')
Explanation: A NF entry has occurred in the IFF file before the EF entry relating to the current NF has been found.
User action: Either read the IFF file into LITES2 and exit to a new file, or use ITOTEXT followed by IFROMTEXT which will insert the missing IFF entries without recourse to further user interaction. Re-run IINFO on the corrected file.
BADLAY, unexpected end of layer 'integer'
Explanation: A NO entry has occurred in the IFF file before the EO entry relating to the current NO has been found.
User action: Either read the IFF file into LITES2 and exit to a new file, or use ITOTEXT followed by IFROMTEXT which will insert the missing IFF entries without recourse to further user interaction. Re-run IINFO on the corrected file.
ERROPOUT, failed to open output file 'file-spec'
Explanation: The file for output has not been opened.
User action: The RMS error message output in conjunction with this IINFO message will help to determine the user action required.
MDNOTFOUND, MD entry not found for /ABSOLUTE qualifier
Explanation: There was no Map Descriptor entry in the IFF file for the conversion to absolute coordinates when the /ABSOLUTE qualifier was given.
User action: Amend the IFF file and rerun the program, or rerun without the /ABSOLUTE qualifier to get the information in local coordinates.
UNEXPEOF, unexpected end of IFF file
Explanation: IINFO has detected the end of the IFF file, but has not detected an IFF EJ entry.
User action: Use IMEND/TRUNCATE on the file, which will correctly position the EOF marker and insert an EJ entry at the end of the file. Re-run IINFO on the corrected file.
--------------------------------------------------------------------------------
In addition to the above messages which are generated by IINFO 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.