-------------------------------------------------------------------------------- MODULE IFILTER
-------------------------------------------------------------------------------- REPLACES A variety of Laser-Scan smoothing and filtering programs.
--------------------------------------------------------------------------------
IFILTER is designed to smooth or filter, smooth and then filter, or filter and then smooth IFF coordinate strings using one of the following algorithms:
FILTERS:
SMOOTHING OPTIONS:
+----------------------------------------------------+ | WARNING | |IFILTER produces only (X,Y) coordinate data in the | |output file. Non-planimetric per-point attributes | |held in CB data columns are not retained. | +----------------------------------------------------+
--------------------------------------------------------------------------------
$ IFILTER input-file-spec output-file-spec Command qualifiers Defaults /[NO]AKIMA=(tolerance-spec[,...]) /NOAKIMA /[NO]BEZIER=(tolerance-spec[,...]) /NOBEZIER /[NO]BUNCH=(tolerance-spec[,...]) /NOBUNCH /[NO]DP[=tolerance-spec] /DP /FC=integer[,...] All feature codes. /FILTER_FIRST Smooth before filtering. /LAYER=integer[,...] All layers. /[NO]LINEAR[=tolerance-spec] /NOLINEAR /[NO]LOG /NOLOG /[NO]MCCONALOGUE=(tolerance-spec[,...]) /NOMCCONALOGUE
--------------------------------------------------------------------------------
_IFF-file: input-file-spec _Filtered-IFF-file: output-file-spec
--------------------------------------------------------------------------------
input-file-spec
- specifies the IFF file which is to be filtered. Any part of the file specification 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 smoothed or filtered data. Any part of the file specification 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 IFF file. If a file with the specified name already exists a new file will be created with the version number incremented by one.
/AKIMA=(SEPARATION:real,CHORD:real,DEVIATION:real)
/NOAKIMA
- causes Akima cubic interpolation (smoothing) to be applied to the specified coordinate strings in the input IFF file. The IFF strings may either be taken directly from the input file, or they may first be passed through one of the filter options. If neither filter option is selected, or if /FILTER_FIRST is in effect, then the data resulting from the Akima interpolation are written directly to the output file.
Not all of the keywords are necessary, but at least one must be given. SEPARATION (the minimum distance between output data points) and CHORD (the arc to chord distance between output data points) must both be specified in the same units as the data in the IFF file, and DEVIATION (the angular deviation between output data points) must be specified in radians. Those not specified default to 0.0.
For further details on Akima interpolation and an explanation of the keywords, see the description section below. Some diagrams (Figs 1,2,3) illustrating the effect of Akima interpolation are included in the Examples section.
/BEZIER=(CHORD:real,HUG:real,[NO]AVERAGE)
/NOBEZIER
- causes Bezier interpolation (smoothing) to be applied to the specified coordinate strings in the input IFF file. The IFF strings may either be taken directly from the input file, or they may first be passed through one of the filter options. If neither filter option is selected, or if /FILTER_FIRST is in effect, then the data resulting from the BEZIER interpolation are written directly to the output file.
CHORD is the arc to chord distance between output data points, and HUG is the corner hug tolerance. If CHORD is not specified a default value of 0.05 is used; if HUG is not specified a default hug tolerance of 1.0 is used. The minimum HUG tolerance is 0 and the maximum 1.
AVERAGE determines whether a series of new points that define a medial line through the original data points are generated before interpolation. This option is used to remove jagged edges from the input data, and should be applied to data such as that produced by the TVES module VECTORISE with its characteristic 'staircase' appearance. The generation of medial data points is by default not performed (ie. NOAVERAGE).
For further details on BEZIER interpolation see the description section below. Some diagrams (Figs 4,5) illustrating the effect of BEZIER interpolation are included in the Examples section.
/BUNCH=(MIN_SEP:real,MAX_SEP:real,LATERAL:real,RESOLUTION:real])
/NOBUNCH
- causes IFILTER to apply the Laser-Scan BUNCH (least squares) filter to the specified coordinate strings in the input IFF file. The IFF strings may either be taken directly from the input file or they may have been passed through one of the interpolation options. The data resulting from application of the BUNCH filter are written directly to the output file, except when /FILTER_FIRST is in effect and interpolation follows.
Values for the keywords must be specified in the same units as the data in the IFF file. MIN_SEP (the minimum point separation after filtering) and LATERAL (the lateral threshold distance) are compulsory, while MAX_SEP (the maximum point separation after filtering) defaults to 0.0 which is interpreted as 'infinity'. Note, since BUNCH is a filter, no new points will be generated if the distance between input points is greater than MAX_SEP. RESOLUTION is the 'resolution' of the data coordinate system. Two or more points are considered to be coincident, if their x component and y component separations are both less than the 'resolution' prior to filtering. This parameter defaults to the map range divided by 1600 (which is equivalent to 0.25mm on the sheet for OS 1/1250 and 1/2500 maps).
For a description of the BUNCH filter and further explanation of the keywords, see the description section below. Some diagrams (Figs 6,7,8) illustrating the effect of BUNCH filter are included in the Examples section.
/DP[=LATERAL:real]
/NODP
- by default IFILTER will apply the Douglas-Peucker filter either directly to strings from the input file or to those strings after they have been interpolated by one of the interpolation options. The data resulting from application of the Douglas-Peucker filter are written directly to the output file, except when /FILTER_FIRST is in effect and interpolation follows.
/NODP causes IFILTER not to apply the Douglas-Peucker filter. The Douglas-Peucker filter is also not applied if the BUNCH filter is selected. It is not possible to use /NODP if no other smoothing or filtering qualifiers have been specified.
LATERAL is the shortest distance by which the new line will deviate laterally from the original line, and must be specified in the same units as the data in the IFF file. If this keyword is not given, it defaults to the map range divided by 1600 (this is equivalent to 0.25mm on the sheet for OS 1/1250 and 1/2500 maps). The lateral tolerance (whether specified or calculated by default) must be greater than 0.005, otherwise that value will be used instead.
For a description of the Douglas-Peucker filter see the description section below. A diagram (Fig 9) illustrating the effect of Douglas-Peucker filter is included in the Examples section.
/FC=integer[,...]
- causes IFILTER to process only those IFF features which have the specified feature code(s). The /FC qualifier will accept single, multiple or ranges of feature code arguments. Ranges may be specified with starting and ending feature codes that are separated by a colon, for example /FC=56:58. When specifying more than one range of feature codes, separate each range with a comma, for example /FC=(1:5,56:89). The maximum number of feature codes which may be specified is 1024.
/FILTER_FIRST
- this causes the relevant filtering algorithm to be applied to coordinate strings before interpolation. The default action is for interpolation to be applied first. This qualifier is only valid if both filtering and smoothing are to be carried out.
/LAYER=integer[,...]
- causes IFILTER to process only those IFF features which lie within the specified layer(s). /LAYER will accept single, multiple or ranges of layer arguments. Ranges may be specified with starting and ending layer numbers that are separated by a colon, for example /LAYER=56:58. When specifying more than one range of layer numbers, separate each range with a comma, for example /LAYER=(1:5,56:89). The maximum number of layers which may be specified is 1024.
/LINEAR[=SEPARATION:real]
/NOLINEAR
- causes IFILTER to apply linear interpolation to the specified coordinate strings in the input IFF file. The IFF strings may either be taken directly from the input file, or they may first be passed through one of the filter options. If neither filter option is selected, or if /FILTER_FIRST is in effect, then the data resulting from the linear interpolation are written directly to the output file.
SEPARATION is the minimum distance required between output data points and must be specified in the measurement units of the data coordinate system. If this keyword is not given, one point will be inserted in the middle of every line segment regardless of segment length.
Note that linear interpolation will not be carried out on two-point coordinate strings, whether taken directly from the input file or generated as a result of filtering.
Note also that if /FILTER_FIRST has not been specified it is important to give the /NODP qualifier. Otherwise the additional points generated by the /LINEAR option will immediately be filtered away again.
/LOG
/NOLOG
- causes supplementary messages to be sent to SYS$OUTPUT. Supplementary messages are generated when a file is successfully opened, and a reassuring message is output each time a new IFF layer is encountered in the input file.
/MCCONALOGUE=(SEPARATION:real,CHORD:real,DEVIATION:real)
/NOMCCONALOGUE
- causes McConalogue cubic interpolation to be applied to the specified coordinate strings in the input IFF file. The IFF strings may either be taken directly from the input file, or they may first be passed through one of the filter options. If neither filter option is selected, or if /FILTER_FIRST is in effect, then the data resulting from the McConalogue interpolation are written directly to the output file.
Not all of the keywords are necessary, but at least one must be given. SEPARATION (the distance between output data points) and CHORD (the arc to chord distance between output data points) must both be specified in the same units as the data in the IFF file, and DEVIATION (the angular deviation) must be specified in radians. Those not specified default to 0.0.
For further details on McConalogue interpolation and an explanation of the keywords, see the description section below. Some diagrams (Figs 10,11,12) illustrating the effect of McConalogue interpolation are included in the Examples section.
--------------------------------------------------------------------------------
-------------------------------------------------------------------------------
IFILTER is designed to smooth or filter, smooth and then filter, or filter and then smooth two-dimensional coordinate strings held as IFF ST entries. The program offers two filter options (Douglas-Peucker and BUNCH least squares), and four interpolation options (Akima cubic, Bezier polynomial, McConalogue cubic and linear). IFILTER may be used to smooth or filter data selectively on the basis of layer and/or feature code. All features are copied to the output file, but only those selected will be smoothed or filtered.
IFILTER copies through to the output file the following, without reference to any smoothing or filtering options selected :-
+----------------------------------------------------+ | WARNING | |IFILTER produces only (X,Y) coordinate data in the | |output file. Non-planimetric per-point attributes | |held in CB data columns is not retained. | +----------------------------------------------------+
The BUNCH filter uses tolerances related to 'best fit' lines through the incoming coordinate strings. The filter performs successive least squares fits through the existing data points until a point lies more than the lateral threshold distance (specified using the LATERAL keyword) from the least squares line. This causes a provisional master point to be generated. A new fit is then conducted forwards from the last master point, until the lateral tolerance is again exceeded. The last provisional point is tidied up into a true master point and the intervening points are rejected. The process is repeated until the end of the coordinate string is reached. If the lateral tolerance is large, it will rarely be exceeded and many points will be thrown away.
The number of points which are kept as master points or are thrown away is additionally controlled by the minimum and maximum separation (MIN_SEP and MAX_SEP) keywords, where MIN_SEP is mandatory but MAX_SEP may be defaulted. The meaning of these keywords is as follows:
The optional RESOLUTION keyword specifies the resolution of the data coordinate system. Two or more points are considered to be coincident, if their x component and y component separations are both less than the 'resolution' prior to filtering. This being the case, then only one of them will contribute to the least squares line fitting process (the rest are discarded).
Strictly, smoothing is not to be recommended after the BUNCH filter has been applied. The reason for this is that it can result in biased data. The BUNCH filter uses a least squares algorithm to produce coordinates which, when joined by straight lines, approximate the original data in a least squares sense. This typically means, for example, that on curved lines all resulting points tend slightly towards the outside of the original curve. Application of one of the curve interpolation algorithms will then result in a new curve biased towards the outside of the original one.
The Douglas-Peucker filter works by joining the first and last points of the line being filtered with a straight line. The longest perpendicular to this straight line which cuts the line being filtered is then found. The two parts of the original line are then treated separately and the same process applied to each of them. This is repeated for successively smaller sections of the original line until any further perpendiculars which might be derived would be shorter than the lateral tolerance (specified by the LATERAL keyword). The new line consists of the succession of points where the perpendiculars cut the original line.
Three curve interpolation methods are available; these are Akima, Bezier and McConalogue:
The values specified for the three qualifier keywords control the density of interpolated points. The approximate separation of points (d) is given by:
d = *a + 2*SQRT(2*b*r) + *c*r ('*r' is radius of curvature)
which means (if other coefficients were zero) that
LITES2 users should note that these three coefficients correspond to those specified in the TOLERANCE CURDRAW and TOLERANCE CURGEN commands. The difference in LITES2 is that the coefficients are given in mm, not IFF units.
Bezier is a polynomial interpolation algorithm which is widely used in interactive graphics to obtain approximate solutions to curve fitting problems. The Bezier algorithm varies from the Akima and McConalogue algorithms, in that the resulting curve does not pass exactly through the original data points, since the curve is generated from a set of guide points derived from the original data. This fact should be appreciated when applying the algorithm to cartographic data.
The Bezier CHORD and HUG tolerance keywords control the shape of the interpolated curve and the number of points generated. The HUG tolerance value should be in the range 0 to 1. When HUG is 0.0, smoothing will be minimal with the output line being approximately the same as the input. When HUG is 1.0 smoothing will be greater. The CHORD tolerance value is dominant in determining the final shape of the curve.
The AVERAGE keyword is applicable only to the BEZIER qualifier, and determines whether a set of points defining a medial line through the original data are first generated. If the option is specified, it is the medial points that are passed to the Bezier algorithm, and from which guide points are generated. The keyword should be specified if interpolation is being applied to data generated from the TVES module VECTORISE, or the original data shows excessive jaggedness.
If the input IFF file contains junction structure entries, IFILTER will generate a filtered file with a junction structure. IFILTER assumes that a node is recorded at the start and end of each feature. If features exist in the input file that contain more than 2 node (JP) entries, only the JP entries relating to the start and end nodes are preserved in the output file.
If the AVERAGE keyword is used with the BEZIER qualifier, then IFILTER ensures the node points in the input junction structure file, are preserved in the output file. The same restriction is not applied if the input file contains no junction structure.
--------------------------------------------------------------------------------
$ IFILTER CCB2 NEW_CCB2ELAPSED: 0 00:00:07.91 CPU: 0:00:03.20 BUFIO: 5 DIRIO: 54 FAULTS: 152 $
This example shows a successful run of IFILTER in default mode, i.e. applying only the Douglas-Peucker filter to coordinate strings in LSL$IF:CCB2.IFF. The filtered data have been written to LSL$IF:NEW_CCB2.IFF.
$ IFILTER/MCCONALOGUE=(SEPARATION:0.3,CHORD:0.2,DEVIATION:0.15)/NODP -_$ CCB2 NEW_CCB2 ELAPSED: 0 00:00:13.21 CPU: 0:00:03.37 BUFIO: 4 DIRIO: 53 FAULTS: 109 $
In this example IFILTER has successfully applied the McConalogue curve interpolation algorithm to coordinate strings in LSL$IF:CCB2.IFF. Filtering has been suppressed and the interpolated data output to LSL$IF:NEW_CCB2.IFF.
$ IFILTER/AKI=(SEP:0.3,CHO:0.2)/BUN=(MIN:0.3,LAT:0.2)/LAY=(1,2)/LOG -_$ OEEPECON CONTOURS1 %LSLLIB-I-IFFOPENED, DUA0:[LSL.IFF]OEEPECON.IFF;12 opened for read %LSLLIB-I-IFFOPENED, DUA0:[LSL.IFF]CONTOURS1.IFF;1 opened for write %IFILT-I-LAYERPROC, layer 1 being processed %IFILT-I-FEATCOPY, FSN 45 (3) copied without modification %IFILT-I-FEATCOPY, FSN 71 (12) copied without modification %IFILT-I-FEATCOPY, FSN 135 (17) copied without modification %IFILT-I-LAYERPROC, layer 2 being processed %IFILT-I-FEATCOPY, FSN 158 (25) copied without modification %IFILT-I-FEATCOPY, FSN 159 (26) copied without modification %IFILT-I-FEATCOPY, FSN 160 (27) copied without modification %IFILT-I-FEATCOPY, FSN 161 (28) copied without modification %IFILT-I-FEATCOPY, FSN 162 (29) copied without modification %IFILT-I-FEATCOPY, FSN 163 (30) copied without modification %IFILT-I-FEATCOPY, FSN 164 (31) copied without modification %IFILT-I-LAYERCOPY, layer 32 being copied without modification %IFILT-I-FEATCOPY, FSN 9996 (51) copied without modification %IFILT-I-FEATCOPY, FSN 9997 (52) copied without modification %IFILT-I-FEATCOPY, FSN 9998 (53) copied without modification %IFILT-I-FEATCOPY, FSN 9999 (54) copied without modification ELAPSED: 0 00:02:29.06 CPU: 0:00:50.56 BUFIO: 28 DIRIO: 375 FAULTS: 117 $
This example illustrates a successful run of IFILTER applying the Akima curve interpolation algorithm followed by the least squares BUNCH filter. The point separation for Akima has been calculated from the given constant separation and arc to chord distance, the angular deviation defaulting to 0.0. For the BUNCH filter, the minimum point separation and lateral tolerance have been specified, with no maximum separation. The default is assumed for the resolution as this is an OS map. Coordinate strings in layers 1 and 2 of LSL$IF:OEEPECON.IFF have been selected for interpolation and filtering, with those in the remaining layer (32) simply being copied over to the output file LSL$IF:CONTOURS1.IFF. Additional informational messages have been requested; these include messages indicating whether each layer is being processed or copied unchanged, and listing any line features to which interpolation and filtering have not been applied. Note that the qualifiers and keywords in this example have been abbreviated.
$ IFILTER/LIN=SEP:0.4/DP=LAT:0.8/FILTER OEEPECON CONTOURS2ELAPSED: 0 00:02:36.92 CPU: 0:01:01.70 BUFIO: 26 DIRIO: 1641 FAULTS: 153 $
In this example, the Douglas-Peucker filter has been applied to coordinate strings in LSL$IF:OEEPECON.IFF, followed by linear interpolation. The filtered and interpolated data have been output to LSL$IF:CONTOURS2.IFF.
$ IFILTER/BUN=(MIN:0.2,MAX:0.5,LAT:0.3) OEEPECON FILT_CON%IFILT-E-INVMINLAT, /BUNCH - MIN_SEP less than LATERAL ELAPSED: 0 00:00:00.58 CPU: 0:00:00.22 BUFIO: 1 DIRIO: 0 FAULTS: 89 $
This example shows the result of specifying inconsistent keywords with the BUNCH filter qualifier. The program has issued an error message and terminated without creating an output file or performing any processing.
$ IFILTER/FILTER_FIRST CCB2 MY_CCB2%CLI-W-CONFLICT, illegal combination of command elements - check documentation _\FILTER_FIRST_\ ELAPSED: 0 00:00:00.39 CPU: 0:00:00.15 BUFIO: 2 DIRIO: 0 FAULTS: 95 $
This example illustrates an error detected by the DCL command line interpreter (CLI). In this case the /FILTER_FIRST qualifier conflicts with the default operation of the program, which is that filtering only (with the Douglas-Peucker filter) should take place. The 'RESTRICTIONS' section states that /FILTER_FIRST requires one of /AKIMA, /MCCONALOGUE or /LINEAR, as well as either /DP or /BUNCH.
On the following pages are diagrams illustrations the various IFILTER operations. The top left hand picture, in all cases, is the orginal input data to IFILTER. Moving from left to right, top to bottom are pictures showing the effect of varying just one keyword. Note this is not the case in Fig 7 where it is necessary to vary the MIN_SEP keyword as well as LATERAL keyword.
--------------------------------------------------------------------------------
These messages give information only, and require no immediate action by the user (except perhaps to verify that the correct options have been selected). Most will only appear if /LOG has been specified on the command line, unless they are used to provide supplementary information after an error has occurred.
BADFEAT, error occurred processing feature 'integer' ('integer')
Explanation: An error has caused processing of the IFF file to be abandoned. A previous error message will indicate the nature of the problem. This message gives the FSN of the feature that was being processed when the error occurred.
User action: As for the accompanying error message.
CHKARGS, Check validity of all qualifier argument values
Explanation: An arithmetic error has caused processing of the IFF file to be abandoned. A previous error message will indicate the nature of the problem, for example floating division by zero. The most likely cause for an arithmetic error is the specification of command qualifier argument values that are inappropriate to the data being processed.
User action: Guidance on the effects of qualifier argument values for all the interpolation and filtering options is provided in the example daigrams of the IFILTER Description section of this manual.
FEATCOPY, FSN 'integer' ('integer') copied without modification
Explanation: The given feature is being copied to the output file without smoothing or filtering. This may be because its feature code has been excluded, or because the feature contains three data points or less. Note, however, that any superimposed points will still be removed from the coordinate strings.
User action: If in doubt, check why the feature was ignored.
LAYERCOPY, layer 'integer' being copied without modification
Explanation: The given layer is being copied to the output file with none of the features within it undergoing smoothing or filtering. Either the layer has been excluded by the /LAYER qualifier, or layer zero has been encountered (this is never processed).
User action: None.
LAYERPROC, layer 'integer' being processed
Explanation: The program has reached the given layer in the input file, and will commence filtering and/or smoothing as appropriate.
User action: None.
--------------------------------------------------------------------------------
These messages indicate that IFILTER has been unable to guarantee that a specified feature has been correctly processed, or that a specified IFF entry is correct.
DELOUTFIL, output IFF file deleted
Explanation: This is normally a continuation message and indicates that the output file has been deleted.
User action: None.
EXTCOLIGN, Only X and Y coordinates processed in FSN 'integer' (integer)
Explanation: IFILTER has encountered a "non-simple" CB entry containing more data than the standard (X,Y) coordinates. These may be per-point attributes. IFILTER does not reproduce these extra CB columns in the output file, because the actual coordinates output are different from the input coordinates.
User action: Check that no useful information is being lost.
FEATINCOMP, incomplete FSN 'integer' ('integer') in input file not copied
Explanation: This message indicates that a feature found in the input file is incomplete, having either no FS entry or no coordinates, and will not appear in the output file.
User action: Examine the input file using IPATCH, and if necessary amend the feature using LITES2 or ITOTEXT/IFROMTEXT and rerun IFILTER.
ONEPTST, FSN 'integer' ('integer') output with one point ST
Explanation: The given line feature has only one point. This may be due to the input IFF file containing a one-point coordinate string before an invisible segment, or it may be that the specified filter tolerances are too harsh.
User action: Check the validity of any filtering qualifiers specified. Check that the feature in the input file is valid. If the problem persists, preserve the input file, make a note of the qualifiers used, and report the error to Laser-Scan. The output file can then be checked and edited using IPATCH and LITES2 or ITOTEXT/IFROMTEXT.
SUPERIMPPT, superimposed point ignored in FSN 'integer' ('integer')
Explanation: The input IFF file contains coincident points. Only one of these is retained.
User action: None.
OUTFILCLO, file closed without updating RA
Explanation: This is normally a continuation message and indicates that the range entry in the output file is likely to be incorrect.
User action: Depends on the main error which caused this action, but the range entry in the output file may need to be corrected. This can be achieved by using IMERGE.
RANOTFND, cannot find RA entry in output IFF file
Explanation: Having completed reading the input file, with the appropriate features smoothed and filtered as required, the range entry in the output file has to be updated. This entry cannot be found, indicating a probable programming error. The program recovers from this error, and finishes normally.
User action: Preserve the input file, make a note of the qualifiers used, and report the error to Laser-Scan. The range entry in the output file may need to be corrected. This can be achieved by using IMERGE.
--------------------------------------------------------------------------------
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. It is most unlikely that any output file produced will be correctly processed.
EOIINFEAT, unexpected end of input IFF file within feature
Explanation: The input IFF file terminated within a feature, before an IFF EF entry was encountered.
User action: Use IMEND/TRUNCATE to correctly terminate the file. Re-run IFILTER on the repaired IFF file.
ERRBEZIER, arithmetic error during Bezier interpolation
Explanation: An error has occured when applying the Bezier interpolation algorithm.
User action: Please submit a SPR to Laser Scan, and if possible supply the input IFF file
ERRCLOIN, cannot close input IFF file
Explanation: The input IFF file could not be closed. This probably indicates a serious problem, and the preceding IFF library message will give more details.
User action: Investigate the cause of the error according to the IFF library message.
ERRCLOOUT, cannot close output IFF file
Explanation: The output IFF file could not be closed. This probably indicates a serious problem, and the preceding IFF library message will give more details.
User action: Investigate the cause of the error according to the IFF library message.
ERRWRTOUT, cannot write to output IFF file
Explanation: An error occurred while attempting to write to the output IFF file. This probably indicates a serious problem, and the preceding IFF library message will give more details.
User action: Investigate the cause of the error according to the IFF library message.
ILEGFC, illegal feature code 'integer' with /FC
Explanation: The feature code specified as an argument to the /FC 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.
ILEGLAY, illegal IFF layer number 'integer'
Explanation: The layer number specified as an argument to the /LAYER 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.
INVHUG, /BEZIER - Corner hug tolerance not in the range 0.0 to 1.0
Explanation: The corner hug tolerance supplied with the /BEZIER qualifier may only be in the range 0 to 1.
User action: Respecify the command line, ensuring that the value for HUG is in the range 0 to 1.
INVMAXMIN, /BUNCH - MAX_SEP less than MIN_SEP
Explanation: The /BUNCH qualifier was specified, and the value given for the MAX_SEP keyword was less than that given for the MIN_SEP keyword.
User action: Respecify the command line, ensuring that the value for MAX_SEP is greater than or equal to MIN_SEP
INVMINLAT, /BUNCH - MIN_SEP less than LATERAL
Explanation: The /BUNCH qualifier was specified, and the value given for the MIN_SEP keyword was less than that given for the LATERAL keyword.
User action: Respecify the command line, ensuring that the value for MIN_SEP is greater than or equal to LATERAL.
OUTBUFFULL, output buffer full
Explanation: The number of points in the line after filtering and/or smoothing is more than the allowed maximum of 15000.
User action: Respecify the command line, but choose the filtering and/or smoothing qualifier keywords such that fewer points are produced. If line features with large numbers of points are required, please submit a software modification request to Laser-Scan.
REQPOSVAL, require positive value for /'qualifier' 'keyword'
Explanation: The given qualifier keyword requires a value which is greater than zero.
User action: Respecify the command line, taking care that the relevant value is greater than zero.
TOOMANYFC, 'integer' feature codes with /FC, maximum is 'integer'
Explanation: More than the maximum allowed number of feature codes have been specified with the /FC qualifier.
User action: Reissue the IFILTER command and qualifiers, taking care that the number of feature codes specified with /FC does not exceed the maximum.
TOOMANYLAY, 'integer' layers with /LAYER, maximum is 'integer'
Explanation: More than the maximum allowed number of layers have been specified with the /LAYER qualifier.
User action: Reissue the IFILTER command and qualifiers, taking care that the number of layers specified with /LAYER does not exceed the maximum.
TOOMANYPTS, FSN 'integer' ('integer') has too many points
Explanation: The given line feature as read from the input file has too many points and cannot be processed. The maximum allowed is 15000.
User action: Split up the feature in the input file using LITES2 and then reissue the IFILTER command line. If line features with large numbers of points are required, please submit a software modification request to Laser-Scan.
UNEXPEOF, unexpected end of input IFF file
Explanation: The input IFF file terminated unexpectedly, before an IFF EJ entry was encountered.
User action: Use IMEND/TRUNCATE to correctly terminate the file. Re-run IFILTER on the repaired IFF file.
--------------------------------------------------------------------------------
This message indicates a fatal error in processing which has caused the program to terminate. No output IFF file will be produced.
ARITHMETIC, arithmetic fault detected - possibly caused by inappropriate qualifier argument values
Explanation: An arithmetic error has caused processing of the IFF file to be abandoned. A following error message will indicate the nature of the problem, for example floating division by zero.
User action: A following informational message will provide suggested user action.
--------------------------------------------------------------------------------
In addition to the above messages which are generated by IFILTER 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.