Hi Bborie, <div>I think, that not all rasters are divisible without remainder (except 1x1 tile) :)</div><div><br></div><div>My problem is this (this is my raster after raster2psql displayed with tiles)</div><div><br></div>
<div><a href="http://sdrv.ms/OjbhoD">http://sdrv.ms/OjbhoD</a></div><div><br></div><div>I need to cut the last tiles on the east and south a make it smaller by the red line</div><div><br></div><div>But I think it is impossible now, but i will find the solution :)</div>
<div><br></div><div>I think about the function which will find the line of nodata value and then I make the polygon and intersect it with this polygon. :D</div><div><br></div><div>But if I understand it, if I cut last tiles and these will be smaller than others, I wont be able to load this raster into QGIS (PostGIS raster driver)</div>
<div><br></div><div>Thanks</div><div><br></div><div>Jakub<br><div><br></div><div>
 <table cellpadding="0" cellspacing="0" align="left">
  <tbody><tr>
   <td width="163" height="0"></td>
  </tr>
  <tr>
   <td></td>
   <td></td>
  </tr>
 </tbody></table>
 <br clear="ALL"><br><div class="gmail_quote">2012/8/26 Bborie Park <span dir="ltr"><<a href="mailto:bkpark@ucdavis.edu" target="_blank">bkpark@ucdavis.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Currently, that behavior is as expected due to the application of the<br>
specified tile size from the upper-left corner.  To minimize the tiles<br>
with large swaths of NODATA, you should try to use a tile size that is<br>
cleanly divisible (no remainder) by the raster's width and height or a<br>
size with a large remainder.  I usually recommend tile sizes of<br>
100x100 or smaller though sizes around 50x50 are even faster.  In<br>
terms of performance, the smaller the time size, the better the<br>
performance.<br>
<br>
-bborie<br>
<div class="HOEnZb"><div class="h5"><br>
On Sun, Aug 26, 2012 at 10:22 AM, Jakub Hettler <<a href="mailto:jakub.hettler@gmail.com">jakub.hettler@gmail.com</a>> wrote:<br>
> Hi all,<br>
> I would like to ask if there is a way how to import tiled raster into<br>
> PostGIS through raster2pgsql, but I need to make tiled raster, say 256x256,<br>
> but at the end of raster I have last tiles (on the east and south side)<br>
> which is on half out of the original raster (raster ends fe in the middle of<br>
> last tile). If I try to load imported raster into QGIS or use gdal_translate<br>
> I have nodata value on this place in the raster. Is there a way how to<br>
> import the raster with the smaller last tiles on the east and south edges?<br>
><br>
> Thanks<br>
><br>
> Jakub<br>
><br>
</div></div><div class="im HOEnZb">> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
><br>
<br>
<br>
<br>
</div><span class="HOEnZb"><font color="#888888">--<br>
Bborie Park<br>
Programmer<br>
Center for Vectorborne Diseases<br>
UC Davis<br>
530-752-8380<br>
<a href="mailto:bkpark@ucdavis.edu">bkpark@ucdavis.edu</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div></div>