Time lapse, and small fencing road name change.

This commit is contained in:
Timothy Allen 2019-10-11 15:55:38 +02:00
parent 7e37179834
commit 353098292f
11 changed files with 6386 additions and 5523 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,13 @@
= To Create a Timelapse =
Set begin on each route to the start time of each race.
Set the field "begin" on each route in ```all_routes``` to the start time of each race.
Use Locate Points on Line to create a layer that has one point every ten meters (about 3500 total). On a EPSG:4326 projection, this means intervals of 0,0001. Turn on "Keep Attributes" as well.
Each point will have a "distance" field, which calculates the distance of that point along the route. This may well be in hundreds of kilometers; check out the maximum value of the field, and if necessary, convert the distance to meters with the field calculator:
Each point in the resulting virtual layer will have a "distance" field, which calculates the distance of that point along the route. This may well be in hundreds of kilometers; check out the maximum value of the field, and if necessary, convert the distance to meters with the field calculator:
Update distance:
```
"distance_1" * 100000
round("distance" * 100000, 0)
```
(The longest `distance` element should be around 21000).
@ -19,12 +19,13 @@ Generate a second-based offset for the first and last runner past each meter, an
Then, calculate
first_time (String of length 20):
```
to_datetime( "begin" ) + (((3*60/1000*"distance_1")+0.01) || ' seconds')
to_time(to_datetime( "begin" ) + (((3*60/1000*"distance")+0.01) || ' seconds'))
```
last_time (String of length 20):
```
to_datetime( "begin" ) + (((5*60)+(10*60*"distance_1")/1000) || ' seconds')
to_time(to_datetime( "begin" ) + (((5*60)+(10*60*"distance")/1000) || ' seconds'))
```
Make certain all these values are saved, and set the layer to read-only (disable editing).
Then use this layer as your starting point for Time Manager. Remember to save and mark the layer as read-only before starting.

BIN
GIS Base Map/timelapse.qix Normal file

Binary file not shown.

View File

@ -10,7 +10,7 @@ webfile_dir = os.path.expanduser(webfile_dir)
for root, dirs, files in os.walk(webfile_dir):
documents=[]
for file in files:
if re.search('.(pdf|png|jpg|jpeg|htm|html|mp4)$', file) and not re.search('index.html', file):
if re.search('.(pdf|png|jpg|jpeg|htm|html|mp4|pptx)$', file) and not re.search('index.html', file):
try:
documents.append(os.path.join(file))
except OSError: