<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">"The rendering of the raster in QGIS is slow because the GDAL PostGIS</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">raster driver does not use pyramids in addition to several other</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">inefficiencies (one query per row)</span><div><font color="#222222" face="arial, sans-serif"><br></font></div>

<div><font color="#222222" face="arial, sans-serif">Is this something can be worked around or is being worked on?</font></div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Fri, Sep 7, 2012 at 12:47 PM, Bborie Park <span dir="ltr"><<a href="mailto:bkpark@ucdavis.edu" target="_blank">bkpark@ucdavis.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Brian,<br>
<br>
You should have raster2pgsql already since you compiled PostGIS from<br>
source.  There is no option in the build process to not compile<br>
raster2pgsql.<br>
<br>
The rendering of the raster in QGIS is slow because the GDAL PostGIS<br>
raster driver does not use pyramids in addition to several other<br>
inefficiencies (one query per row).<br>
<br>
-bborie<br>
<div class="im HOEnZb"><br>
On 09/07/2012 09:09 AM, Brian Fitzgerald wrote:<br>
> I've finally manged to get the following stack working<br>
><br>
> - Linux Mint 13 Mate<br>
> - Postgresql 9.1<br>
> - GDAL 1.9.1 built from source<br>
> - GEOS 3.3.5 built from source<br>
> - Postgis 2.0.1 built from source with GEOS and GDAL above<br>
> - QGIS nightlies for ubuntu<br>
><br>
> - I imported a digital ortho raster tiff (in SRID 2273) into Postgis using<br>
> the Database -> PostGIS Raster -> Load function<br>
> - I then loaded this raster into QGIS using the Database -> Postgis Raster<br>
> -> Add function<br>
><br>
> This works 'ok'... the 1mile x 1mile 1ft res image does finally display,<br>
> but it takes like 2 minutes (presumably because there are no pyramids?)<br>
><br>
> So I wanted to try and load a raster using the raster2pgsql tool...<br>
> however, I've realized that I don't have it because I built from source...<br>
> so:<br>
><br>
> Is there a place I can download the raster2pgsql tool source and also build<br>
> it from scratch?<br>
> Is there an alternative?<br>
> Is the reason the image is drawing sooooo slowly a lack of pyramids?<br>
><br>
> Thanks!!!<br>
><br>
> - Brian<br>
><br>
><br>
><br>
><br>
</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>
</div><span class="HOEnZb"><font color="#888888">--<br>
Bborie Park<br>
Programmer<br>
Center for Vectorborne Diseases<br>
UC Davis<br>
<a href="tel:530-752-8380" value="+15307528380">530-752-8380</a><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><br clear="all"><div><br></div>-- <br><span>------------------------------</span><span>--------</span><br><span>Brian Fitzgerald, PMP, GISP</span><br><a href="mailto:bkfitz@gmail.com" target="_blank">bkfitz@gmail.com</a><br>

<span>803.426.3469</span><br><span>------------------------------</span><span>---------</span><br>
</div>