<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.m2044650809904734904font
{mso-style-name:m_2044650809904734904font;}
span.Shkpostityyli18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Have you already tried to add explicit PROJECTION blocks into both LAYERs?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></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:mapserver-users-bounces@lists.osgeo.org]
<b>Puolesta </b>Pablo Sanfilippo<br>
<b>Lähetetty:</b> 11. tammikuuta 2018 14:46<br>
<b>Vastaanottaja:</b> Seth G <sethg@geographika.co.uk><br>
<b>Kopio:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> Re: [mapserver-users] MapServer returns a blank image when requesting a square image<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Oh, so this is a definitely a bug. Is it reported yet in the issue tracker?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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:<o:p></o:p></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,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Just to note I also ran into this issue so you are not alone!<o:p></o:p></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. <o:p></o:p></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. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Seth<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div id="m_2044650809904734904sig62266145">
<div>
<p class="MsoNormal">--<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">web:<a href="http://geographika.co.uk" target="_blank">http://geographika.co.uk</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">twitter: @geographika<o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">On Wed, Jan 10, 2018, at 6:46 PM, Pablo Sanfilippo wrote:<o:p></o:p></p>
</div>
</div>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi all,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""># A valid mapfile used for testing</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New"">MAP</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> NAME valid</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> STATUS ON</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> PROJECTION</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> "init=epsg:4326"</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> IMAGECOLOR 0 0 0</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> TRANSPARENT ON</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> WEB</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> METADATA</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> "wms_srs" "EPSG:4326 EPSG:3857"</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> </span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> LAYER</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> NAME "index"</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> STATUS ON</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> TYPE POLYGON</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> CONNECTIONTYPE POSTGIS</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> CONNECTION "host=x port=x dbname=x user=x password=x"</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><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><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> CLASS</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> STYLE</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> OUTLINECOLOR 0 0 0</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> WIDTH 1.0</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> COLOR 200 200 200</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> ANTIALIAS true</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> LAYER</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> NAME "images"</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> STATUS ON</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> TILEINDEX "index"</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> TILEITEM "location"</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> TYPE RASTER</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> PROJECTION</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> AUTO</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> METADATA</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> "wms_title" "Images"</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> END</span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New""> </span></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><span style="font-family:"Courier New"">END</span></span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="m2044650809904734904font"><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><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></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.<o:p></o:p></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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Any clues?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u>_______________________________________________</u><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">mapserver-users mailing list<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>