<div dir="ltr">Hi,<div><br></div><div>For the <span style="color:rgb(0,0,0);white-space:pre-wrap">calc_tile_size</span> function [1], consider a case where it is called with : <span style="color:rgb(0,0,0);white-space:pre-wrap">dimX > max and </span><span style="color:rgb(0,0,0);white-space:pre-wrap">dimY <= max. </span></div>

<div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">The return values will be : </span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><b>tileX =</b></span><span style="color:rgb(0,0,0);white-space:pre-wrap"><b> -1</b>, </span><span style="color:rgb(0,0,0);white-space:pre-wrap">tileY =</span><span style="color:rgb(0,0,0);white-space:pre-wrap"> dimY</span></div>

<div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">Which should not be the case, or am I missing something here?</span></div><div><br></div>
<div>
[1] <a href="http://svn.osgeo.org/postgis/trunk/raster/loader/raster2pgsql.c">http://svn.osgeo.org/postgis/trunk/raster/loader/raster2pgsql.c</a><br></div><div><br></div><div>Regards,</div><div>Varun Saraf</div></div>