<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Seth,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
as you suggested, I've added the Extent parameter to all of my layers, and it resulted in decreasing time to 5m33.534s. But still, it's quite a lot of time for generating 1.5 MiB file.<br>
</div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any other suggestions?<br>
Maybe there is something wrong with projection so beyond just serving data mapserver have to reproject it multiple times? (more than one time by using tilesrs option)?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Marcin<br>
</div>
<div id="Signature">
<div>
<table style="margin-top:30px;margin-bottom:30px;width:95%" id="tableSelected0">
<tbody>
<tr height="45">
<td>
<p></p>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
</tbody>
</table>
<br>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Seth G <sethg@geographika.co.uk><br>
<b>Sent:</b> Wednesday, July 26, 2023 12:58 PM<br>
<b>To:</b> Marcin Niemyjski <mniemyjski@cloudferro.com>; MapServer Users <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> Re: [MapServer-users] Speed of WMS vs Speed of WCS; How to speed up WCS service?</font>
<div> </div>
</div>
<style type="text/css">
<!--
p.x_MsoNormal, p.x_MsoNoSpacing
        {margin:0}
-->
</style>
<div>
<div>Hi Marcin,<br>
</div>
<div><br>
</div>
<div>As a first test I'd recommend adding in EXTENTs to all your layers (and ensuring they are correct):<br>
</div>
<div><br>
</div>
<div>EXTENT 1334552.857598 5342648.587634 4715044.821842 7547620.486088<br>
</div>
<div><br>
</div>
<div>If these are missing MapServer will often try and calculate these from the datasource automatically. Depending on the request type this calculation could be made multiple times.<br>
</div>
<div><br>
</div>
<div>Seth<br>
</div>
<div><br>
</div>
<div id="x_sig62266145">
<div class="x_signature">--<br>
</div>
<div class="x_signature">web:<a href="https://geographika.net">https://geographika.net</a> & <a href="https://mapserverstudio.net">https://mapserverstudio.net</a><br>
</div>
<div class="x_signature">twitter: @geographika<br>
</div>
</div>
<div><br>
</div>
<div>On Wed, Jul 26, 2023, at 11:53 AM, Marcin Niemyjski via MapServer-users wrote:<br>
</div>
<blockquote type="cite" id="x_qt" style="">
<div>Hello,<br>
</div>
<div><br>
</div>
<div>I have a problem, Namely, I have created a WCS and here is its mapfile:<br>
</div>
<div>https://pastecode.io/s/6v3qfssb<br>
</div>
<div><br>
</div>
<div class="x_qt-elementToProof">For a better understanding, here is a view of the tileindex through which the data is served:<br>
</div>
<div>https://pasteboard.co/ydgvDiqxz4lf.png<br>
</div>
<div class="x_qt-elementToProof"><br>
</div>
<div class="x_qt-elementToProof">I am connecting to files located in a private bucket, so I am using vsis3.<br>
</div>
<div><br>
</div>
<div>The WMS loads quite fast, but the issue arises with the time it takes to generate a requested WCS tile:<br>
</div>
<div> https://pasteboard.co/8G8uF41jqgHc.png<br>
</div>
<div><br>
</div>
<div class="x_qt-elementToProof">It takes almost 5 minutes to generate the tile, and the received data is 1.5 MiB (which is it's actual size).<br>
</div>
<div><br>
</div>
<div>Additionally, I am sending you URLs to sample data:<br>
</div>
<div>https://s3.waw3-1.cloudferro.com/swift/v1/Julien/Data/T34UFD_20230708T093549_TCI_60m.jp2<br>
</div>
<div>https://s3.waw3-1.cloudferro.com/swift/v1/Julien/Data/T37TCN_20220605T083559_TCI_60m.jp2<br>
</div>
<div><br>
</div>
<div class="x_qt-elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The case is - how to speed it up? Am I making any goofy mistakes?<br>
</div>
<div class="x_qt-elementToProof">I would be grateful for any recommendations or if you notice any errors, I might be making :)<br>
</div>
<div class="x_qt-elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div><br>
</div>
<div>Best,<br>
</div>
<div>Marcin<br>
</div>
</div>
<div>_______________________________________________<br>
</div>
<div>MapServer-users mailing list<br>
</div>
<div><a href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</a><br>
</div>
<div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div>
<div><br>
</div>
</blockquote>
<div><br>
</div>
</div>
</body>
</html>