Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Scott
Yet another reason to put a wrapper around you mapserv binary. I have hundreds of layers and block GetCapabilities outright and return a proper warning stating such. Obviously, this is not a solution for everyone. Adding this, some security traps and whatever else you need to your wrapper is

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Michael Smith
One could do this already without changing mapserver, just at the web server config. It would be hard to control in mapserver when you’d want to do this. Mike -- Michael Smith US Army Corps of Engineers Remote Sensing/GIS Center From: MapServer-users on behalf of

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Kralidis,Tom (ECCC)
Option: we could consider adding a mapfile directive to point to a GetCapabilities file (oh disk), which can act as an early out (instead of generating Capabilities XML on the fly). We would want to test how effective this would be for larger mapfiles (i.e. reading mapfile vs. rendering

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Oskar Ravhed
Hi it took 40 s Merry Christmas On 20/12/2022 15:38, Rahkonen Jukka wrote: Hi, The time is not a constant (number of layers * x milliseconds). For example, it is faster to generate the layer BoundingBox into GetCapabilities if the wms_extent metadata is set for the layer

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Rahkonen Jukka
Hi, The time is not a constant (number of layers * x milliseconds). For example, it is faster to generate the layer BoundingBox into GetCapabilities if the wms_extent metadata is set for the layer https://www.mapserver.org/ogc/wms_server.html but how much faster it is depends on the data

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Marcin Niemyjski via MapServer-users
Great advice, thank you Oskar. Could you tell me how long it takes to load the WMS into qgis or GetCap with that many layers? I am also interested in what purpose you are using the WMS with this amount of data. Could you share it? In my case it is daily Sentinel-1 imagery for the whole world

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Oskar Ravhed
Hello! I have 3234 layers in a service and it works fine. also works fine with 10.000 layers 1 try the getcap in browser 2a if step 1 is success change network timeout in qgis 2b if step 1 does not work change timeouts on server and check mapserver log On 20/12/2022 09:59, Jörg Thomsen

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Jeff McKenna
On 2022-12-20 3:42 a.m., Marcin Niemyjski via MapServer-users wrote: Failed to download capabilities:Download of capabilities failed I would take QGIS out of the equation, as recent MapServer does not have a layer limit, see my instructions to test the exact QGIS requests in your browser

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread WhereGroup
Hi, funny, how you type twelve. 1200 are very much and I guess no one has tried this before. So to your question: I would say yes. I suggest to split it into several services / mapfiles. The capability-xml ist very big I think and most clients will habe problems with it. The usability is

Re: [MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Rahkonen Jukka
Hi, With that information we cannot really say. Can you get the GetCapabilities document by making the request with a browser or with curl? Is QGIS happy with 500 layers? I suppose that the default request timeout of Apache http server (do you use it?) is 60 seconds, have you tried to increase

[MapServer-users] Failed to download capabilities:Download of capabilities failed: Connection on mapfile with more than 1000 layers

2022-12-20 Thread Marcin Niemyjski via MapServer-users
Hello, I have a mapfile which constist of 1200 layers. While loading to qgis error "Failed to download capabilities:Download of capabilities failed: Connection" is recived. Does this happen becaues of quantitu of layers in mapfile? Is there any workaround? Best, Marcin