cambridge-cares / TheWorldAvatar

A knowledge-graph-based digital twin of the world.
https://theworldavatar.io/
MIT License
84 stars 25 forks source link

Dev cleanup dispersion data #1177

Closed kok-foong closed 4 months ago

kok-foong commented 4 months ago

Main additions: 1) Number of GeoServer layers is kept to 20 by default to keep GeoServer performance reasonable, also specified via NUMBER_OF_LAYERS in AermodAgent.

2) Added NUMBER_OF_LAYERS parameters in DispersionInteractor that specifies the number of timesteps to show in the dispersion dropdown, should ideally match the number specified in AermodAgent

2) Added a route in ShipInputAgent to clear old data, via the /clear-old-data route

3) Added IGNORE_BUILDINGS flag in AermodAgent when the buildings dataset is too large and slows down the simulation

4) Limit number of process in AermodAgent to 1, in case of duplicate requests to updateDerivation when the previous request is still executing

5) Limit number of process in UpdateVirtualSensors route in DispersionInteractor, to prevent duplicate requests from the visualisation

kok-foong commented 4 months ago

When ship data are deleted (/clear-old-data), the ship layer still shows up in visualisation despite all ship data were supposedly deleted.

This is intentional, the ships layers are created by the Aermod agent and only stored in 1 table, hence they can be easily deleted manually if needed. The ships data is very difficult to clear without resetting the database