Update route markers and document changes.

This commit is contained in:
Timothy Allen 2018-10-09 02:10:45 +02:00
parent 8a4219e101
commit dff7880607
10 changed files with 5329 additions and 5273 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -25,3 +25,30 @@ if (
'Start'
)
Create a new text field, quadrants, and set it to the result of:
CASE
WHEN "RouteLen" = '21' THEN
CASE
WHEN regexp_match( "Name", '^([136]|20|1[45678])$') THEN 'L,TL'
WHEN regexp_match( "Name", '^([489]|10|1[123])$') THEN 'R,BR'
WHEN regexp_match( "Name", '^([25]|19)$') THEN 'T'
WHEN regexp_match( "Name", '^([7])$') THEN 'B'
END
WHEN "RouteLen" = '10' THEN
CASE
WHEN regexp_match( "Name", '^[789]$') THEN 'L,TL'
WHEN regexp_match( "Name", '^[2456]$') THEN 'R,BR'
WHEN regexp_match( "Name", '^[1]$') THEN 'T'
WHEN regexp_match( "Name", '^[3]$') THEN 'B'
END
WHEN "RouteLen" = '5' THEN
CASE
WHEN regexp_match( "Name", '^[12]$') THEN 'L,TL'
WHEN regexp_match( "Name", '^[0]$') THEN 'R,BR'
WHEN regexp_match( "Name", '^[4]$') THEN 'T'
WHEN regexp_match( "Name", '^[3]$') THEN 'B'
END
END

View File

@ -80,6 +80,36 @@ if (
'Start'
)
```
To place the route markers on the appropriate side of the route, use something like the following in the field calculator to create a new text field named `quadrant` (used by the label's position priority in the placement section):
```
CASE
WHEN "RouteLen" = '21' THEN
CASE
WHEN regexp_match( "Name", '^([136]|20|1[45678])$') THEN 'L,TL'
WHEN regexp_match( "Name", '^([489]|10|1[123])$') THEN 'R,BR'
WHEN regexp_match( "Name", '^([25]|19)$') THEN 'T'
WHEN regexp_match( "Name", '^([7])$') THEN 'B'
END
WHEN "RouteLen" = '10' THEN
CASE
WHEN regexp_match( "Name", '^[789]$') THEN 'L,TL'
WHEN regexp_match( "Name", '^[2456]$') THEN 'R,BR'
WHEN regexp_match( "Name", '^[1]$') THEN 'T'
WHEN regexp_match( "Name", '^[3]$') THEN 'B'
END
WHEN "RouteLen" = '5' THEN
CASE
WHEN regexp_match( "Name", '^[12]$') THEN 'L,TL'
WHEN regexp_match( "Name", '^[0]$') THEN 'R,BR'
WHEN regexp_match( "Name", '^[4]$') THEN 'T'
WHEN regexp_match( "Name", '^[3]$') THEN 'B'
END
END
```
(Note that you may wish to allocate particular markers different positional quadrant; edit the above as needed.)
Once this is done, you may choose to manually relocate the route markers based on the measured route, or remove duplicate finish labels if the endpoint is slightly longer than the final kilometre marking.
You'll want to copy the style of the existing `router_markers` and paste it on to your new layer in order to display the route markers in an appropriate style (but feel free to tweak the style if you prefer).