2.5.8.6. Clearance viewer and clearance check
Rail ▸ Clearance Viewer… runs a clearance profile along a rail alignment and checks surveyed points against it. It shows how the profile turns with the cant along the line, tells for every point how far it is from the profile — or how deep it infringes it — and writes the result to the Results page or to a PDF / HTML report.
The viewer needs a rail alignment with at least one clearance profile (see Clearance profiles).
2.5.8.6.1. The dialog
2.5.8.6.1.1. Top row
Chainage — the chainage of the section; type a value and press Enter. The slider next to it moves along the whole alignment in steps.
Profile — the clearance profile to run and to check the points against. The choice becomes the profile in use of the alignment, so the viewer opens with it next time (save the alignment to keep it). Changing it checks the loaded points again.
Step (m) — the step of the slider and of the buttons, 5 m by default. Half a step is also the window of the points drawn on the section (see below).
|< < Play > >| — to the start, one step back, run / pause, one step on, to the end.
Speed — the steps per second of Play.
Level (UTC) / Track (CTC) — how the section is drawn (see The drawing).
Warning margin (m) — a point closer to the profile than this is a warning (0.05 m by default).
2.5.8.6.1.2. Right side
Lines to check — the polylines of the profile, with their number of points. The ticked lines are the ones the points are checked against. A tick sets the kind of the polyline (ticked = envelope, unticked = reference), so the choice is kept with the alignment and the profile editor shows it the same way. A line with fewer than three points cannot be ticked.
Points file, Browse…, Format, Edit… and the preview — the file of surveyed points, read like in Batch Measure (see Input file formats): text or spreadsheet files, with or without a point name and code, in any column order. The format that reads the file best is picked, the preview shows how its first lines are read and the line above it how many points were read, with the first line that could not be read.
Load points — reads the file with the chosen format and checks every point.
Check all — writes every point to the Results page.
Report… — saves the clearance report (PDF or HTML).
The summary line — the number of points, inside the envelope, within the margin and beyond the alignment ends.
The points list — every point sorted by chainage: name, chainage, clearance, governing line and status. Double-click a point to go to its chainage.
2.5.8.6.1.3. Bottom line
The chainage, the cant (mm), the radius, the turn direction, the rotation angle of the section (rad) and the alignment elevation.
2.5.8.6.2. The drawing
The section shows the rails, the profile and the points of the current chainage:
the ticked (envelope) lines solid, the other lines dashed, the closing edge of an open checked line dotted;
the level line and the plumb line through the centreline (purple, dotted) — the UTC axes;
the top-of-rail line and the line square to it (orange, dotted) — the CTC axes, drawn when the section is canted;
the points whose chainage is within half a step of the current chainage, coloured by their status, with their name and clearance.
In the Level (UTC) view the level line stays horizontal and the rails and the profile turn with the cant, as the train is seen from a fixed position. In the Track (CTC) view the profile stays upright and the level line turns the other way, as the track is seen from the train.
The mouse wheel zooms about the cursor, dragging with the left or middle button pans, and a double-click fits the section again. The zoom and the pan stay while stepping or playing along the alignment, so a detail — a wall, the pantograph zone — can be followed along the line.
2.5.8.6.3. How the clearance is calculated
The check is done in the track section (CTC), where the profile is defined. Each point is measured once when the file is loaded; the clearance does not depend on the chainage shown or on the view.
2.5.8.6.3.1. Step 1 — the chainage and the level position
The point P = (X, Y, Z) is measured against the alignment (the rail
measure, see Rail alignment — cant, CTC and UTC):
s— the chainage of the foot of the perpendicular fromPto the horizontal alignment;x_u— the horizontal offset ofPfrom the alignment, positive to the right of the direction of travel;y_u— the height ofPabove the alignment:\[y_u = Z - H_{align}(s)\]
(x_u, y_u) is the position of the point in the level (UTC)
section at s.
2.5.8.6.3.2. Step 2 — the cant rotation at the chainage
From the rail settings of the alignment and the cant c (cm) at
s:
where G is the gauge and w the rail head width (b is the
cant base). The sign of θ and the rotation point
R = (R_x, 0) — the top of the low rail, the outer rail or the track
centre — follow the turn direction and the cant rotation point of the
alignment, as in Rail alignment — cant, CTC and UTC. On straight track and in 3D
mode θ = 0.
2.5.8.6.3.3. Step 3 — the position in the track section
The level position is turned back into the track section (UTC → CTC):
(x_c, y_c) is the position of the point relative to the top of
rail at the track centre, in the same system as the profile. These
are the Offset CTC and DH CTC of the reports.
2.5.8.6.3.4. Step 4 — inside or outside a line
Each ticked line with at least three points is an area. When the line
is not closed it is closed with a straight edge from its last point to
its first. Whether (x_c, y_c) is inside the area is decided with the
even–odd rule: a horizontal ray from the point to the right is
intersected with every edge of the outline; an odd number of crossings
means inside.
2.5.8.6.3.5. Step 5 — the distance to a line
The distance d_k from the point to line k is the shortest
distance to any of its edges (the closing edge included). For an edge
from A to B:
with P_c = (x_c, y_c): the foot of the perpendicular when it falls
on the edge, otherwise the nearer end of the edge.
The signed clearance to line k is
These are the per-line columns of the report.
2.5.8.6.3.6. Step 6 — the clearance of the point and the governing line
With several ticked lines the checked area is their union:
when the point is inside one or more lines, the clearance is minus the largest depth, and the governing line is the line the point is deepest in:
\[C = -\max_{k:\ \mathrm{inside}} d_k\]when the point is outside all of them, the clearance is the distance to the nearest line, and the governing line is that line:
\[C = \min_k d_k\]
The clearance C and the governing line are shown in the points
list, on the Results page and in the report. When no line is ticked the
points have no clearance.
2.5.8.6.3.7. Step 7 — the status
With the warning margin m:
Status |
Condition |
Meaning |
|---|---|---|
INSIDE (red) |
|
The point infringes the profile by |
warning (orange) |
|
The point is outside, but closer than the margin. |
clear (green) |
|
The point is free by at least the margin. |
beyond end |
see below |
Past the start or end; not checked. |
Changing the margin changes the statuses at once; the clearances stay.
Beyond the ends. The measure returns the start or the end of the
alignment for a point that lies past it. Such a point is not square to
the alignment: with A the alignment point at s and α the
direction of the alignment there,
is the distance of the point along the alignment from A. It is 0 for
a point beside the alignment; when |a| > 0.05 m the point is
beyond end.
2.5.8.6.4. Worked example
A rail alignment with gauge 1.435 m, rail head 0.072 m (cant base
b = 1.507 m), rotation about the inside rail. At chainage
197+760.000 the alignment turns left with 160 mm cant
(R ≈ 1002 m). The profile is the one of the sharpest curve of the study
(NOMINAL_GAUGE ticked).
Point P7 is measured at s = 197760.000, 1.419 m right of the
alignment and 3.248 m above it: x_u = 1.419, y_u = 3.248.
Rotation:
and, for a left curve turning about the inside (left) rail,
R_x = −b/2 = −0.7535.
Track section:
with x_u − R_x = 1.419 + 0.7535 = 2.1725. The point is 1.750 m right
of the track centre and 3.000 m above the top of rail, square to the
canted track.
Clearance: at that height the right side of NOMINAL_GAUGE runs
from (1.774, 1.234) to (1.904, 3.314); at y = 3.000 it is at
x = 1.884. The point is inside the outline. The nearest edge is that
side: t = 0.845, foot (1.884, 2.992), distance 0.134 m. So
P7 is INSIDE by 134 mm, governing line NOMINAL_GAUGE. In the
level view the drawing shows it inside the turned profile; the same
result holds in the track view.
Two lines. With PANTO_MECH ticked as well, a point at
(0.300, 5.200) in the track section (P6) is clear of
NOMINAL_GAUGE by 0.346 m, but inside the pantograph chimney: the
chimney is closed by its bottom edge at 5.00 m, 0.200 m below the point,
and that is the nearest edge. The point becomes INSIDE by 200 mm,
governing line PANTO_MECH; the report shows 0.346 in the
NOMINAL_GAUGE column and −0.200 in the PANTO_MECH column.
2.5.8.6.5. Choosing the lines to check
Tick the lines that the surveyed objects must stay out of:
Objects |
Lines to tick |
|---|---|
Tunnel walls, platform edges, masts, signals, walls, barriers |
|
Structures above the train: tunnel roof, bridge soffits, canopies |
|
Non-live parts near the catenary (electrical clearance) |
|
The vehicle itself (for information) |
|
Points to note:
A ticked chimney is a closed area.
PANTO_MECHandPANTO_ELECare open at the bottom and are closed at 5.00 m: every point between 5.00 m and 6.50 m inside the chimney is INSIDE. A surveyed contact wire or other catenary point there is reported inside — correctly for that line.Gaps between lines are not checked. Between the top of the nominal gauge (about 4.8 – 4.9 m) and the bottom of the chimney (5.00 m) there is a strip that belongs to neither line.
Survey the structures, not the track. The lower part of the nominal gauge comes down to 16 – 36 mm above the top of rail between the rails. Points on the track itself — the track axis or the rails — lie at that edge and are reported warning or INSIDE by a few millimetres. In the picture above, the file holds track axis points, so most of them are flagged; that is the expected result of the calculation, not an infringement of a structure.
One profile at a time. The viewer checks every point against the chosen profile. A profile is computed for one case (radius, cant, station, tunnel type); for a line with several cases check each stretch with its own profile, for example with one points file per stretch, or by changing the profile and looking at the chainages of that stretch.
Left and right. A curve profile is wider on the inside of the curve. Use the profile drawn for the turn direction of the curve, or a mirrored copy (Mirror X), see Clearance profiles.
2.5.8.6.6. Platform edge check
A platform edge must not come inside the platform limit, but it must not be too far from it either, or the gap to the train is too wide for boarding: it must lie between the limit and the limit + a tolerance (50 mm in the gauge study). The clearance check marks only the first side, so the viewer has a second kind of check.
Check (next to Profile) chooses it:
Clearance — the check described above (inside / warning / clear).
Platform edge — for surveyed platform edge points against a platform template (see Platform templates).
Choosing a profile whose checked lines include a PLATFORM… line (the
platform templates) switches to Platform edge by itself; any other
profile switches back to Clearance. The choice can be changed by
hand.
In Platform edge mode the Warning margin becomes the
Tolerance t (0.05 m by default). The clearance C is
calculated exactly as above, steps 1 – 6, against the ticked line
(PLATFORM_LIMIT): the distance of the edge point from the limit in
the track section. The status is:
Status |
Condition |
Meaning |
|---|---|---|
TOO CLOSE (red) |
|
The edge is inside the limit, too close to the track. |
OK (green) |
|
The edge is within the tolerance. |
TOO FAR (magenta) |
|
The edge is farther than the limit + tolerance: the gap is too wide. |
beyond end |
as above |
Past the start or end; not checked. |
The points list, the summary line, Check all and the report use these words. The report is titled Platform edge check, gives the tolerance, counts the points too close / OK / too far, gives the smallest and the largest clearance, and draws a section at every point too close or too far.
Example. Template L.2 (b_lim,i = 1.656, b_lim,a = 1.672),
tolerance 0.050 m, on a section with 160 mm cant. Edge points at
0.760 m above the top of rail, square to the canted track:
Point |
Offset CTC |
Clearance |
Status |
|---|---|---|---|
E1 |
1.650 |
−0.006 |
TOO CLOSE |
E2 |
1.670 |
0.014 |
OK |
E3 |
1.700 |
0.044 |
OK |
E4 |
1.720 |
0.064 |
TOO FAR |
E5 |
−1.690 |
0.018 |
OK |
E6 |
−1.760 |
0.088 |
TOO FAR |
E5 and E6 are on the outside of the curve, where the limit is 1.672.
Load only platform edge points in this mode — every other point is far from the limit and would be TOO FAR. Survey the edge (the top outer corner of the platform), and use the template of the station, mirrored (Mirror X) when the inside of the curve is on the left of the direction of the alignment.
On a double track each side platform belongs to its own track:
check the edge points of a platform with the alignment of the track
beside it. Measured from the other track’s axis they are several metres
away and come out TOO FAR. The side of the template that matters is
the side of that platform: +X (b_lim,i) when the platform is on
the inside of the curve, −X (b_lim,a) when it is on the outside.
2.5.8.6.7. Results page
Check all writes a table to the Results page, separated by the output delimiter of the options:
Clearance check for alignment: <name>
Profile: <profile> (<n> polylines)
Checked lines: NOMINAL_GAUGE, PANTO_MECH
Points: <file>
Warning margin: 0.050 m
Name X Y Z Chainage Cant(cm) TOR L TOR R Offset-CTC DH-CTC Offset-UTC DH-UTC Clearance Line Status
...
Points: 9, inside the envelope: 3, within the margin: 1, beyond the alignment ends: 1
Cant(cm) is the cant c at the chainage of the point (step 2), in
centimetres as in the Cant list of the alignment, TOR L / TOR R the
top-of-rail heights of the left and right rail at that chainage (the
rail head centres, cant applied), Offset / DH CTC are
x_c, y_c (step 3), Offset / DH UTC are
x_u, y_u (step 1), Clearance is C and Line the governing
line (step 6).
2.5.8.6.8. Points on the plan
When the viewer is closed after Check all, the points of the last check are also added to the Drawing tab as civil survey points, the way the ICAD SURVEYPOINT command places them: each gets a new number from the point database, its name, X, Y, Z, the name as raw description and status, chainage, clearance and line as full description, and the colour of its status. They go in the point group Clearance <profile>, so they can be shown, hidden or styled per check; a later check adds its own points and the earlier ones stay. The points are saved with the drawing (IQZ) and IQCAD lists them in its point database.
2.5.8.6.9. Clearance report
Report… saves a PDF report (or an HTML file, chosen in the file type list) and opens it. It asks for the surveyor name for the sign-off (remembered). The PDF belongs to the Alignment Solver report family (see PDF reports): a cover with the profile, then the parameters and the summary with how the clearance is calculated, the profile, a plan view of the points coloured by status, the points (landscape), the sections and the sign-off. The section drawings are vector paths, so they print sharp and the file stays small. The HTML file has the same content with the drawings embedded, so it can be mailed or printed on its own. Both contain:
the settings — alignment and file, chainage range, rail data (gauge, rail head, cant base, rotation point), the profile, the checked lines, the points file and its format, the warning margin and the date;
a summary — the number of points inside, within the margin, clear and beyond the ends, and the smallest clearance with its point and chainage;
the profile — its drawing and the list of its polylines with their kind;
the points — every point with X, Y, Z, chainage, the cant (cm), the CTC and UTC offset and DH, the clearance, the governing line and the status, rows inside in red and within the margin in orange. With two or more checked lines the table also has the clearance to each line (
c_kof step 5);sections — a drawing at each point inside or within the margin, in the view chosen in the viewer, with every point within half a step of it. One drawing covers all the points of its window; it is titled with their names and gives the worst of them;
a plan view — the alignment (the whole of it light, the checked stretch heavy) with chainage ticks, the points coloured by status (inside / within the margin / clear), a legend, the north arrow and a scale bar;
the sign-off — surveyor, date and a line for the signature.
The points table also has the TOR L / TOR R heights.
2.5.8.6.10. Working along the line
Load the points file and choose the profile and the lines to check.
Look at the summary line and sort out the points marked beyond end (points of another alignment, or past its ends).
Double-click the first INSIDE point in the list: the viewer goes to its chainage and shows it on the section. Zoom on it with the mouse wheel.
Step or Play along the alignment to see the neighbouring sections with the same zoom.
Check all for the Results page, or Report… for the record.