I&#39;ve stumbled into a problem with some raster too. It seems like a gdal bug. But I could get it to work with the image available at: <a href="http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html">http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html</a><br>
Looks like gdal is still improving the non-regular raster reading and performance.<br>Well.. then I&#39;m going to release a new version with the same lib as pgmanager to make it easier to merge.<br>Hum... preview through pgmanager... I didn&#39;t think about it. Sounds good. I&#39;m going to review the code and see what i can do to make it happen.<br>
Best regards,<br>Mauricio<br><br><br><div class="gmail_quote">2010/12/14 Paolo Cavallini <span dir="ltr">&lt;<a href="mailto:cavallini@faunalia.it">cavallini@faunalia.it</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Il 13/12/2010 20:03, Maurício de Paulo ha scritto:<br>
<div class="im">&gt; Are you testing on ubuntu/Debian? I had to install pyqt4&#39;s psql driver<br>
&gt; by hand. I don&#39; t remeber exactly the driver&#39;s name. I think it&#39;s<br>
&gt; something like libqt4-psql.<br>
<br>
</div>Yes, I&#39;m on Debian.<br>
In fact:<br>
<div class="im">Warning: QSqlDatabase: QPSQL driver not loaded<br>
</div>Installing libqt4-sql-psql does the trick.<br>
However, I have the server on another machine, and the pg versions do not match, so I<br>
get Warning: This version of PostgreSQL is not supported and may not work.<br>
And in fact it does not work well: the raster is loaded, but I only get NULLs and 0<br>
instead of true values. Unsure, however, if the raster was loaded correctly in the db.<br>
<br>
On the machine where I have the db, I get instead (but this coudl be to mismatching<br>
pg versions, as I have both 8.4 and 9.0 istalled):<br>
Error:<br>
        GDAL Error 4: `PG: dbname=nove host=localhost user=nove password=***** port=5433<br>
schema=public table=dtm_rt&#39; does not exist in the file system,<br>
and is not recognised as a supported dataset name.<br>
<br>
During startup - There were 16 warnings (use warnings() to see them)<br>
Segmentation fault<br>
<div class="im"><br>
&gt; I&#39;ve used pyqt4 for table listing. I don&#39;t know what&#39;s going to be QGIS&#39;<br>
&gt; default pg library, but it&#39;s easily replaced.<br>
<br>
</div>I think it would be good not to add further cryptodependencies.<br>
<div class="im"><br>
&gt; Integration with PostgisManager? It can be done. But I was thinking<br>
&gt; about moving the plugin to the Layer menu (as I did with RGB Composition<br>
&gt; Plugin). IMHO plugins that load data should be with the other data<br>
&gt; loading interfaces. What do you think would be best for the users?<br>
<br>
</div>I think the best would be to integrate with both &quot;Add PostGIS vector&quot; for loading and<br>
with PostGIS manager for previewing and loading.<br>
<br>
All the best, and thanks a lot!<br>
<font color="#888888">--<br>
</font><div><div></div><div class="h5">Paolo Cavallini: <a href="http://www.faunalia.it/pc" target="_blank">http://www.faunalia.it/pc</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mauricio de Paulo<br>Engenheiro Cartografo<br><a href="http://mapeandoobrasil.blogspot.com" target="_blank">MapeandoOBrasil</a><br><br>