<div dir="ltr">I'm going to try and make that zip.<div><br></div><div>About explicit PROJECTION blocks, actually yes. I forgot about mentioning that. It works fine when explicitly setting the PROJECTION in the raster layer. However, I can't do that because the files referenced by the tileindex are in different projections.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 11, 2018 at 11:00 AM, Rahkonen Jukka (MML) <span dir="ltr"><<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi" target="_blank">jukka.rahkonen@maanmittauslaitos.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="FI" link="blue" vlink="purple">
<div class="m_-4968664480489407743WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I have been using a spatialite layer as a tileindex for years without problems so definitely that is not a bug that affects
all users and use cases. Try to create a zip file that contains everything that is needed for reproducing the issue. Let’s hope that you can make it with a spatialite database and two images in the tileindex.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Have you already tried to add explicit PROJECTION blocks into both LAYERs?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Lähettäjä:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> mapserver-users [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-<wbr>bounces@lists.osgeo.org</a>]
<b>Puolesta </b>Pablo Sanfilippo<br>
<b>Lähetetty:</b> 11. tammikuuta 2018 14:46<br>
<b>Vastaanottaja:</b> Seth G <<a href="mailto:sethg@geographika.co.uk" target="_blank">sethg@geographika.co.uk</a>><br>
<b>Kopio:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a><br>
<b>Aihe:</b> Re: [mapserver-users] MapServer returns a blank image when requesting a square image<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Oh, so this is a definitely a bug. Is it reported yet in the issue tracker?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Jan 10, 2018 at 3:55 PM, Seth G <<a href="mailto:sethg@geographika.co.uk" target="_blank">sethg@geographika.co.uk</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Hi Pablo,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Just to note I also ran into this issue so you are not alone!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">A WMS request from OpenLayers to MapServer would be fine, but modifying the size of the image (WIDTH and HEIGHT parameters) would result in a blank image and no errors in the logs. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I never got a chance to debug further though. An error should ideally be reported somewhere rather than a blank, seemingly valid, image. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Seth<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div id="m_-4968664480489407743m_2044650809904734904sig62266145">
<div>
<p class="MsoNormal">--<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">web:<a href="http://geographika.co.uk" target="_blank">http://geographika.co.uk</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">twitter: @geographika<u></u><u></u></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">On Wed, Jan 10, 2018, at 6:46 PM, Pablo Sanfilippo wrote:<u></u><u></u></p>
</div>
</div>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I admit this is the weirdest issue I have come across. This are the relevant parts of my MapServer configuration:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""># A valid mapfile used for testing</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New"">MAP</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> NAME valid</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> STATUS ON</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> PROJECTION</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> "init=epsg:4326"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> IMAGECOLOR 0 0 0</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> TRANSPARENT ON</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> WEB</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> METADATA</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> "wms_srs" "EPSG:4326 EPSG:3857"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> </span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> LAYER</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> NAME "index"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> STATUS ON</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> TYPE POLYGON</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> CONNECTIONTYPE POSTGIS</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> CONNECTION "host=x port=x dbname=x user=x password=x"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> DATA "geometry from (select i.geometry,
<a href="http://i.id" target="_blank">i.id</a>, '/vsis3/' || i.s3_bucket || '/' || i.s3_key as location from images_image) as index using unique id"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> CLASS</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> STYLE</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> OUTLINECOLOR 0 0 0</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> WIDTH 1.0</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> COLOR 200 200 200</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> ANTIALIAS true</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> LAYER</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> NAME "images"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> STATUS ON</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> TILEINDEX "index"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> TILEITEM "location"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> TYPE RASTER</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> PROJECTION</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> AUTO</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> METADATA</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> "wms_title" "Images"</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New""> </span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New"">END</span></span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="m_-4968664480489407743m2044650809904734904font"><span style="font-family:"Courier New"">The data in the PostGIS index is in EPSG:4326. The images referenced by the index are GeoTIFFs georeferenced in EPSG:4326.</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">A WMS request for the index layer shows the index polygons fine, whatever the SRS and image size in the request.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">A WMS request for the images layer using SRS=EPSG:4326 shows the images fine, whatever the image size.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">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.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Any clues?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks!<u></u><u></u></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u>______________________________<wbr>_________________</u><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">mapserver-users mailing list<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><u></u><u></u></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>