<div dir="ltr">Hi all,<div><br></div><div>I admit this is the weirdest issue I have come across. This are the relevant parts of my MapServer configuration:</div><div><br></div><div><div><font face="monospace, monospace"># A valid mapfile used for testing</font></div><div><font face="monospace, monospace">MAP</font></div><div><font face="monospace, monospace">  NAME valid</font></div><div><font face="monospace, monospace">  STATUS ON</font></div><div><font face="monospace, monospace">  PROJECTION</font></div><div><font face="monospace, monospace">    "init=epsg:4326"</font></div><div><font face="monospace, monospace">  END</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">  IMAGECOLOR 0 0 0</font></div><div><font face="monospace, monospace">  TRANSPARENT ON</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">  WEB</font></div><div><font face="monospace, monospace">    METADATA</font></div><div><font face="monospace, monospace">      "wms_srs"             "EPSG:4326 EPSG:3857"</font></div><div><font face="monospace, monospace">  END</font></div><div><font face="monospace, monospace">  END</font></div><div><font face="monospace, monospace">  </font></div><div><font face="monospace, monospace">  LAYER</font></div><div><font face="monospace, monospace">    NAME "index"</font></div><div><font face="monospace, monospace">    STATUS ON</font></div><div><font face="monospace, monospace">    TYPE POLYGON</font></div><div><font face="monospace, monospace">    CONNECTIONTYPE POSTGIS</font></div><div><font face="monospace, monospace">    CONNECTION "host=x port=x dbname=x user=x password=x"</font></div><div><font face="monospace, monospace">    DATA "geometry from (select i.geometry, <a href="http://i.id">i.id</a>, '/vsis3/' || i.s3_bucket || '/' || i.s3_key as location from images_image) as index using unique id"</font></div><div><font face="monospace, monospace">    CLASS</font></div><div><font face="monospace, monospace">      STYLE</font></div><div><font face="monospace, monospace">        OUTLINECOLOR 0 0 0</font></div><div><font face="monospace, monospace">        WIDTH 1.0</font></div><div><font face="monospace, monospace">        COLOR 200 200 200</font></div><div><font face="monospace, monospace">        ANTIALIAS true</font></div><div><font face="monospace, monospace">      END</font></div><div><font face="monospace, monospace">    END</font></div><div><font face="monospace, monospace">  END</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">  LAYER</font></div><div><font face="monospace, monospace">    NAME "images"</font></div><div><font face="monospace, monospace">    STATUS ON</font></div><div><font face="monospace, monospace">    TILEINDEX "index"</font></div><div><font face="monospace, monospace">    TILEITEM "location"</font></div><div><font face="monospace, monospace">    TYPE RASTER</font></div><div><font face="monospace, monospace">    PROJECTION</font></div><div><font face="monospace, monospace">      AUTO</font></div><div><font face="monospace, monospace">    END</font></div><div><font face="monospace, monospace">    METADATA</font></div><div><font face="monospace, monospace">      "wms_title"           "Images"</font></div><div><font face="monospace, monospace">    END</font></div><div><font face="monospace, monospace">  END</font></div><div><font face="monospace, monospace">  </font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">END</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">The data in the PostGIS index is in EPSG:4326. The images referenced by the index are GeoTIFFs georeferenced in EPSG:4326.</font></div><div><br></div><div>A WMS request for the index layer shows the index polygons fine, whatever the SRS and image size in the request.</div><div>A WMS request for the images layer using SRS=EPSG:4326 shows the images fine, whatever the image size.</div><div>A WMS request for the images layer using SRS=EPSG:3857 will work fine as long as the requested image size's x is greater than or equal to the y. If not, it will return a blank (transparent) image. For example, a 1300x1299 image will work fine, a 1300x1300 image won't work and 1301x1300 won't work either.</div><div><br></div><div>Any clues?</div><div><br></div><div>Thanks!</div></div>