TransWikia.com

How to add BC-dates (age of a continent)

Geographic Information Systems Asked on March 23, 2021

I want to simulate continental drifts using the time tool of QGIS (V. 3.16.0). Turns out I can only insert certain dates into my attribute table. I can’t even type in the date 0000-01-01 without getting a NULL-field. Typing in a negative value is just not possible.

I cannot get QGIS to read a BC or AD after my date, as suggested in a response to this question.

It would be okay for me to define the year of when the landmasses formed to the year 0000. But I cannot define years with more than 4 digits without simply repeating the date! (yyyy → 2020; yyyyyyyy → 20202020 instead of 00002020)

So what method would you suggest to define how many million years before Christ a feature began to exist in the current form?

2 Answers

Seems like temporal controler only works with standard dates. If you dont mind cheating a little you can create pseudo-standard-dates out of your real dates. So e.g. 1000000 real years become 10 years for QGIS temporal controler.

For this to do, you need to know a suiting divisor for your date, you can find out by looking at your max and min value. In my example I am using 100000 having a max-real-date of -1000000 and a min-real-date of -20000000. So 1000000 real years become 10 years for QGIS temporal controler. Just use make_date() expression like this to create your pseudo date: make_date(round(abs("integerfield")/100000),1,1).

Use it within temporal settings of your layer as expression:

enter image description here

Here a comparison between the two fields when using the above expression:

enter image description here

As animation it can look for example:

enter image description here

PS: no guarantee here that I did not mess up with zeros.

Answered by MrXsquared on March 23, 2021

The time manager plugin has an "Archaeological mode" (tiny button left of the setting button) that let you use negative date.

This plugin won't work with the latest QGIS release (the native temporal controler replace it since version 3.14, ) but you could use an older QGIS version or have a look at how the plugin handle negative date...

enter image description here

Answered by J.R on March 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP