-------------------------------------------------------------------------------- MODULE ILINK
-------------------------------------------------------------------------------- REPLACES IFJ, CBA --------------------------------------------------------------------------------
ILINK is an IFF link-node structuring and manipulation utility. ILINK also incorporates powerful geometry tidying capabilities.
ILINK provides the following functions:
One-point features are treated as zero length linear features.
Structured data can be used for many network processing operations, such as polygon generation, route planning, map colouring and data-base compilation.
--------------------------------------------------------------------------------
Command qualifiers Defaults
/[NO]ABSOLUTE /NOABSOLUTE /ACP=file-spec /ACP=SYS$DISK:[]ACP.ACP;0 /BPF=real /BPF=2 /BREAK See text. /EXTOL=real /EXTOL and /JNTOL values made equal. /FCC=file-spec /FCC=SYS$DISK:[]FCC.FCC;0 /FCP=file-spec /FCP=SYS$DISK:[]FCP.FCP;0 /FREE_ENDS=(FC:n,LAYER:n) See text. /FRT=file-spec /FRT=LSL$FRT:FRT.FRT;0 /JNTOL=real /JNTOL=0.0 /KEEP=COLINEAR See text. /KEEP=FSN See text. /KEEP=PARENT See text. /LAYERS=integer[,...] All layers. /LCP=file-spec /LCP=SYS$DISK:[]LCP.LCP;0 /[NO]LIST[=file-spec] /NOLIST /[NO]LITES2[=file-spec] /NOLITES2 /LLJOIN See text. /LPJOIN See text. /MERGE See text. /MINTOL=real See text. /[NO]MONITOR /NOMONITOR /PAC=file-spec /PAC=SYS$DISK:[]PAC.PAC;0 /[NO]PARENT /NOPARENT /PPJOIN See text. /[NO]PROJECT /PROJECT /SHRFC=integer /SHRFC=999 /SORTARMS See text. /STRUCTURE See text. /[NO]SYMBOL /SYMBOL /TOL=file-spec /TOL=SYS$DISK:[]TOL.TOL;0 /[NO]VERIFY /NOVERIFY /[NO]VERTEX /NOVERTEX /VRTOL=real /VRTOL=0.0 /[NO]WARNING /NOWARNING
--------------------------------------------------------------------------------
_Input_file: input-file-spec _Output_file: output-file-spec
--------------------------------------------------------------------------------
Input-file-spec
- specifies the IFF file which is to be tidied or structured. Any part of the file specification which is not supplied will be taken from the default specification 'LSL$IF:IFF.IFF'. The input file is required.
Output-file-spec
- specifies the IFF file which is to be output. Any part of the file specification which is not supplied will be taken from the input file specification with the version number incremented by one, unless the output file is to be Junction Structured, in which case the default output file extension will be '.IFJ'. If the output file is not given when required by the particular application, an error message will result and processing will stop.
/ABSOLUTE
/NOABSOLUTE (default)
- specifies that any coordinates are to be output as absolute values, with ABSOLUTE x y commands throughout any LITES2 guidance file if requested with the /LITES2 qualifier. By default, all coordinates are the usual LITES2 values, with POSITION x y commands in any guidance file.
/ACP=file-spec
- Specifies a text file which defines Ancillary Code pairs for swapping when merged features run in the opposite direction to the feature they are merged into. Missing components of the /ACP file specification are taken from the default specification SYS$DISK:[]ACP.ACP;0.
In the absence of the /ACP qualifier, all AC entries are copied into the shared feature exactly as they are found in the feature being merged. If the /ACP qualifier is given, AC pairs which are found in the /ACP file are swapped.
The /ACP qualifier may only be used in conjunction with the /MERGE process qualifier.
The AC pair definition file is an ASCII text file with the following record format, in which no two ACs are equal:
'AC1' 'AC2'
where:
'AC1' is the AC code (between 1 and 32767) with which AC2 is to be swapped when AC2 occurs in a feature which is merged into some other feature which runs in the opposite direction (only the AC code is swapped, AC values are unchanged).
'AC2' is the AC code with which AC1 is to be swapped when AC1 occurs in a feature which is merged into some other feature which runs in the opposite direction.
Note that ILINK does not check that the value types in each AC pair are equal. It is up to the user to ensure that these are consistent.
For example, an ACP file containing the lines: ! ! Comment - example ACP file ! ! swap: with: 4 5 7 6 !
/BPF=real
- specifies a maximum for the average number of breaks that will be introduced into a feature during processing. The value supplied with the /BPF qualifier is needed to calculate memory requirements as ILINK memory is allocated dynamically.
By default the number of breaks is assumed to be 2.0.
The /BPF qualifier may be used with process qualifiers /BREAK, /LLJOIN, /LPJOIN and /MERGE only.
/BREAK
- breaks features into separate features at every feature intersection point.
Features will be broken only where existing features already touch or cross (see Description section, Fig_. 1).
/EXTOL=real
- specifies maximum vector EXtension TOLerance. This is the maximum distance by which one vector may be extended or truncated to meet another. If the /EXTOL distance is exceeded then a vector end may be moved off the original line of the vector in any direction, to a point within /JNTOL tolerance. This will cause the end of the vector to rotate (see Figs 3 and 5).
The /EXTOL qualifier may be used with process qualifiers /LPJOIN and /PPJOIN only.
The /EXTOL value must be expressed in IFF units.
/FCC=file-spec
- specifies a text file which specifies replacement feature-codes which are to be given to shared features with particular feature-code combinations. Missing components of the /FCC file specification are taken from the default specification SYS$DISK:[]FCC.FCC;0.
The file has the following format for each FC-combination:
FCC 'shared feature code' [FC list]
[FC list]
where:
FCC signals the start of a new FCC definition
'shared feature code' is the shared feature code to be used to identify shared features having a combination of the listed feature codes.
FC list is a list of the feature codes. Feature codes must lie in the range 0 to 32767 inclusive.
For example:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Example FCC file
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! FCC record Shared feature Feature Codes to
! identifier code be combined
FCC 101 11,13,35:39 ! note that ranges are allowed
!
! FCC record Shared feature Feature codes to
! identifier code be combined
FCC 102 2:6,91,108,220:230
!
! Feature codes to be combined to make shared feature with FC 101 (continued)
240:242,307 ! notice that continuation lines are permitted
!
! FCC record Shared feature
! identifier code
FCC 103 ! new FCC definition
14,77,90,210 ! feature codes to be combined
214,239 ! (continued)
Note that comments may be delimited by a '!' character.
ILINK would decode the FCC definitions in the above example file as follows:
Shared feature code 101 will be applied when shared features are made of a combination of features having FC's 11, 13, 35, 36, 37, 38 and 39
Shared feature code 102 will be applied when shared features are made of a combination of features having FC's 2, 3, 4, 5, 6, 91, 108, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229 and 230
Shared feature code 103 will be applied when shared features are made of a combination of features having FC's 14, 77, 90, 210, 214 and 239
Shared features with feature-code combinations not specified in the file specified with the /FCC qualifier will be given the feature code specified by the /SHRFC qualifier (default value 999).
The /FCC qualifier may be used with process qualifier /MERGE only.
/FCP=file-spec
- specifies a text file which defines feature-code pairs for processing. Missing components of the /FCP file specification are taken from the default specification SYS$DISK:[]FCP.FCP;0.
If a /FCP file is specified, only combinations of features which have feature-codes which form one of the defined feature code pairs are processed. All other features in the input file are simply copied to the output file.
Selection of features for processing may also be done by IFF layer and by layer-pairs (see Command Qualifiers /LCP and /LAYER). An example of feature selection is given in the Examples section.
In the absence of the /FCP, /LCP or /LAYER qualifiers, all features are processed, except those in layer 0.
If the /FCP qualifier is given in conjunction with /LAYER, then only features from within the layers specified with feature codes corresponding to /FCP feature code pairs will be processed.
The /FCP qualifier may not be used in conjunction with the /LCP qualifier.
During feature alignment, positioning will be from first code onto the second, unless codes are equal, in which case it will be from lower internal feature sequence number to higher.
Note that due to the internal re-arrangement of features, features with the first column FC will be pulled onto other features with the same FC.
The feature code pair definition file is an ASCII text file with the following record format:
'FC from' 'feature-code'
where:
'FC-from' is a feature code
'feature-code' is either an individual feature code, or a feature code range. Feature codes or feature code ranges are separated by commas, tabs or spaces. Feature codes must lie in the range 0 to 32767 inclusive.
For example, an FCP file containing the lines:! ! Comment - example FCP file ! ! Move ! from: to: 20 10:12,30 10 12,40:43,60 !
/FREE_ENDS[=(FC:integer,LAYER:integer)]
- specifies that all free-ends (1-arm nodes) are to be found and reported.
If /LITES2 is specified a message is also sent to the LITES2 command file.
If either of the FC or LAYER process qualifiers are given then all free-end nodes will be output as point features into a separate final IFF layer. The layer number, and the feature code for each free-end feature, may be specified. The layer will default to the highest layer number in the file before this layer, plus one. The feature code will default to 0.
/FRT=file-spec
- specifies an FRT (Feature Representation Table) file from which ILINK can determine which feature codes have a graphical type which is suitable for ILINK processing.
Missing components of the /FRT file specification are taken from the default specification LSL$FRT:FRT.FRT;0.
Graphical types which are unsuitable for ILINK processing are:
If no FRT file is specified then it is up to the user to select out features having unsuitable graphical types using the /FCP and/or /LAYERS qualifiers as necessary.
For a detailed description of FRT file contents and layout see the "FRT User Guide".
/JNTOL=real
- specifies JoiN TOLerance - the distance apart below which points may be moved together during alignment or junction formation, (default 0.0).
With the /LPJOIN process, if both points are from the same feature then they will only be joined if they are separated by more than the /JNTOL tolerance along that feature.
The /JNTOL value must be expressed in IFF units.
The /JNTOL qualifier may be used with process qualifiers /LLJOIN, /LPJOIN and /PPJOIN only.
/KEEP=COLINEAR
- by default, points which are colinear, or which are within 1/10 of MINTOL of being colinear are deleted from the output of ILINK. When using /BREAK, this can result in points from the original data being deleted, rather than those which have been inserted. /KEEP=COLINEAR prevents colinear or near-colinear points from being deleted, whatever their origin.
/KEEP=FSN
- specifies that the parent Feature Serial Numbers (FSN's) are to be used in the output features in the /BREAK and /MERGE processes. Without this qualifier, the new output FSNs will be created sequentially.
/KEEP=PARENT
- specifies that the parent AC type 9 entries are transferred from the input to the output IFF file. Without this qualifier, these entries are ignored in the transfer in preparation for the creation of new type 9 ACs.
/LAYERS=integer[,...]
- specifies layers from which features are to be taken for processing. Features which lie in unselected layers are simply copied from the input file to the output file.
/LAYERS values must lie in the range 0 to 32767.
By default ILINK will process features in all layers except layer 0 which is reserved for registration features and grids. Layer 0 is always copied, unprocessed, to the output file unless explicitly included in the /LAYER value list.
/LCP=file-spec
- specifies a text file which defines layer-pairs for processing. Missing components of the /LCP file specification are taken from the default specification SYS$DISK:[]LCP.LCP;0.
If a /LCP file is specified, only combinations of features from layers which are from one of the defined layer-pairs are processed. All other features in the input file which do not come from layers which form one of the defined layer-pairs are simply copied to the output file.
Selection of features for processing may also be done by feature-code-pairs or by IFF layer (see Command Qualifiers: /FCP, /LAYER).
In the absence of the /LCP, /FCP or /LAYER qualifiers, all features are processed, except those in layer 0.
The /LCP qualifier may not be used in conjunction with the /FCP or /LAYER qualifiers.
During feature alignment, positioning will be from first layer onto second, unless layers are equal in which case it will be from lower internal feature sequence number to higher.
The layer-pair definition file is an ASCII text file with the same format as for the /FCP file, but with feature-codes replaced by layers.
/LIST[=file-spec]
/NOLIST (default)
- directs ILINK output to file-spec instead of to SYS$OUTPUT. By default the LIST file specification is parsed against that of the input IFF file but with the substitution of the current directory and extension '.LIS'. For example, if the input IFF file is called LSL$IF:TST.IFF then the default LIST file is SYS$DISK:[]TST.LIS.
LITES2 command sequences produced by ILINK take the following typical form:
%MESSAGE End nodes lie within /JNTOL tolerance - link deleted
%POSITION 765.3 456.89
%PING
%RESPOND
%ABANDON
%ABANDON
/LITES2[=file-spec]
/NOLITES2 (default)
- creates a LITES2 command file to take the user to potential errors. Messages generated to report a potential error are incorporated in the file. By default the LITES2 command file specification is parsed against that of the input IFF file but with the substitution of logical name LSL$LITES2CMD: and the extension '.LCM'. For example, if the input IFF file is called LSL$IF:TST.IFJ then the default LITES2 command file is LSL$LITES2CMD:TST.LCM.
/LLJOIN
- brings parts of features together where any part of one feature (or point feature) comes within /JNTOL tolerance of any part of any other feature (or point feature) (see Description section, Fig_. 2).
No feature will be joined with any part of itself.
If /LLJOIN is used with very small /JNTOL tolerance values, "pockets" or "sausage strings" may result between aligned sections. If too large a tolerance is used with /LLJOIN, an excessive processing time will result. It is important to give careful consideration to the tolerance that will be used with /LLJOIN.
/LPJOIN
- forms junctions where feature ends and/or point features almost touch lineal features anywhere along their length (see Description section, Fig_. 3).
/MERGE
- merges duplicate feature sections into single features (see Description section, Fig_. 4).
/MINTOL=real
- specifies a minimum distance tolerance. Any points closer than this tolerance will be considered duplicate and will be merged. This will have the effect of filtering the data as points can be lost in the processing. If the qualifier is not specified on the command line, the tolerance will be the maximum range (RA) coordinate divided by 2000000.
The /MINTOL value must be expressed in IFF units.
/MONITOR
/NOMONITOR (default)
- activates a progress display for the more time consuming operations. Even if /MONITOR is specified on the command line, its action is automatically disabled when the program is not being run in interactive mode.
/PAC=file-spec
- specifies that new points inserted by ILINK between original points are to receive point attribute codes according to information given in the specified text file, missing components for the specification of which are taken from the default SYS$DISK:[]PAC.PAC;0.
The file has format as in the following example:
! text from '!' to end of line is ignored
! attribute name
CAPTURE_XY
! original attribute code new attribute code
56 72
52 ! default = original code
54 76
where:
The code used for a new point inserted between two original points will be the new-code corresponding to the original code which comes first in this table. The order of lines in the /PAC file is therefore significant. For example, if lines are in order of increasing accuracy associated with each attribute code, then the new code used will correspond to the original code for the least accurate neighbour.
The /PAC qualifier may be used with the process qualifiers /BREAK, /LLJOIN and /MERGE only, and must be accompanied by the /FRT qualifier, because the capture name code must be looked up in the FRT file.
Any point attribute code encountered in the IFF file which was not in the /PAC file will be given new code = original code.
/PARENT
/NOPARENT (default)
- specifies that type 9 ACs (Ancillary Code entries) should be used in shared features to identify the particular feature from which the shared feature is derived. A type 9 AC is output to the shared feature for each original feature which shares the vector string in the shared feature. For further details of shared features see the Description sub-section "ILINK and shared or broken features".
The /PARENT qualifier may be used with process qualifiers /BREAK and /MERGE only.
/PPJOIN
- forms junctions where lineal feature ends and/or point features almost touch (see Description section, Fig_. 5).
/PROJECT (default)
/NOPROJECT
- if there are just two feature end-points that are to be joined, they are projected together. Where there are more than two, they are moved to their "centre of gravity" or mean position.
If /NOPROJECT is specified, all feature ends at a junction are moved to the position of the feature end with the highest feature priority.
The /PROJECT qualifier may be used with process qualifier /PPJOIN only.
/SHRFC=integer
- specifies the feature-code to be used to distinguish features shared by more than one input feature. The /SHRFC feature code value is only used when an explicit shared feature code is not specified in the /FCC file. The /SHRFC value must lie in the range 0 to 32767. The default /SHRFC value is 999.
The /SHRFC qualifier may be used with process qualifier /MERGE only.
/SORTARMS
- specifies that the arms in the IFF JB (Junction Block) node-to-link pointer entries in the Junction Structured input IFF file should be sorted in order of increasing orientation angle (measured anticlockwise from the positive x-direction). ILINK works on the input IFF file in situ and does not alter it in any way, other than to reorder the contents of JB entries.
/STRUCTURE
- specifies that feature end-point connectivity (link/node structure) should be determined and that this should be written into IFF Junction Structure entries in the IFF output.
An implicit /PPJOIN process is carried out with a near-zero join-tolerance to determine end-point connectivity. The nodes in the link/node structure will be at existing feature-ends and at point-features only.
Every feature in a valid Junction Structured IFF file must be a part of that structure. Therefore, input features not selected for structuring (through use the of /FCP, /FRT or /LAYERS qualifiers) will be omitted from the output file.
/SYMBOL (default)
/NOSYMBOL
- specifies that in the process specified by the /LPJOIN qualifier, symbol or point features should be moved onto the line features, subject to the feature selections operating and other qualifiers such as /VERTEX.
If /NOSYMBOL is specified, symbol features are fixed and line features moved onto them.
The /SYMBOL qualifier may be used with process qualifier /LPJOIN only.
/TOL=file-spec
- Specifies that a tolerance is to be applied to each point according to its point attribute code. These attribute codes, the JNTOL (join) and extension (EXTOL) tolerances which are to be applied to them, and the attribute name, are all contained in the specified text file, missing components for the specification of which are taken from the default SYS$DISK:[]TOL.TOL;0.
The file has format as in the following example:
! text from '!' to end of line is ignored
! attribute name
CAPTURE_XY
! attribute code join tolerance extension tolerance
56 1 2.5
52 2 ! default EXTOL = JNTOL
54 ! default JNTOL from /JNTOL qualifier
64 5.5 0
63 0
The /TOL qualifier may be used with the process qualifiers /LPJOIN and /PPJOIN only, and must be accompanied by the /FRT qualifier, because the capture name code must be looked up in the FRT file.
Any point attribute code encountered in the IFF file which was not in the /TOL file will be given tolerances from the /JNTOL and /EXTOL qualifiers.
/VERIFY
/NOVERIFY (default)
- specifies that a message should be sent to the LITES2 command file for each /LPJOIN or /PPJOIN join which is across a distance within the range VRTOL to JNTOL.
No output file will be created.
The /VERIFY qualifier may be used with the process qualifiers /LPJOIN and /PPJOIN only.
/VERTEX
/NOVERTEX (default)
- specifies that in the process specified by the /LPJOIN qualifier, priority should be given to joining feature ends to original feature vertices over joining to any inter-vertex join position along a vector.
The /VERTEX qualifier may be used with process qualifier /LPJOIN only.
/VRTOL=real
- specifies VeRification TOLerance (default 0.0) - the lower bound of the join distance verification range (VRTOL to JNTOL) within which each /PPJOIN or /LPJOIN join will be counted. The distribution of join distances between ten equal subintervals over this range is finally displayed as a histogram.
The /VRTOL value must be expressed in IFF units.
The /VRTOL qualifier may be used with process qualifiers /LPJOIN and /PPJOIN only.
/WARNING
/NOWARNING (default)
- outputs extra diagnostic messages, in particular NOTMERGE, NOMERGE and ORIGPNTDEL.
--------------------------------------------------------------------------------
For the /PPJOIN and /STRUCTURE processes, this record has a short fixed length for every feature, but for the /LLJOIN, /MERGE, /LPJOIN and /BREAK processes, it must also include the coordinates of every feature point.
The maximum size of IFF file which can be processed by ILINK is therefore dependant on the process required and the size of the user's virtual-page-count limit.
|-----------|---------------------------------------------| | | PROCESS QUALIFIER M P | |'*'=Legal | L L M O P R V S V | | | E J A I I N A O S E Y E V | |'.'=Illegal| X N Y L T N I R J H R M R R | | | A B T F F F T E L I E T T P E E R T I B T T | | | C P O C C R O R C S S O O A N C F O F O E O | | PROCESS | P F L C P T L S P T 2 L R C T T C L Y L X L | |-----------|---------------------------------------------| | BREAK | . * . . * * . * * * * * * * * . . . . . . . | | FREE_ENDS | . . . . * * . * * * * * * . . . . . . . . . | | LLJOIN | . * . . * * * * * * * * * * . . . . . . . . | | LPJOIN | . * * . * * * * * * * * * . . . . * * * * * | | MERGE | * * . * * * . * * * * * * * * . * . . . . . | | PPJOIN | . . * . * * * * * * * * * . . * . * * . . * | | SORTARMS | . . . . . . . . . * . * . . . . . . . . . . | | STRUCTURE | . . . . * * . * * * * * * . . . . . . . . . | |-----------|---------------------------------------------|
-------------------------------------------------------------------------------
ILINK is an IFF geometry tidying and structuring utility.
The following geometry tidying operations are available:
ILINK may be used to operate on a subset of the features in an IFF file by use of the /LAYERS and /FCP qualifiers. Only features which fall within specified layers and which have a specified feature code will be processed. All other features will be transferred from input to output IFF files unchanged. All IFF Junction Structure entries present in the IFF input will be ignored. These qualifiers may not be used with the /SORTARMS process.
The default ILINK action is to operate on ALL features in the IFF file except those which lie in IFF layer 0. Layer 0 is reserved for registration features and grids, but will be processed if it is explicitly included in the /LAYERS qualifier value list. Note that there is an upper maximum to the number of different layers of 500. Any NO entry defining the same layer as the current one being read is ignored in order not to use up this layer limit too soon, but this will only work for sequential identical layers, and later reappearance of a previously encountered layer after another new layer has been started will count as a different layer.
ILINK will only process "line-strings". Features whose feature-code, as given in the FRT table specified with the /FRT qualifier, do not have graphical type 1 ("line-string"), will normally be rejected from processing (if selected) and transferred from the input file to the output file unchanged.
The only exception to this rule is that when the /FRT qualifier is used with /LPJOIN, features with graphical type 11 (symbol-string) will be processed and will be treated correctly as symbol-strings (ie. strings of point-features), rather than as line-strings.
Compound features (ie. features containing more than one pen-up ST entry), will be separated into independent parts on input, and will not be reassembled before output. The reason for this is that these parts themselves may be broken into further parts during processing, so that it is not clear which parts, if any, should be reassembled with which.
It is important to realise that although ILINK is a very powerful geometry idealisation utility, it cannot totally replace the skills of an experienced cartographer.
The quality of the ILINK output IFF file is directly proportional to the quality of the data in the input IFF file. If the input file quality is so poor that an excessively large /JNTOL tolerance has to be used, no guarantee of the aesthetic appeal of the output data can be made. Line ends may be aligned quite correctly in relation to a set of mathematical rules, but if ILINK is given large tolerances, the line end combinations may reflect cartographic nonsense. The user should determine and rectify the cause of poor input data early in a production flowline, to save unnecessary frustration and wasted ILINK processing time.
------------------------------------------------------------
OPTION 1 Feature breaking - /BREAK
- The ILINK /BREAK process breaks features into separate features at every feature intersection point.
Junctions are created and features broken only where existing features already touch or cross (see Description section, Fig_. 1).
OPTION 2 Feature Free Ends - /FREE_ENDS
- The ILINK /FREE_ENDS process reports feature free ends. This is a separate ILINK process, similar to the use of /BREAK or /STRUCTURE, involving the use of very small tolerances, and therefore changes in the feature geometry are possible.
The data file resulting from /FREE_ENDS processing is created from the input data with the specified /MINTOL value. As a result it treats as 'not free' any end points which would get pulled to a common junction, and any points lying within MINTOL of each other may be moved.
This option, like /BREAK or /STRUCTURE, should only be used after other ILINK options, over which there is more control over the output.
------------------------------------------------------------
OPTION 3 Feature alignment - /LLJOIN
The /LLJOIN qualifier causes ILINK to bring parts of features together where any part of one linear feature (or point feature) comes within tolerance of any part of any other linear feature (or point feature). (See Fig_. 2).
The tolerance used to determine whether a feature should be aligned is specified using the /JNTOL qualifier. (See Command Qualifiers: /JNTOL).
If /LLJOIN is used with a very small /JNTOL tolerance value, "pockets" or "sausage strings" will result between aligned sections. However, if too large a tolerance is used with /LLJOIN, an excessive processing time will result. It is important to give careful consideration to the tolerance that will be used with /LLJOIN.
Feature alignment priority, which determines which feature is moved onto which, may optionally be set using a definitions file specified using the /FCP qualifier. (See Command qualifiers: /FCP).
In the absence of an /FCP file, feature alignment priority is based on the internal sequence numbers of each pair of features under consideration. Feature sequence numbers normally increase monotonically through the IFF file. The feature with the lower internal sequence number will be moved onto the feature with the higher internal sequence number.
If an /FCP qualifier is supplied, only feature pairs having the specified feature codes will be aligned.
The /FCP file contains pairs of feature codes which define feature alignment priority. During feature alignment, positioning will be from the first feature code onto the second. If feature codes are equal, the feature with the lower internal sequence number will be aligned onto the one with the higher internal sequence number.
The alignment process is deliberately constrained so that in the vicinity of isolated junctions where lines cross or meet at corners, junctions are formed at a single point only and line sections are not "pinched together" along a continuous length.
Any junctions formed during the alignment process between feature ends are incidental to the main purpose of this process which is to align continuous line sections. The /LPJOIN and /PPJOIN processes are specifically designed for line-end to line and line-end to line-end junction formation and will generally produce "better" junctions.
------------------------------------------------------------
OPTION 4 Feature-end to feature joining - /LPJOIN
The /LPJOIN qualifier causes ILINK to move the free ends of features onto other line or point features. (See Fig_. 3).
The selection of the feature to which a free end is to be joined is controlled by 2 tolerances:
The join tolerance sets the distance below which the end point may be moved onto the target feature. If both the free end point and the intersection point on the target feature are from the same feature then they will only be joined if they are separated by more than /JNTOL distance along the feature.
The extension tolerance sets the maximum distance by which one vector may be extended or truncated to meet another before a vector end is moved off the original line of the vector, to a point within the /JNTOL tolerance in any direction, causing it to rotate (see Figures 3 and 5).
Some user applications require that priority should be given to joining free ends to original feature vertices on the "target" linear feature. The /VERTEX qualifier ensures that free feature ends are moved to original feature vertices which are within the tolerance specified by /JNTOL. This priority weighting overrides a choice of an inter-vertex join position along a vector.
/LPJOIN will not join feature ends to any position along the first or last vector of any feature that is within the /EXTOL tolerance of the feature end. This is because it is difficult to allow such joins without introducing the possibility that the end vector moved onto will not subsequently be moved itself. This would leave hanging in space the end which was moved in the earlier operation. As a result it is recommended that /PPJOIN is always applied after using /LPJOIN.
Note that /PPJOIN should not be used before /LPJOIN, as feature ends pulled together by /PPJOIN may be pulled apart again by /LPJOIN.
------------------------------------------------------------
OPTION 5 Feature merging - /MERGE
The /MERGE qualifier causes ILINK to merge duplicate feature sections (i_.e_. parts of features which have identical coordinates with parts of other features) together into single "shared features" (See Fig_. 1).
If an /FCP qualifier is supplied, only feature pairs having the specified feature codes will be merged.
The feature code given to a "shared" feature is taken from the value supplied with the /SHRFC qualifier (default 999), unless a Feature Code Combination (_.FCC) file is specified with the /FCC qualifier. In this case the feature code given to a shared feature which results from the merging of features with any given set of feature codes, will be taken from the FCC file definition for the feature code which is to correspond to this feature code combination (if this combination is present in the FCC file).
Using this /FCC mechanism, it is possible to assign a particular feature code to every possible category of shared features, such as house-fence; river-road; river-railway-road; forrest-road, etc_.
The feature codes of each of the component features which formed the shared feature are not lost. They are output in type 1 AC (Ancillary Code) entries within the shared feature. (See Description sub-section "ILINK IFF output file structure and content" - AC entry).
The code field of a type 1 AC is used to transmit the parent feature's feature code. If the /PARENT qualifier is selected, the code field of a type 9 AC is also used to transmit an identifier which is unique to the parent feature.
Single feature - link not shared:
NF 1 1 - start of feature with FSN 1
FS 24 0 0 0 feature code 24
ST 2 0 - 2 point link
90.8 100.8
110.7 109.4
EF - end of feature
Shared feature - link shared by 3 features in input IFF file
NF 21 21 - start of feature with FSN 21
FS 999 0 0 0 - feature code 999 (/SHRFC was not specified
and so the default has been used)
AC 1 30 - type 1 AC carrying the feature code (30)
of first feature sharing this link
AC 9 112 - type 9 AC carrying the FSN (112) of
first feature sharing this link. This AC
is only present as the /PARENT qualifier
was used
AC 1 67 - type 1 AC carrying the feature code (67)
of second feature sharing this link
AC 9 115 - type 9 AC carrying the FSN (115) of
second feature sharing this link. This AC
is only present as the /PARENT qualifier
was used
AC 1 2 - type 1 AC carrying the feature code (2)
of third feature sharing this link
AC 9 325 - type 9 AC carrying the FSN (325) of
third feature sharing this link. This AC
is only present as the /PARENT qualifier
was used
ST 2 0 - the shared 2 point link
90.8 100.8
110.7 109.4
EF - end of shared feature
It is (theoretically) possible to reconstruct the original (non-shared) data structure using the information contained in the type 1 and type 9 ACs, even though, as in the example above, one feature now represents the location of three features in the input file.
------------------------------------------------------------
OPTION 6 Feature-end to feature-end joining - /PPJOIN
The ILINK /PPJOIN process forms junctions where lineal feature ends and/or point features almost touch (see Fig_. 5).
The selection of the feature-end to which a free end is to be joined is controlled by 2 tolerances:
The join tolerance sets the distance below which the end point may be moved onto the target feature.
The extension tolerance sets the maximum distance by which one vector may be extended or truncated to meet another before a vector end is moved off the original line of the vector, to a point within the /JNTOL tolerance in any direction, causing it to rotate (see Fig_. 3 and 5).
The precise action of the /PPJOIN process is controlled by the /PROJECT qualifier. By default the /PROJECT qualifier is active and the action of the ILINK /PPJOIN process is as follows:
This action is changed if /NOPROJECT is specified. All feature ends at a junction are moved to the position of the feature end with the highest feature priority.
Feature alignment priority, which feature is moved relative to another, may optionally be set using a definitions file specified using the /FCP qualifier. (See Command qualifiers: /FCP).
In the absence of a /FCP file, feature alignment priority is based on the internal sequence numbers of each pair of features under consideration. The feature with the lower internal sequence number will be moved relative to the feature with the higher internal sequence number.
If a /FCP qualifier is supplied, only features having the specified feature codes will be aligned.
The /FCP file contains pairs of feature codes which define feature alignment priority. During feature alignment, positioning will be from the first feature code onto the second. If feature codes are equal, the feature with the lower internal sequence number will be aligned with the one with the higher internal sequence number.
------------------------------------------------------------
OPTION 7 Arm sorting - command qualifier /SORTARMS
Some user applications require that the arms which radiate from a junction must be in a consistent order. The ordering of the junction arms which radiate from a junction may be specified using the /SORTARMS qualifier. ILINK /SORTARMS specifies that the arms in IFF JB (Junction Block) entries should be sorted with orientation angle increasing, (measured anticlockwise from the positive X-direction).
This option, if used alone, will operate on a junction structured IFF file in situ (although you are still required to provide ILINK with a dummy output filespec).
------------------------------------------------------------
OPTION 8 The IFF junction structuring process - /STRUCTURE
A "link/node" structure is a data structure which contains information connecting every link record to the node records corresponding to each of its ends, and also connecting every node record to all of the link records which hold links ending at this node.
A powerful ILINK feature is the ability to create an IFF link/node data structure from unstructured IFF vector input. This IFF link node structure is referred to as "IFF Junction Structure"
When the ILINK /STRUCTURE qualifier is given, the output IFF file will contain a link/node structure in the form of IFF "Junction-Structure" entries. For a description of IFF junction structure see the "IFF User Guide".
The nodes in the link/node structure will all be at existing feature-ends and at point-features only. An implicit /PPJOIN process is carried out with a near-zero join-tolerance to determine end-point connectivity.
--------------------------------------------------------------------------------
ILINK is designed to complement the LAMPS graphic editor LITES2. No automatic geometry correction software can correct all geometric errors in digitised data and some tasks can only be performed manually by a skilled cartographic operator. To facilitate such editing ILINK will optionally generate a LITES2 command file. This can be used to direct the user to the position of the suspected error within LITES2. The positions supplied in the LITES2 command file locate the suspected error and so provide a mechanism for semi-automatic editing.
An entry is made in a LITES2 command file if ILINK detects one of the following potential error situations:
%MESSAGE End nodes lie within /JNTOL tolerance - link deleted %POSITION 10.000 10.000 %TEST $CURSINWIN %ELSE %ZOOM 1 %PING %RESPOND %ABANDON %ABANDON
%MESSAGE Node has only one arm. %POSITION 1890.030 1627.923 %TEST $CURSINWIN %ELSE %ZOOM 1 %PING %RESPOND %ABANDON %ABANDON
%MESSAGE Point moved to ( 242.157, 123.456) %POSITION 241.726 125.824 %TEST $CURSINWIN %ELSE %ZOOM 1 %PING %RESPOND %ABANDON %ABANDON
To enable the LITES2 operator to identify the contents of a LITES2 command file and to facilitate the use of the LITES2 command file sorting utility LCMORG, ILINK outputs a standard header at the start of the LITES2 command file. The following is a typical example:
%POSITION 0.000 0.000 %POSITION 100.000 100.000 %ABANDON %MESSAGE %MESSAGE L I T E S 2 C O M M A N D F I L E %MESSAGE %MESSAGE created by %MESSAGE %MESSAGE ============================= I L I N K ============================== %MESSAGE %MESSAGE ILINK invoked by TIM using terminal LTA1: at 12-JUN-1987 14:41:00.13 %MESSAGE %MESSAGE Command line: %MESSAGE %MESSAGE ILINK SOILS SOILS2/PPJOIN/JNTOL=50/LAYER=1/LITES2 %MESSAGE %MESSAGE ====================================================================== %MESSAGE
ILINK directs all LITES2 command file output to the file directory defined by the logical name LSL$LITES2CMD. As ILINK processing tends to be iterative, it is strongly recommended that this directory is regularly purged of unwanted LITES2 command files.
--------------------------------------------------------------------------------
ILINK is designed to replace the obsolete Laser-Scan IFJ utility. IFJ generates IFF junction structure with the restriction that junctions can only be created at feature ends. Features cannot be split to form a junction at intersection points. With IFJ the features must be manually prepared for junction formation using the LITES2 graphical editor. Clearly ILINK offers a very cost effective alternative to IFJ as features can be automatically split without recourse to expensive operator interaction.
This section is designed to guide Laser-Scan customers who are replacing IFJ within their production flowlines with ILINK.
Qualifiers available with IFJ are:
The 2 integer values nx and ny specify that IFJ is to split the input IFF file into (nx) by (ny) (maximum 10x10) node-sectors to aid searching for matching junctions.
ILINK has no equivalent qualifier, but will always divide the file into (nx) by (ny) square node-sectors, with a maximum of 10x10.
Specifies the minimum distance between junctions that are to be considered separate. The default tolerance is 0.0.
The equivalent qualifier for ILINK is:
/JNTOL=real
Specifies the maximum number of arms allowed in a single junction. An error will occur if a junction is found with more than the specified number of arms. By default, IFJ allows a maximum of 4 arms.
ILINK has no equivalent qualifier. ILINK imposes no limit on the number of arms per junction.
The user should specify the following IFJ command line to create a junction structured IFF output file using a junction tolerance of 1.5 IFF units:
$ IFJ out-file-spec=in-file-spec/TO:1.5<CR>
This is equivalent to running ILINK twice as follows:
$ ILINK in-file-spec work-file-spec/PPJOIN/JNTOL=1.5<CR>
$ ILINK work-file-spec out-file-spec/STRUCTURE<CR>
--------------------------------------------------------------------------------
ILINK is designed to replace the Laser-Scan CBA (Common Boundary Alignment) utility. CBA is a utility for common-boundary alignment and/or end-point joining.
This section is designed to guide Laser-Scan customers who are replacing CBA within their production flowlines with ILINK.
Qualifiers available with CBA are:
ILINK has no qualifiers equivalent to the /AC qualifier above, but every other option can be effected using ILINK as follows:
ILINK will only perform one /LLJOIN, /LPJOIN or /PPJOIN process per run. The /MONITOR and /LAYERS qualifier is the same in ILINK as for CBA (except that the standard DCL list-format is somewhat different from the "m:n" range format used by CBA).
Assuming point-features to have feature-code 100; lineal-features 101 and areal features 102, the following examples illustrate how ILINK can be used to emulate CBA:
(1) The CBA command line:
$ CBA out-file-spec=in-file-spec/AA:real<CR>
is equivalent to the ILINK command line:
$ ILINK in-file-spec out-file-spec/LLJOIN -<CR>
_$ /JNTOL=tol/FCP=file-spec<CR>
with the /FCP file containing the line: 102 102 ! areals onto areals
(2) The CBA command line:
$ CBA out-file-spec=in-file-spec/AA:real/AL:real/LEE:real<CR>
is equivalent to the two-stage ILINK process defined by the commands:
$ ILINK in-file-spec temp-file-spec/LLJOIN -<CR>
_$ /JNTOL=real/FCP=fcp-file-spec<CR>
with the /FCP file containing the lines: 102 102 ! areals onto areals 102 101 ! areals onto lineals
followed by:
$ ILINK temp-file-spec out-file-spec/PPJOIN -<CR>
_$ /JNTOL=real/FCP=fcp-file-spec<CR>
with the /FCP file containing the line:
101 101 ! lineals onto lineals
(3) The CBA command line:
$ CBA out-file-spec=in-file-spec/LEP:real<CR>
is equivalent to the ILINK command line:
$ ILINK in-file-spec out-file-spec/LPJOIN/JNTOL=real -<CR>
_$ /FCP=fcp-file-spec/FRT=frt-file-spec<CR>
where the fcp-file-spec specifies a file containing line and symbol-string (DFAD "point") feature code selections for processing. The frt-file-spec specifies an FRT (Feature Representation Table) file. For a description of FRT files see the "FRT User Guide".
--------------------------------------------------------------------------------
IFF files produced as output from ILINK take their header entries from the input IFF file. For a detailed description of the content and structure of an IFF file see the "IFF User Guide".
Every feature, or part of original feature, will be output to the same layer in the output file as it was found in the input file.
If /BREAK is specified, and a feature is broken into parts, these parts will be contiguous and ordered within the file as they are along the original feature. (see Description sub-section "ILINK and shared or broken features"). The qualifier /KEEP=FSN may be used to specify that the parent feature FSNs will used for the output features, otherwise the output FSNs will be created sequentially.
ILINK output IFF file characteristics, by IFF entry, are:
Layer 0 - simply copied from input IFF file, (unless /LAYER=0 used
to explicitly include layer 0 for ILINK processing)
NO - copied from input IFF file.
NF - feature FSNs (Feature Serial Numbers) are resequenced by ILINK.
FS - by default this contains the feature-code from the input file
feature. In the case of shared features, the feature code is taken from
that specified by values with the /SHRFC or /FCC qualifiers. If no
feature code is specified using the /SHRFC or /FCC qualifiers a default value
of 999 is assumed.
[AC] - Any ACs present in the input IFF file are are copied to the output
IFF file, except type 1 and 9 ACs.
ILINK reserves these ACs for special coding, see Description sub-section
"ILINK and shared or broken features".
ST - there may be several STs in a feature. Together they contain the
coordinates which define the feature.
EF - end of feature
_.
_.
Other IFF features _._._.
_.
_.
EO - end of layer
EM - end of map
EJ - end of file
--------------------------------------------------------------------------------
The ILINK /BREAK and /MERGE processes both result in input features being broken into parts and output as separate features.
It is sometimes required to know which original feature each part feature has come from. For this purpose, the /PARENT qualifier is provided to specify that AC type 9 entries should be put into every part feature of a feature that is split during the /BREAK process, or into every compound feature produced during the /MERGE process, so that the information is there in principle from which all original "parent" features can be reconstituted.
The qualifier /KEEP=FSN may be used to specify that the parent feature FSNs will used for the output features, otherwise the output FSNs will be created sequentially.
The /BREAK process will break features where they touch or cross. The parts of broken features will be contiguous in the output file, and ordered as they were along the original feature.
The qualifier /KEEP=FSN may be used to specify that the parent feature FSNs will used for the output features, otherwise the output FSNs will be created sequentially.
If the /PARENT qualifier is used then an AC type 9 entry is written into each part feature to hold a number which can be used to identify the original "parent" feature which this feature belongs to (see also /MERGE).
The /MERGE process (used, for example, where a series of exactly aligned polygons are required to have duplicate sections merged into single "shared" or "compound" features) will break features at junctions where aligned features separate. Two or more exactly aligned part features are then merged into a single compound feature.
For each feature merged into a compound feature, an AC type 1 entry is written to hold the feature code of the feature being merged, followed by every other AC entry from this feature. If the /PARENT qualifier is used then an AC type 9 entry will follow the AC type 1 entry, to hold a number which can be used to identify the original "parent" feature which this feature belongs to (see also /BREAK).
The qualifier /KEEP=FSN may be used to specify that the parent feature FSN's will used for the output features, otherwise the output FSNs will be created sequentially.
It may be required to give a feature code to compound features which allows them to be distinguished from other features according to their graphical representation when displayed in LITES2.
All shared features are given the same special feature code, which is 999 by default, but may be specified using the /SHRFC qualifier (see also /SHRFC)
If it is required to distinguish graphically between compound features arising from the merging of different combinations of feature codes, the /FCC qualifier mechanism can be used to assign a particular feature code to each possible feature code combination, such as house-fence; river-road; river-railway-road; forrest-road, etc_. Combinations not found in the /FCC file are given the /SHRFC code. (see also /FCC).
Sometimes the AC coding for each component feature in a compound feature may be dependent on the direction of the component relative to the compound point string, such as left/right AC codes, for example, which give the code for the area to the left and right of a feature. Whereas normally all AC entries are copied into the compound feature exactly as they are found in the feature being merged, the /ACP qualifier can be used to specify that AC-type pairs within a compound feature which are found in the /ACP file should have their AC types swapped (see also /ACP).
Note that ILINK reserves type 1 and type 9 ACs for special coding. Type 9 ACs found in the input IFF file will be ignored and will not be transmitted to the output IFF file, because the parent feature identifiers which they carry are unique only within the run of ILINK in which they are produced.
--------------------------------------------------------------------------------
In most production flowlines ILINK processing is done in the batch environment. Due to the very nature of the geometry idealisation problem, ILINK processing can take quite a long time. By default, ILINK outputs copious run-time diagnostics as an aid to processing progress analysis. This is the opposite behaviour to that exhibited by those LAMPS (Laser-Scan Automated Map Production System) utilities which are designed primarily for quick interactive applications. At any time during the execution of a batch job the VMS TYPE utility may be used to type the contents of the batch process log file.
In the ILINK processing examples, presented in this section, no attempt is made to summarise the diagnostic output and so it may be regarded as typical of what a user will see when interpreting a batch log.
$ ILINK DUA3:[BUREAU.SSEW]S106SEF S106SEF.JOINED_IFF/PPJOIN
:-/JNTOL=1.5/VRTOL=0.5
ILINK - Version 2.0
ILINK COMMAND INTERPRETATION
*******************************************************************************
Input from : DUA3:[BUREAU.SSEW]SSEW106SEF.IFF;5
Output to : DUA3:[BUREAU.SSEW]S106SEF.JOINED__IFF;2
Process : PPJOIN : Ends with ends junction formation
: ends projected
Join tolerance : 1.500
Max vector extension : 1.500
Min verification tolerance : 0.500
Layers to be processed : All layers, (excluding layer 0).
Output structure : Normal IFF structure.
LITES2 command file : None specified.
FRT file : None specified.
FCP file : None specified.
ILINK LOG
*******************************************************************************
Scanning IFF file for dynamic memory allocation
Reading data from IFF input
Creating link/node structure
Setting up a node for each feature end
Merging nodes separated by less than 1.000000
Creating node arms
Joining ends to ends
Writing to IFF output
Counting arms-per-node
ILINK STATISTICS
*******************************************************************************
Input features processed : (Point 0), (Open 716), (Closed 21)
Processed features output : (Point 0), (Open 715), (Closed 22)
Total features in IFF input : 740
Total features in IFF output : 740
Nodes found joined to 0 arms (single point features): 0
1 arm (unattached links) : 0
2 arms (link joined to link) : 20
3 arms (link joined to links) : 450
4 arms (link joined to links) : 21
5+ arms (link joined to links) : 0
Total : 491
-----------------------------------------------------------------------------
Join separations over the range 0.500 to 1.500
Range Count | Proportion
---------------|-------------------------------------------------------------
0.500+ 161 | ********************
0.600+ 154 | *******************
0.700+ 70 | *********
0.800+ 41 | *****
0.900+ 23 | ***
1.000+ 22 | **
1.100+ 10 | *
1.200+ 8 | *
1.300+ 2 | *
1.400+ 0 |
---------------|-------------------------------------------------------------
ELAPSED: 0 00:01:08.79 CPU: 0:00:39.34 BUFIO: 8 DIRIO: 1697 FAULTS: 423
$
This example demonstrates the use of the /PPJOIN and /JNTOL qualifiers for joining all feature ends to feature ends, within a (general)join and extension /truncation join tolerance of 1.5, and a minimum join verification tolerance of 0.5 IFF units.
The user has specified that input is to be from the file DUA3:[BUREAU.SSEW]S106SEF.IFF;0. ILINK has taken the missing extension and version fields for the file-spec from the default input file specification 'LSL$IF:IFF.IFF;0'. Output is to be to the file DUA0:[BUREAU.SSEW]S106SEF.JOINED_IFF;3. ILINK has taken the missing output file device and directory fields from the parsed input file-spec. The output file version number defaults to the highest existing version number of the file, incremented by one.
Notice that in the absence of an explicit /EXTOL qualifier, the maximum vector extension had been set to have the same value (1.5) as /JNTOL. Vector free ends will be projected, not merely moved to the centre of gravity of all the free ends within the /JNTOL tolerance.
The /VRTOL qualifier has been used to give the minimum join verification tolerance a value greater than the default of 0.0 so that the histogram produced will show the distribution of joins made over the more critical end of the join tolerance range rather than including all joins including those across zero distance.
No /FRT qualifier has been specified and so, in the absence of any explicit /LAYER layer selections, it must be assumed that the user believes that all the features in DUA3:[BUREAU.SSEW]S106SEF.IFF;12 are suitable for ILINK processing. If an FRT (Feature Representation Table) file is specified, ILINK is able to look up the graphical type of each feature to determine whether processing is valid for that graphical type. Features with inappropriate graphical types are copied, unprocessed, to the output file, (see Command Qualifiers: /FRT).
No /LAYER selections or /FCP file is specified and so all features will be processed. Feature alignment priority, (which feature is moved relative to another), is defined by default using the feature internal sequence number, (see Description).
The "ILINK STATISTICS" section of the log summarises the results of the processing run. The log shows that 1 feature that was open on input is closed by the ILINK processing (i.e. first and last points are now coincident).
The "nodes found" section of the log shows how many nodes are present in the output file. The nodes are classified by node degree (i_.e_. by the number of arms radiating from the node).
If the user subsequently ran ILINK to produce an IFF junction structure (/STRUCTURE), the zero arm junctions would be omitted from the IFF junction structure, because the concept of a zero arm junction is (unfortunately) foreign to IFF format. Instead the zero arm junctions would be output as single point features which do not contain any IFF junction entries.
The "join separation" section shows the distribution of join distances between ten equal subintervals over range VRTOL to JNTOL. Here it can be seen from the way the histogram tails off that the join tolerance as used has probably found all of the joins which the user intended it to. It it had not tailed off then the /JNTOL value might have been too small. It it had tailed off and then picked up again, the /JNTOL value might have been too large, so that some joins were made which the user had not intended. Of course, if the digitising is very rough and feature density is very high, there may be no tolerance value which can separate good from bad joins in this way.
At the end of the run the standard LAMPS timing statistics summary is output. The inexperienced user may find it instructive to try successive runs on the same data, altering between each run only the /EXTOL and /JNTOL tolerance values. Significant variations in processing time will result if wide variations in tolerance values are used. It cannot be over-stressed that ILINK is not a substitute for accurate source digitising. The submission of inaccurate digitising to ILINK requires bigger processing tolerances and longer run times, and is also likely to introduce various other problems.
The run has completed successfully and DCL symbol $STATUS is set to SS$_NORMAL - "normal successful completion".
$ ILINK POLYSEG.IFF;5 POLYSEG.A/LPJOIN/JNTOL=4.0/LAYER=1/LITES2<CR> $ ILINK POLYSEG.A POLYSEG.B/BREAK/LAYER=1<CR> $ ILINK POLYSEG.B POLYSEG.IFJ/STRUCTURE/LAYER=1<CR> (Output to SYS$OUTPUT not shown here).
This example demonstrates the use of the /LPJOIN and /JNTOL qualifiers for joining feature ends to features, within a /JNTOL tolerance of 4.0 coordinate units.
The user has specified that input is to be from the file DUA1:[PACKAGE.POLYGONS]POLYSEG.IFF;5. ILINK has taken the missing device and directory fields for the file-spec from the default input file specification 'LSL$IF:IFF.IFF;0'. Output is to be to the file DUA1:[PACKAGE.POLYGONS]POLYSEG.IFJ;1 via two intermediate stages. ILINK has taken the missing output file device and directory fields from the parsed input file-spec. The output file version number defaults to the highest existing version number of the file, incremented by one.
The user has used the /LITES2 qualifier with the /JNTOL process to specify that messages resulting from the deletion of features which are less than the /JNTOL tolerance in length will be sent to a LITES2 command file. As the optional /LITES2 qualifier file-spec value has been omitted, the default LITES2 command file-spec will be used. This uses logical name LSL$LITES2CMD and the filename from the input IFF file specification and the extension '.LCM'.
Notice that in the absence of an explicit /EXTOL qualifier, the maximum vector extension has been set to have the same value (4.0) as /JNTOL.
Although /LAYER=1 is specified, no /FRT qualifier has been specified. It must therefore be assumed that the user believes that all the features layer 1 of DUA3:[BUREAU.SSEW]S106SEF.IFF;12 are suitable for ILINK processing. If an FRT (Feature Representation Table) file is specified, ILINK is able to look up the graphical type of each feature to determine whether processing is valid for that graphical type. Features with inappropriate graphical types are copied, unprocessed, to the output file, (see Command Qualifiers: /FRT).
No /FCP file is specified and so all features in the specified (/LAYER=1) layer will be processed. Feature alignment priority, (which feature is moved relative to another), is defined by default using the feature internal sequence number, (see Description).
The /BREAK qualifier results in all features being broken at feature intersections. These intersections will be represented by junctions in the junction structured IFF output file.
Had any input features been shorter than the /JNTOL tolerance or had resulted in the formation of one arm nodes, messages would have been output to the LITES2 command file.
The run has completed successfully and DCL symbol $STATUS is set to SS$_NORMAL - "normal successful completion".
See ilinkmsg.html generated from ILINKMSG.RNO.