<div dir="ltr"><div><div><div><div><div><br><br></div>Jukka Rahkonen reported an issue on the mapserver list when testing MS4W 3.1.0beta1:<br><br><a href="http://osgeo-org.1560.x6.nabble.com/Mapserver-6-2-1-fails-to-read-remote-WMS-in-png-format-td5049617.html">http://osgeo-org.1560.x6.nabble.com/Mapserver-6-2-1-fails-to-read-remote-WMS-in-png-format-td5049617.html</a><br>
<br></div>I have the same issue using the same MS4W 3.1.0beta1. <br><br>Basically, requests to remote WMS servers using image/png as the format will fail, while the same services work fine using requests of type image/jpeg. The error reported by Mapserver is:<br>
<br><span>drawGDAL(): Unable <span class="">to</span> access file. GDALDatasetRasterIO() <span class="">failed</span>: GetBlockRef <span class="">failed</span> at X block offset 0, Y block offset 0<br><br></span><span>msDrawMap(): <span class="">WMS</span> connection error. <span class="">Failed</span> <span class="">to</span> draw <span class="">WMS</span> layer named 'test'. This most likely happened because the <span class="">remote</span> <span class="">WMS</span> server returned an invalid image, and XML exception or another unexpected result in response <span class="">to</span> the GetMap request. Also check and make sure that the layer's connection URL is valid.
<br><br></span>The exact requests to the same remote servers work fine when tested in versions of MS4W prior to this beta, so the connection URLs are working fine - Mapserver/GDAL just seems to not like receiving the incoming png format for some reason.<br>
<br></div><div>Does anyone else have this problem?<br></div><div><br></div><br></div></div></div>