Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background continous refresh of wms connections #585

Open
Hyradus opened this issue Apr 7, 2022 · 0 comments
Open

Background continous refresh of wms connections #585

Hyradus opened this issue Apr 7, 2022 · 0 comments

Comments

@Hyradus
Copy link

Hyradus commented Apr 7, 2022

Hi all, I was wondering if there is an option to auto-refresh every xxxx seconds/minutes the custom wms available in my DataCatalogue.
The reason is that I have successfully set up a geoserver and ingested initial data in it, configured the terriamap init file and i can easily visualize and load without problems all the layers already available in geoserver.

Then through an API + Geoserver REST interface I am ingesting dynamically new data, but I cannot see them in the DataCatalouge wms (nor if I drag&drop a new init file that point to these data). I think that this is due to the wms connection not being updated because if I refresh the entire page, the new data are shown in the Data Catalogue and I can visualize them.

So, i was thinking on some kind of options that continiously refresh the backend, or if it is possible to refresh the entire page without loosing the loaded layers. I have looked in the documentation and all the issues but didn't find anything.
Anyone has a suggestion?

edit1:
When I try to add by drag&drop the init json I receive the following

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 reload the page and load again, it works.

An example json is this:

{
    "homeCamera": {
        "north": -8,
        "east": 158,
        "south": -45,
        "west": 109
    },
    "catalog": [
        {
            "type": "wms",
            "name": "M3_Archytas-bands-580-770-2976--rgb-cog",
            "url": "http://localhost/geoserver/ows?service=wms",
            "layers": "M3_Archytas-bands-580-770-2976--rgb-cog",
            "opacity": 1.0,
            "tileWidth": 128,
            "tileHeight": 128,
            "minScaleDenominator": 1000
        }
    ]
}

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant