<div dir="ltr">With 4000x4000 limit it works well. <br>I wonder how it affect on speed of work.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/8 Rahkonen Jukka <span dir="ltr"><<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="FI">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Leave some marginal and set maxsize to 3000 or 4000. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Lähettäjä:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Максим Хитрин [mailto:<a href="mailto:hitrymax@gmail.com" target="_blank">hitrymax@gmail.com</a>]
<br>
<b>Lähetetty:</b> 8. helmikuuta 2013 9:54<br>
<b>Vastaanottaja:</b> Rahkonen Jukka<br>
<b>Aihe:</b> Re: [MapProxy] Error on some zoom levels<u></u><u></u></span></p>
</div>
</div><div class="im">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<div>
<p class="MsoNormal">I've rised the max size in the MapServer config up to 2072. But now MapProxy requests for 2073 height pixels.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Let's see if configuring MapProxy will help.<u></u><u></u></p>
</div>
</div>
</div><div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2013/2/8 Rahkonen Jukka <<a href="mailto:jukka.rahkonen@mmmtike.fi" target="_blank">jukka.rahkonen@mmmtike.fi</a>><u></u><u></u></p><div><div class="h5">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Immediate reason is that Mapserver by default does not deliver bigger images than 2048
pixels. The limit can be set higher on the server side with the MAP level setting MAXSIZE
<a href="http://mapserver.org/mapfile/map.html" target="_blank">http://mapserver.org/mapfile/map.html</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">You can see from the log that MapProxy is asking for a 2072x1184 sized image. If you
cannot control Mapserver WMS then MapProxy should be configured to build smaller requests. Perhaps it is done in Globals-cache-meta_size and meta_buffer
<a href="http://mapproxy.org/docs/1.5.0/labeling.html#mapproxy-options" target="_blank">
http://mapproxy.org/docs/1.5.0/labeling.html#mapproxy-options</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><span style="color:#888888"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">-Jukka Rahkonen-</span><span style="color:#888888"><u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">?????? ?????? wrote:</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">I've run development server and there is such error:<br>
<br>
[2013-02-08 17:14:04,877] mapproxy.source.request - INFO - GET </span><a href="http://85.143.48.160:1024/cgi-bin/mapserv.exe?map=C:/Map%20Files/test3857/test3857.map&styles=&format=image%2Fpng&height=2072&bbox=6832719.04785,7387742.86427,6837589.38965,7396267.00815&transparent=True&layers=QGIS-MAP&crs=EPSG%3A3857&service=WMS&width=1184&request=GetMap&version=1.3.0" target="_blank">http://85.143.48.160:1024/cgi-bin/mapserv.exe?map=C:/Map%20Files/test3857/test3857.map&styles=&format=image%2Fpng&height=2072&bbox=6832719.04785,7387742.86427,6837589.38965,7396267.00815&transparent=True&layers=QGIS-MAP&crs=EPSG%3A3857&service=WMS&width=1184&request=GetMap&version=1.3.0</a>
200 - 106<br>
[2013-02-08 17:14:04,880] mapproxy.source.wms - WARNING - expected image response, got: <?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?><br>
<ServiceExceptionReport version="1.3.0" xmlns="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"
xsi:schemaLocation="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>
<a href="http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd" target="_blank">
http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd</a>"><br>
<ServiceException><br>
msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels.<br>
msOutputFormatValidate(): General error message. OUTPUTFORMAT png has IMAGEMODE RGB/RGBA, which is not supported for GD drivers.<br>
</ServiceException><br>
</ServiceExceptionReport><u></u><u></u></p>
</div>
<p class="MsoNormal">Is it a mapproxy side problem?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
<div>
<p class="MsoNormal">2013/2/7 Denis Rykov <<a href="mailto:rykovd@gmail.com" target="_blank">rykovd@gmail.com</a>><u></u><u></u></p>
<p class="MsoNormal">If you are using default MapProxy development server you can see HTTP requests which your client sends to WMS server in terminal.<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Thu, Feb 7, 2013 at 3:23 PM, Denis Rykov <<a href="mailto:rykovd@gmail.com" target="_blank">rykovd@gmail.com</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal">Hi Maxim!<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Could you share output of the following command:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> tail /var/log/apache2/error.log<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">It could give any clues about your issue.<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">On Thu, Feb 7, 2013 at 2:33 PM, Максим Хитрин <<a href="mailto:hitrymax@gmail.com" target="_blank">hitrymax@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal">Dear Sir or Madam,<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I've got a problem when I'm trying to zoom in MapProxy. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">It works well for about 2 or 3 zoom levels but then I got an error "Could not get any sources: no image returned from source WMS"<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I'm trying to get data from a MapServer that is localed on another machine. There is no limit for max/min scale in its capabilities.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Here is my configuration:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">sources:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> test3857:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> type: wms<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> wms_opts:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> version: 1.3.0<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> req:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> url:
<a href="http://85.143.48.160:1024/cgi-bin/mapserv.exe?map=C:/Map%20Files/test3857/test3857.map" target="_blank">
http://85.143.48.160:1024/cgi-bin/mapserv.exe?map=C:/Map%20Files/test3857/test3857.map</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> layers: QGIS-MAP<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> transparent: true<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> supported_srs: ['EPSG:3857']<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> coverage:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> bbox: [6807775, 7373595, 6875170, 7422370]<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> bbox_srs: 'EPSG:3857'<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">grids:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> test3857_grid:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> base: GLOBAL_GEODETIC<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> bbox: [6807775, 7373595, 6875170, 7422370]<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> bbox_srs: 'EPSG:3857'<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">caches:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> test3857_cache:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> sources: [test3857]<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> grids: [test3857_grid]<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">layers:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> - name: test3857<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> title: test3857<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> sources: [test3857_cache]<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <br>
Why am I getting this error?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you for your prompt help.<br>
--<br>
<br>
Yours faithfully, <br>
<br>
Maxim Khitrin <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapproxy" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapproxy</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<p class="MsoNormal">С уважением,<u></u><u></u></p>
<div>
<p class="MsoNormal">Хитрин Максим<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div><div><div class="h5">
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal">С уважением,<u></u><u></u></p>
<div>
<p class="MsoNormal">Хитрин Максим<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>
</div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">С уважением,<div>Хитрин Максим</div><div><br></div></div>
</div>