Closed pesekon2 closed 1 month ago
I think this functionality should be included in this PR: https://github.com/gicait/geoserver-rest/pull/153
It hasn't been published to pypi yet. You could check to see if it works for you by installing it like this:
pip install git+https://github.com/gicait/geoserver-rest@master
You could test it out. When you make the Geoserver
object, pass a dictionary to the request_params
parameter, they should be included in every subsequent request to the geoserver instance.
I just released the new version v2.8.2
. I think it will solve the issue. If the issue still exist, please feel free to open this issue.
@iamtekson @iboates: As far as I know (and was able to reach with the code), the timeout
in request_params
changes the timeout for requests like get
or push
(i.e., in terms of this package, it would be things like get_workspaces()
). But it does not change it for services like WMS. At least when I set it to whatever value, it limits the named ones while the WMS still has the default timeout of 60s (which I would liike to change and have to do it manually now).
I believe the parameter of the WMS I should set is maxRenderingTime
, according to the docs
. But if I am not mistaken, it is not possible to set this parameter the recommended way.
Naturally, if I am mistaken, I would be happy to hear that and find the way to proceed. :-)
PS: Unfortunately, I do not have rights to reopen the issue.
Changing service settings (such as timeout) through a function would be a great step towards automation without a need to change this manually after all the imports, etc.