<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi it took 40 s  </p>
    <p><br>
    </p>
    <p>Merry Christmas<br>
    </p>
    <div class="moz-cite-prefix">On 20/12/2022 15:38, Rahkonen Jukka
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:AM0PR09MB3219FA3DE8B5675DF8D1D931FDEA9@AM0PR09MB3219.eurprd09.prod.outlook.com">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}span.Shkpostityyli21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-US">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 <a href="https://www.mapserver.org/ogc/wms_server.html" moz-do-not-send="true" class="moz-txt-link-freetext">https://www.mapserver.org/ogc/wms_server.html</a>
            but how much faster it is depends on the data source.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-US">I think that instead of 1200 layers you could
            have just one time enabled layer
            <a href="https://www.mapserver.org/ogc/wms_time.html" moz-do-not-send="true" class="moz-txt-link-freetext">https://www.mapserver.org/ogc/wms_time.html</a>.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="mso-fareast-language:EN-US" lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b>Lähettäjä:</b> MapServer-users
              <a class="moz-txt-link-rfc2396E" href="mailto:mapserver-users-bounces@lists.osgeo.org"><mapserver-users-bounces@lists.osgeo.org></a>
              <b>Puolesta </b>Marcin Niemyjski via MapServer-users<br>
              <b>Lähetetty:</b> tiistai 20. joulukuuta 2022 16.18<br>
              <b>Vastaanottaja:</b> Oskar Ravhed
              <a class="moz-txt-link-rfc2396E" href="mailto:oskar.ravhed@t-kartor.com"><oskar.ravhed@t-kartor.com></a>;
              <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
              <b>Aihe:</b> Re: [MapServer-users] Failed to download
              capabilities:Download of capabilities failed: Connection
              on mapfile with more than 1000 layers<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
        </div>
        <p class="MsoNormal">Great advice, thank you Oskar. <o:p></o:p></p>
        <div>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
        <div>
          <p class="MsoNormal">Could you tell me how long it takes to
            load the WMS into qgis or GetCap with that many layers?<o:p></o:p></p>
        </div>
        <div>
          <p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;color:black">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 from the beginning
              of 2021.<o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
        <div>
          <p class="MsoNormal">Merry Christmas to all,<o:p></o:p></p>
        </div>
        <p class="MsoNormal">Marcin <o:p></o:p></p>
        <div>
          <p class="MsoNormal"><o:p> </o:p></p>
        </div>
        <div class="MsoNormal" style="text-align:center" align="center">
          <hr width="98%" size="2" align="center">
        </div>
        <div id="divRplyFwdMsg">
          <p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> MapServer-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org" moz-do-not-send="true" class="moz-txt-link-freetext">mapserver-users-bounces@lists.osgeo.org</a>>
              on behalf of Oskar Ravhed <<a href="mailto:oskar.ravhed@t-kartor.com" moz-do-not-send="true" class="moz-txt-link-freetext">oskar.ravhed@t-kartor.com</a>><br>
              <b>Sent:</b> Tuesday, December 20, 2022 1:08 PM<br>
              <b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org" moz-do-not-send="true" class="moz-txt-link-freetext">mapserver-users@lists.osgeo.org</a>
              <<a href="mailto:mapserver-users@lists.osgeo.org" moz-do-not-send="true" class="moz-txt-link-freetext">mapserver-users@lists.osgeo.org</a>><br>
              <b>Subject:</b> Re: [MapServer-users] Failed to download
              capabilities:Download of capabilities failed: Connection
              on mapfile with more than 1000 layers</span>
            <o:p></o:p></p>
          <div>
            <p class="MsoNormal"> <o:p></o:p></p>
          </div>
        </div>
        <div>
          <div>
            <p class="MsoNormal">Hello!<br>
              <br>
              I have 3234 layers in a service and it works fine. also
              works fine with <br>
              10.000 layers<br>
              <br>
              1 try the getcap in browser<br>
              2a if step 1 is success change network timeout in qgis<br>
              2b if step 1 does not work change timeouts on server and
              check mapserver <br>
              log<br>
              <br>
              On 20/12/2022 09:59, Jörg Thomsen (WhereGroup) wrote:<br>
              > Hi,<br>
              ><br>
              > funny, how you type twelve.<br>
              ><br>
              > 1200 are very much and I guess no one has tried this
              before.<br>
              > So to your question: I would say yes.<br>
              ><br>
              > I suggest to split it into several services /
              mapfiles. The <br>
              > capability-xml ist very big I think and most clients
              will habe <br>
              > problems with it. The usability is bad, the users
              have to scroll <br>
              > through 1200 Layers, puh. And I don't know whether a
              getMap with <br>
              > http-get will work (is there a current length-limit
              in http-get?).<br>
              ><br>
              ><br>
              > Jörg<br>
              ><br>
              ><br>
              >  Am 20.12.22 um 09:42 schrieb Marcin Niemyjski via
              MapServer-users:<br>
              >> Hello,<br>
              >><br>
              >> I have a mapfile which constist of 1200 layers.
              While loading to qgis <br>
              >> error "Failed to download capabilities:Download
              of capabilities <br>
              >> failed: Connection" is recived.<br>
              >><br>
              >> Does this happen becaues of quantitu of layers in
              mapfile? Is there <br>
              >> any workaround?<br>
              >><br>
              >> Best,<br>
              >> Marcin<br>
              >><br>
              >> _______________________________________________<br>
              >> MapServer-users mailing list<br>
              >> <a href="mailto:MapServer-users@lists.osgeo.org" moz-do-not-send="true" class="moz-txt-link-freetext">MapServer-users@lists.osgeo.org</a><br>
              >> <a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C2534aaa0fb5447a96ea908dae29503b1%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638071426885608944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Y4Mt0%2BNapNKtAB8hHk2pjw8TTFvi49i%2B7UBYwqMoUxU%3D&reserved=0" moz-do-not-send="true">
                https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
              ><br>
              <br>
              _______________________________________________<br>
              MapServer-users mailing list<br>
              <a href="mailto:MapServer-users@lists.osgeo.org" moz-do-not-send="true" class="moz-txt-link-freetext">MapServer-users@lists.osgeo.org</a><br>
              <a href="https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-users&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C2534aaa0fb5447a96ea908dae29503b1%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638071426885608944%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Y4Mt0%2BNapNKtAB8hHk2pjw8TTFvi49i%2B7UBYwqMoUxU%3D&reserved=0" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>