Yes, the main issue we found was the performance of display. So something inside the driver is slowing the reading process done by qgis. <br>I took a look at the MODE option. It can be set in the user interface on my plugin. I think that a combobox storing &quot;Read whole table&quot; &quot;Read one row&quot; and &quot;Read entire database&quot; should pass the right options. Is it the real interpretation of this parameter? Any sugestions?<br>
Best regards, <br>Mauricio de Paulo<br><br><br><div class="gmail_quote">2010/11/30 Jorge Arévalo <span dir="ltr">&lt;<a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</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;">
2010/11/30 Maurício de Paulo &lt;<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>&gt;:<br>
<div class="im">&gt; I&#39;ve been using GDAL 1.7 and postgis 1.5.1<br>
&gt; Both postgis&#39; windows and ubuntu versions are able to load the rasters fine.<br>
&gt; We&#39;ve encountered some trouble with what we believe is the &quot;regular<br>
&gt; blocking&quot; issue.<br>
&gt; wktraster&#39;s QGIS plugin and MapServer source were tested on ubuntu 10.04<br>
&gt; with ubuntugis binaries.<br>
&gt; Perfomance looks like a huge issue at the moment. I didn&#39;t investigate why.<br>
&gt; I can probably take look back at this issue when I get back home to my<br>
&gt; ubuntu box. I can&#39;t test on windows because there is no QGIS compiled with<br>
&gt; gdal 1.7 for windows prebuilt.<br>
&gt; This new gdal driver version was included in which gdal release? Maybe we<br>
&gt; can recompile everything and test again.<br>
&gt; Best regards,<br>
&gt; Mauricio<br>
&gt;<br>
<br>
</div>Yes, the old version of the driver had some known (by me) problems:<br>
<br>
- Depends on the information stored in &quot;raster_columns&quot; table, in<br>
PostGIS installation, and it shouldn&#39;t.<br>
- Performance. I need to review this. It&#39;s a question of PostGIS queries.<br>
<br>
In October, I commited a new version with some improvements. It&#39;s in<br>
GDAL trunk since release 20912<br>
(<a href="http://trac.osgeo.org/gdal/changeset/20912" target="_blank">http://trac.osgeo.org/gdal/changeset/20912</a>). Anyway, I&#39;d like to<br>
improve more things in this driver. The reading process is the big<br>
issue right now. The best way to read blocks of data.<br>
<br>
If you use it, the most important thing is now you need to specify an<br>
extra parameter: &quot;mode&quot;. Further information here:<br>
<a href="http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html" target="_blank">http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html</a><br>
<div><div></div><div class="h5"><br>
Best regards,<br>
--<br>
Jorge Arévalo<br>
Internet &amp; Mobilty Division, DEIMOS<br>
<a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a><br>
<a href="http://mobility.grupodeimos.com/" target="_blank">http://mobility.grupodeimos.com/</a><br>
<a href="http://gis4free.wordpress.com" target="_blank">http://gis4free.wordpress.com</a><br>
<br>
&gt; 2010/11/29 Jorge Arévalo &lt;<a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Good news! Which version of GDAL/PostGIS are you using? I commited a<br>
&gt;&gt; new version of the GDAL driver on October, and included WKT Raster as<br>
&gt;&gt; official part of PostGIS on September 26th.<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Nov 29, 2010 at 9:40 PM, Maurício de Paulo<br>
&gt;&gt; &lt;<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Ok, after a few minutes of implementation here it is. Now the plugin<br>
&gt;&gt; &gt; lists<br>
&gt;&gt; &gt; the tables from the database and shows some of it&#39;s metadata. Now I<br>
&gt;&gt; &gt; think<br>
&gt;&gt; &gt; it&#39;s fully functional. If anyone finds a bug , please tell me.<br>
&gt;&gt; &gt; Best regards,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Mon, Nov 29, 2010 at 3:50 PM, Maurício de Paulo<br>
&gt;&gt; &gt; &lt;<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi Jorge,<br>
&gt;&gt; &gt;&gt; Good news. The plugin wktraster is exactly a tool to connect qgis to<br>
&gt;&gt; &gt;&gt; postgis rasters through GDAL and visualize the data.<br>
&gt;&gt; &gt;&gt; Stefan asked about the processing. This is something the plugin doesn&#39;t<br>
&gt;&gt; &gt;&gt; do.<br>
&gt;&gt; &gt;&gt; I&#39;ve tested with a friend both qgis (with the plugin) and mapserver<br>
&gt;&gt; &gt;&gt; loading postgis rasters. Both worked fine, and the only requirement is<br>
&gt;&gt; &gt;&gt; qgis<br>
&gt;&gt; &gt;&gt; compiled against gdal 1.7.<br>
&gt;&gt; &gt;&gt; I&#39;m interested in updating the plugin this week to work as I&#39;ve<br>
&gt;&gt; &gt;&gt; planned.<br>
&gt;&gt; &gt;&gt; It&#39;s going to speak for itself.<br>
&gt;&gt; &gt;&gt; Best Regards,<br>
&gt;&gt; &gt;&gt; Mauricio<br>
&gt;&gt; &gt;&gt; Ps.: Anyone willing to help and join this effort is always welcome.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Mon, Nov 29, 2010 at 3:45 PM, Jorge Arévalo<br>
&gt;&gt; &gt;&gt; &lt;<a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; If you want a GDAL version compiled with PostGIS Raster support on<br>
&gt;&gt; &gt;&gt;&gt; Windows, you may take a look here: <a href="http://vbkto.dyndns.org:1280/sdk/" target="_blank">http://vbkto.dyndns.org:1280/sdk/</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Visualizing PostGIS Raster data via GDAL driver is one of my TODO<br>
&gt;&gt; &gt;&gt;&gt; tasks. I don&#39;t have too much free time now, but if you&#39;re interested<br>
&gt;&gt; &gt;&gt;&gt; on this topic, and you&#39;re going to test it, please let me know. There<br>
&gt;&gt; &gt;&gt;&gt; are more people interested on that, and I&#39;m providing support to some<br>
&gt;&gt; &gt;&gt;&gt; of them (not as much support as I&#39;d like, because the time...)<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Best regards,<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; --<br>
&gt;&gt; &gt;&gt;&gt; Jorge Arévalo<br>
&gt;&gt; &gt;&gt;&gt; Internet &amp; Mobilty Division, DEIMOS<br>
&gt;&gt; &gt;&gt;&gt; <a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a><br>
&gt;&gt; &gt;&gt;&gt; <a href="http://mobility.grupodeimos.com/" target="_blank">http://mobility.grupodeimos.com/</a><br>
&gt;&gt; &gt;&gt;&gt; <a href="http://gis4free.wordpress.com" target="_blank">http://gis4free.wordpress.com</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; 2010/11/29 Stefan Keller &lt;<a href="mailto:sfkeller@gmail.com">sfkeller@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt;&gt; &gt; Ok (I&#39;m cross posting to qgis-developer and postgis-users).<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; I&#39;m still not sure if I did express myself clearly:<br>
&gt;&gt; &gt;&gt;&gt; &gt; You say, that under Windows, there&#39;s no QGIS compiled against GDAL<br>
&gt;&gt; &gt;&gt;&gt; &gt; 1.7/1.8 with PostGIS Raster support?<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; What I finally dream of, is using QGIS to display the results of a<br>
&gt;&gt; &gt;&gt;&gt; &gt; SQL<br>
&gt;&gt; &gt;&gt;&gt; &gt; query (either as raster or vector) against at least one raster<br>
&gt;&gt; &gt;&gt;&gt; &gt; layer.<br>
&gt;&gt; &gt;&gt;&gt; &gt; This query contains raster constructors (like ST_Intersection) and<br>
&gt;&gt; &gt;&gt;&gt; &gt; operations (like ST_Reclass; see<br>
&gt;&gt; &gt;&gt;&gt; &gt; <a href="http://trac.osgeo.org/postgis/wiki/WKTRaster" target="_blank">http://trac.osgeo.org/postgis/wiki/WKTRaster</a>).<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; Any suggestions?<br>
&gt;&gt; &gt;&gt;&gt; &gt; -S.<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; 2010/11/29 Maurício de Paulo &lt;...@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Hi Stefan,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; WKTRaster Plugin just repasses the right information to the GDAL<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; driver.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; It&#39;s not a new qgis driver.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; I&#39;m planning on implementing the table listing using pyqt this<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; week. I<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; was a<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; little delayed by my master&#39;s application.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; The idea in the plugin is simply find the QGIS&#39;s conections<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; available,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; the raster tables inside postgis and pass the right arguments to<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; the<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; gdal<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; driver.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; At the moment I haven&#39;t found any gdal 1.7 windows build with QGIS.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; GDAL 1.7<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; introduces wktraster. The driver conects to postgis raster and read<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; it<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; as a<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; binary. It&#39;s still VERY unstable and gdal version 1.8 seems to be<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; greatly<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; improved.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; So what a windows user need to get the plugin to work is a (still<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; not<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; found)<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; qgis compiled against gdal 1.7.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; You can compile your&#39;s from source if needed.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; So, as far as qgis to wktraster, with the plugin qgis reads the<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; wktraster as<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; a regular raster. Just for show. If you did some kind of processing<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; and<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; populated a new raster table, qgis is going to read that result<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; too.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; The<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; plugin is not intended (at the moment at least) to raster<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; processing<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; inside<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; postgis. It just loads the table to the screen.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; In the future, with a more stable wktraster probably someone (or<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; me)<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; is<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; going to write a set of wktraster&#39;s tools as a plugin, but for the<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; moment it<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; should be run as sql. I advise postgis manager&#39;s to the task.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Best regards,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; 2010/11/29 Stefan Keller &lt;...@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; There are new versions around of &quot;PostGIS Raster&quot;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; (renamed from formerly known &quot;PostGIS WKT Raster&quot;).<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; What&#39;s the status of your &quot;WKTRaster Plugin 0.1&quot;?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; I assume it&#39;s rendering the raster values (e.g. from ST_AsBinary)<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; -<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; not the polygons/geomvals (from ST_DumpAsPolygons), right?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; Is there a chance to get it running on Windows too?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; Are there other plugins?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;&gt; Yours, S.<br>
&gt;&gt; &gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; &gt; postgis-users mailing list<br>
&gt;&gt; &gt;&gt;&gt; &gt; <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
&gt;&gt; &gt;&gt;&gt; &gt; <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Mauricio de Paulo<br>
&gt;&gt; &gt;&gt; Engenheiro Cartografo<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Mauricio de Paulo<br>
&gt;&gt; &gt; Engenheiro Cartografo<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Jorge Arévalo<br>
&gt;&gt; Internet &amp; Mobilty Division, DEIMOS<br>
&gt;&gt; <a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a><br>
&gt;&gt; <a href="http://mobility.grupodeimos.com/" target="_blank">http://mobility.grupodeimos.com/</a><br>
&gt;&gt; <a href="http://gis4free.wordpress.com" target="_blank">http://gis4free.wordpress.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Mauricio de Paulo<br>
&gt; Engenheiro Cartografo<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mauricio de Paulo<br>Engenheiro Cartografo<br><br>