<!DOCTYPE html><html><head><title></title><style type="text/css">
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Marcin,<br></div><div><br></div><div>Have a look at the example Python script at <a href="https://github.com/MapServer/MapServer/blob/main/mapscript/python/examples/wxs.py">https://github.com/MapServer/MapServer/blob/main/mapscript/python/examples/wxs.py</a> - this shows creating and calling a WMS request.<br></div><div><br></div><div>Seth<br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div>On Tue, Jan 24, 2023, at 11:36 AM, Marcin Niemyjski via MapServer-users wrote:<br></div><blockquote type="cite" id="qt" style=""><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof">Hello,<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof">I want to measure how long does it takes for my WMS to response to GetMap request. I have prepared list of extents in form of python list for example:<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1">['38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628', '38.04778703973034,-17.714089101743628,39.04778703973034,-16.714089101743628'...]<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1">I'm aiming into itterating over this list and passing it's elements into GetMap request inside python script and then request GetMap and measure how long does it takes to perfome it.<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1">Here starts my question: How to do GetMap request inside python script, is it possible? The question is not about creating the url but about function wich does request.<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1">Maybe somebody can recommend me some other way of measuring speed of WMS?<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1">I would like show my k8s cluster service as use-case at FOSS4G 2023 and i need some statistics for presentation <span id="qt-🙂">🙂</span><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1">Best,<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="qt-elementToProof qt-ContentPasted0 qt-ContentPasted1">Marcin<br></div><div class="qt-elementToProof"><div id="qt-Signature"><div><table style="margin-top:30px;margin-bottom:30px;width:95%;" id="qt-tableSelected0"><tbody><tr height="45"><td><br></td></tr><tr><td><br></td></tr><tr><td><br></td></tr><tr><td><br></td></tr></tbody></table><table id="qt-pbpsiglinktable"><tbody><tr><td><a href="https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature"><img src="cid:f896bb67-9d7c-4fef-a779-e7ab8c29f1e6"></a><br></td><td><br></td><td><a href="https://outlook.office.com/bookwithme/user/6347c7def05a478ba013ae948648789d@cloudferro.com?anonymous&ep=signature" style="text-decoration-line:none;text-decoration-style:solid;text-decoration-color:currentcolor;text-decoration-thickness:auto;color:rgb(0, 120, 212);">Book time to meet with me</a><br></td><td><br><table></table></td></tr></tbody></table></div></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></body></html>