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 that?

Are you sure that you are trying to correct the right thing? Do you really need 
more than 1000 layers? Could you perhaps do the same thing with less layers 
with filtering?  If you need +1000 layers you could consider saving the 
GetCapabilities response into a static file that is much faster to serve. Just 
remember to update the static file when your layers change.

-Jukka Rahkonen-

Lähettäjä: MapServer-users <mapserver-users-boun...@lists.osgeo.org> Puolesta 
Marcin Niemyjski via MapServer-users
Lähetetty: tiistai 20. joulukuuta 2022 10.42
Vastaanottaja: Marcin Niemyjski via MapServer-users 
<mapserver-users@lists.osgeo.org>
Aihe: [MapServer-users] Failed to download capabilities:Download of 
capabilities failed: Connection on mapfile with more than 1000 layers

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
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to