Background continous refresh of wms connections

37 views
Skip to first unread message

Giacomo Nodjoumi

unread,
Apr 8, 2022, 2:48:22 AM4/8/22
to TerriaJS
Hi all,

I managed to get up and running an istance of terriamap connected to a custom geoserver containing static and dynamically ingested planetary data (raster and vectors).
With static data there aren't problems, since is already in the geoserver when terriamap si launched, but i cannot manage to get the dynamically ingested data to proper work.
As described in the issue #585, I have some API that create and publish new layers in geoserver while also dumping a .json configuration compatible with terriamap.

If I try to load this json without refreshing terriamap page i get the following error:

The catalogue item has been hidden from the map. You may re-show it in the Now Viewing panel to try again. Tile Error: Got a 200 (OK) response from URL

If i refresh the page and then load again the json, no problem.

I guess the problems is that the connection to the wms is not refreshed when new data data is added to geoserver, and thus terriamap cannot retreive the new data.

So, I was wondering if there is an option to auto-refresh at every fixed time value the wms available in my DataCatalogue, or eventually if it can be added.

Many thanks for your answer and have a nice day!

Best,
Giacomo



Reply all
Reply to author
Forward
0 new messages