alainlhostis / shriveling_world

The "shriveling_world" project aims at producing images of the global geographical time-space, using the third dimension, as in time-space relief maps. The word "shriveling" was introduced by Waldo Tobler in his comments of Mathis-L'Hostis time-space relief image, in order to describe the complex contraction process suggested by the model.
GNU General Public License v3.0
9 stars 4 forks source link

Time-scale #52

Open ghost opened 5 years ago

ghost commented 5 years ago

Time-scale. Each view of the shrivelled earth model is associated with a time-scale. This time-scale should evolve when zooming and de-zooming and when changing epoch. Time scale could show the speed ratio as a figure like 7.5 the ratio between air and road transport

  1. network links with slopes
    • [x] hover info with modes speed
    • [x] hover info with angle alpha value
    • [ ] hover info with kilometres linked to zoom level
    • [ ] UI to fix a given km amount in the scale (cleaner than adjusting with mouse)
    • [ ] UI to optionally show/not show the legend
    • [ ] export to txt
      • year
      • speed kph mode 1
      • speed kph mode 2
      • etc.
    • (add the graphical elements of the legend to export 3D scene not relevant because legend is 2D)
  2. Time-scale (floating as such, different from 1.) Basics of the computation: At loading of dataset need to have 1 cm of screen = duration in hours a. chose two given cities u and v in the dataset b. compute length in km of geodesic Lkm c. retrieve vec3d uv on "screen" 3d coordinates (in 3D before projecting on the 2d screen) d. rotate vec3d uv (without zooming) to align with the plan of the screen e. retrieve new (hypothetical) coordinates of u and v on screen, measure Luvcm f. use Smax to compute Lhours = Lkm / Smax g. at this stage the time-space scale can state Luvcm <-> Lhours for a geographical distance of Lkm h. round the value of Lhours and adjust Luvcm proportionally (for readability purpposes)
    • [ ] need to be connected to the zoom level (1 cm = x hours)
    • [ ] showing by default up right
    • [ ] moveable by mouse
    • [ ] Indicate duration, with rounded values
    • [ ] Possibility to adjust with mouse (with value jumping from 2 to 3 hours)
    • [ ] Possibility to set a given duration ? (not needed if previous solution is functioning well)
alainlhostis commented 3 years ago

pb d'affichage de la légende correct:

incorrect: