EDGEMATCHING WITHIN LITES2
The EDGEMATCH command allows features on either side of a predefined line to be
JOINed, TIEd or EXTENDed automatically on this line.
This section of the user manual explains in detail how this is achieved
and how to use the command.
DEFINING A BASE TO EDGEMATCH TO
Before features can be EDGEMATCHed a base must be defined. This
base is a vector of a linear feature. To define it, a feature is found;
the cursor is moved to the required vector (first vertex, or between
the two vertices) with the VERTEX, NEXT, PREVIOUS, FRACTION (etc)
commands; finally the command BASE EDGE is given. Any previously defined
edgematching base will have been overwritten.
Details of the current edgematching base can be seen by giving the
SHOW BASE command.
CONTROLLING EDGEMATCHING
Default settings of things that control edgematching may need to be
altered. These are:-
* TOLERANCE EDGE - for finding points within this
distance of the line, and then within this distance of the projection
of the aforementioned point on the line. The default is set to 1.5
sheet mms
* TOLERANCE PROPAGATE - any mismatch between edgematched
features will be propagated this distance back along both features.
If no propagation is required (ie the mismatch is to be taken
out on the first vector of each feature) then this value should
be set to 0_.0. The default is 10 sheet mms.
* MATCH FSN - only features with the same FSN
will be edgematched.
OFF by default.
* MATCH FC - only features with the same FC
will be edgematched.
ON by default.
* MATCH MAP - only features within the same
map will be edgematched.
ON by default.
* MATCH LAYER - only features within the same
layer will be edgematched.
ON by default.
* MATCH PC - only features with the same process
code will be edgematched.
OFF by default.
* MATCH AC - only features which have exactly
matching AC types 2, 3, 4 and 5 will be edgematched.
OFF by default.
Details of the current settings can be seen with the SHOW TOLERANCE and
SHOW MATCH commands.
Note that MATCH settings are used by the TIE and JOIN command, and that
the TOLERANCE PROPAGATE setting is used by the PROPAGATE command.
INVOKING EDGEMATCHING
There are three commands to invoke edgematching - EDGEMATCH JOIN,
EDGEMATCH TIE and EDGEMATCH EXTEND. These are based on the LITES2 JOIN,
TIE and EXTEND commands.
LITES2 does not allow a feature to be JOINed (or TIEd) to itself.
This means that EDGEMATCH JOIN will not produce closed
features. To achieve this effect, it is necessary to use the
EDGEMATCH TIE command first, to produce features whose ends are
coincident, then EDGEMATCH JOIN will give the desired
result.
WHAT EDGEMATCHING DOES
The program acts as follows (EDGEMATCH JOIN and EDGEMATCH TIE):-
- It SEARCHes for the next end of a feature (graphical types 1 6 11 _& 12)
which lies within the edgematching tolerance of the edgematching
base (and satisfies any current SELECTion criteria).
It will not find the base itself.
- It drops the cursor perpendicularly onto the base (or its
extension) - position A
- It FINDs the features (that satisfy the current SELECTion criteria)
whose ends lie within the edgematching tolerance of the cursor. If
there are several, only the four closest are considered; if there are
none, then the program returns to step 1).
- It looks at the (up to) four features that have been found
and checks them against certain criteria (see below).
The closest feature that satisfies all the criteria is accepted. If
none of the four features satisfy all the criteria then the program
returns to step 1).
- A perpendicular is dropped from the end of this found feature onto
the base (or its extension) - position B. The mean of position A and
position B is computed - if it lies outside the base, it is moved onto
the end of the base - and the two features are TIEd or JOINed,
as appropriate, at this point. Any mismatch is propagated along
each feature the defined distance.
- For TIE, one of the two features is allowed to be in a read-only map.
In this case, the end of the editable feature is moved to the nearest position
on the baseline to the end of the read only feature.
- If the features are TIEd together, the second feature has its end
marked, so that it will not be found in step 1).
- The program returns to step 1).
When there are no more features found in the SEARCH, the edgematch is
complete.
If there were any features which were found in step 1, that were not
ultimately matched with something, the user is given the chance of
giving the REVIEW command. This runs a command file that:-
- takes the user to all the positions where a problem occurred
- lists the problems
- allows the user to make any manual edits in the area.
CRITERIA FOR ACCEPTING MATCHING FEATURES.
The criteria used to accept found features
to match with the "searched for" feature are:-
- The found feature must not have a substantial part of it lying
along the base line.
- The two features must have the second from end vertex, from the
end of the feature in question, on opposite sides of the edgematch
base.
- The found feature must not be the edgematch base
- If MATCH FC is set, then the two features must have the same feature
code.
- If MATCH FSN is set, then the two features must have the same
feature serial number.
- If MATCH MAP is set, then the two features must be in the same
map.
- If MATCH LAYER is set, then the two features must be in the same
layer.
- If MATCH PC is set, then the two features must have the same
process code set.
- If MATCH AC is set, then the two features must have exactly the
same AC types 2, 3, 4 and 5. (ie values and any strings must match)
- The found feature has not been used to match to anything else
before.
EDGEMATCH EXTEND
EDGEMATCH EXTEND SEARCHes for the next end of a feature as with JOIN and TIE.
The intersection of the last line segment of the feature and the baseline is
calculated.
The feature is then extended or truncated to the intersection point
on the base line. The amount by which the feature may be extended is limited to
three times the current edgematching tolerance.
REVIEW takes the user to those positions where no intersection
with the baseline could be calculated. This may occur when:-
- the last line segment points away from the baseline or is parallel to it.
- the intersection lies outside the baseline.
- the length of the line which has been extended is greater than three
times the edgematching tolerance.