Great. I've included a new combobox on the ui. I'm going to implement it and release as version 0.3.<br>Any other sugestions on what a "Load postgis raster" plugin should do?<br>Best regards,<br>Mauricio de Paulo<br>
<br><div class="gmail_quote">2010/11/30 Jorge Arévalo <span dir="ltr"><<a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">2010/11/30 Maurício de Paulo <<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>>:<br>
</div><div class="im">> Yes, the main issue we found was the performance of display. So something<br>
> 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<br>
> plugin. I think that a combobox storing "Read whole table" "Read one row"<br>
> and "Read entire database" should pass the right options. Is it the real<br>
> interpretation of this parameter? Any sugestions?<br>
> Best regards,<br>
> Mauricio de Paulo<br>
><br>
<br>
</div>Yes, Basically, one spatial query is executed for each data petition.<br>
That can (must) be improved. I know it.<br>
<br>
About the parameter, yes. There is, basically, 3 ways of using the driver:<br>
<br>
- Providing only a database name, and optionally, a schema name: The<br>
driver returns all the existent raster tables as subdatasets<br>
- Providing a database name, a table name and optionally, a column<br>
name: The driver returns all the rows of the raster table as a<br>
subdataset. This is, consider each row as a different raster. The same<br>
if you provide "mode=1" as parameter.<br>
- Providing a database name, a table name and "mode = 2": The driver<br>
consider that all the rows of the table are tiles of a bigger raster<br>
coverage, and constructs one raster object based in the whole extent<br>
of all the raster tiles. For now, just working with regularly blocked<br>
rasters.<br>
<br>
So, about your combobox, the option "read the entire database" (or<br>
"read one schema") should disable the selection of a table name (it is<br>
the first of the 3 points).<br>
<div class="im"><br>
Best regards,<br>
<br>
--<br>
Jorge Arévalo<br>
Internet & 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>
<br>
</div>P.S.: My mails to QGIS list are rejected, but I think that could be<br>
interesting. I'll subscribe to the list.<br>
<div><div></div><div class="h5"><br>
><br>
> 2010/11/30 Jorge Arévalo <<a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a>><br>
>><br>
>> 2010/11/30 Maurício de Paulo <<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>>:<br>
>> > I've been using GDAL 1.7 and postgis 1.5.1<br>
>> > Both postgis' windows and ubuntu versions are able to load the rasters<br>
>> > fine.<br>
>> > We've encountered some trouble with what we believe is the "regular<br>
>> > blocking" issue.<br>
>> > wktraster's QGIS plugin and MapServer source were tested on ubuntu 10.04<br>
>> > with ubuntugis binaries.<br>
>> > Perfomance looks like a huge issue at the moment. I didn't investigate<br>
>> > why.<br>
>> > I can probably take look back at this issue when I get back home to my<br>
>> > ubuntu box. I can't test on windows because there is no QGIS compiled<br>
>> > with<br>
>> > gdal 1.7 for windows prebuilt.<br>
>> > This new gdal driver version was included in which gdal release? Maybe<br>
>> > we<br>
>> > can recompile everything and test again.<br>
>> > Best regards,<br>
>> > Mauricio<br>
>> ><br>
>><br>
>> Yes, the old version of the driver had some known (by me) problems:<br>
>><br>
>> - Depends on the information stored in "raster_columns" table, in<br>
>> PostGIS installation, and it shouldn't.<br>
>> - Performance. I need to review this. It's a question of PostGIS queries.<br>
>><br>
>> In October, I commited a new version with some improvements. It'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'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: "mode". 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>
>><br>
>> Best regards,<br>
>> --<br>
>> Jorge Arévalo<br>
>> Internet & 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>
>> > 2010/11/29 Jorge Arévalo <<a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a>><br>
>> >><br>
>> >> Good news! Which version of GDAL/PostGIS are you using? I commited a<br>
>> >> new version of the GDAL driver on October, and included WKT Raster as<br>
>> >> official part of PostGIS on September 26th.<br>
>> >><br>
>> >> On Mon, Nov 29, 2010 at 9:40 PM, Maurício de Paulo<br>
>> >> <<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>> wrote:<br>
>> >> > Ok, after a few minutes of implementation here it is. Now the plugin<br>
>> >> > lists<br>
>> >> > the tables from the database and shows some of it's metadata. Now I<br>
>> >> > think<br>
>> >> > it's fully functional. If anyone finds a bug , please tell me.<br>
>> >> > Best regards,<br>
>> >> ><br>
>> >> > On Mon, Nov 29, 2010 at 3:50 PM, Maurício de Paulo<br>
>> >> > <<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>><br>
>> >> > wrote:<br>
>> >> >><br>
>> >> >> Hi Jorge,<br>
>> >> >> Good news. The plugin wktraster is exactly a tool to connect qgis to<br>
>> >> >> postgis rasters through GDAL and visualize the data.<br>
>> >> >> Stefan asked about the processing. This is something the plugin<br>
>> >> >> doesn't<br>
>> >> >> do.<br>
>> >> >> I've tested with a friend both qgis (with the plugin) and mapserver<br>
>> >> >> loading postgis rasters. Both worked fine, and the only requirement<br>
>> >> >> is<br>
>> >> >> qgis<br>
>> >> >> compiled against gdal 1.7.<br>
>> >> >> I'm interested in updating the plugin this week to work as I've<br>
>> >> >> planned.<br>
>> >> >> It's going to speak for itself.<br>
>> >> >> Best Regards,<br>
>> >> >> Mauricio<br>
>> >> >> Ps.: Anyone willing to help and join this effort is always welcome.<br>
>> >> >><br>
>> >> >> On Mon, Nov 29, 2010 at 3:45 PM, Jorge Arévalo<br>
>> >> >> <<a href="mailto:jorge.arevalo@deimos-space.com">jorge.arevalo@deimos-space.com</a>> wrote:<br>
>> >> >>><br>
>> >> >>> Hi,<br>
>> >> >>><br>
>> >> >>> If you want a GDAL version compiled with PostGIS Raster support on<br>
>> >> >>> Windows, you may take a look here:<br>
>> >> >>> <a href="http://vbkto.dyndns.org:1280/sdk/" target="_blank">http://vbkto.dyndns.org:1280/sdk/</a><br>
>> >> >>><br>
>> >> >>> Visualizing PostGIS Raster data via GDAL driver is one of my TODO<br>
>> >> >>> tasks. I don't have too much free time now, but if you're<br>
>> >> >>> interested<br>
>> >> >>> on this topic, and you're going to test it, please let me know.<br>
>> >> >>> There<br>
>> >> >>> are more people interested on that, and I'm providing support to<br>
>> >> >>> some<br>
>> >> >>> of them (not as much support as I'd like, because the time...)<br>
>> >> >>><br>
>> >> >>> Best regards,<br>
>> >> >>><br>
>> >> >>> --<br>
>> >> >>> Jorge Arévalo<br>
>> >> >>> Internet & 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>
>> >> >>> 2010/11/29 Stefan Keller <<a href="mailto:sfkeller@gmail.com">sfkeller@gmail.com</a>>:<br>
>> >> >>> > Ok (I'm cross posting to qgis-developer and postgis-users).<br>
>> >> >>> ><br>
>> >> >>> > I'm still not sure if I did express myself clearly:<br>
>> >> >>> > You say, that under Windows, there's no QGIS compiled against<br>
>> >> >>> > GDAL<br>
>> >> >>> > 1.7/1.8 with PostGIS Raster support?<br>
>> >> >>> ><br>
>> >> >>> > What I finally dream of, is using QGIS to display the results of<br>
>> >> >>> > a<br>
>> >> >>> > SQL<br>
>> >> >>> > query (either as raster or vector) against at least one raster<br>
>> >> >>> > layer.<br>
>> >> >>> > This query contains raster constructors (like ST_Intersection)<br>
>> >> >>> > and<br>
>> >> >>> > operations (like ST_Reclass; see<br>
>> >> >>> > <a href="http://trac.osgeo.org/postgis/wiki/WKTRaster" target="_blank">http://trac.osgeo.org/postgis/wiki/WKTRaster</a>).<br>
>> >> >>> ><br>
>> >> >>> > Any suggestions?<br>
>> >> >>> > -S.<br>
>> >> >>> ><br>
>> >> >>> ><br>
>> >> >>> > 2010/11/29 Maurício de Paulo <...@<a href="http://gmail.com" target="_blank">gmail.com</a>>:<br>
>> >> >>> >> Hi Stefan,<br>
>> >> >>> >><br>
>> >> >>> >> WKTRaster Plugin just repasses the right information to the GDAL<br>
>> >> >>> >> driver.<br>
>> >> >>> >> It's not a new qgis driver.<br>
>> >> >>> >> I'm planning on implementing the table listing using pyqt this<br>
>> >> >>> >> week. I<br>
>> >> >>> >> was a<br>
>> >> >>> >> little delayed by my master's application.<br>
>> >> >>> >><br>
>> >> >>> >> The idea in the plugin is simply find the QGIS's conections<br>
>> >> >>> >> available,<br>
>> >> >>> >> list<br>
>> >> >>> >> the raster tables inside postgis and pass the right arguments to<br>
>> >> >>> >> the<br>
>> >> >>> >> gdal<br>
>> >> >>> >> driver.<br>
>> >> >>> >><br>
>> >> >>> >> At the moment I haven't found any gdal 1.7 windows build with<br>
>> >> >>> >> QGIS.<br>
>> >> >>> >> GDAL 1.7<br>
>> >> >>> >> introduces wktraster. The driver conects to postgis raster and<br>
>> >> >>> >> read<br>
>> >> >>> >> it<br>
>> >> >>> >> as a<br>
>> >> >>> >> binary. It's still VERY unstable and gdal version 1.8 seems to<br>
>> >> >>> >> be<br>
>> >> >>> >> greatly<br>
>> >> >>> >> improved.<br>
>> >> >>> >> So what a windows user need to get the plugin to work is a<br>
>> >> >>> >> (still<br>
>> >> >>> >> not<br>
>> >> >>> >> found)<br>
>> >> >>> >> qgis compiled against gdal 1.7.<br>
>> >> >>> >> You can compile your's from source if needed.<br>
>> >> >>> >><br>
>> >> >>> >> So, as far as qgis to wktraster, with the plugin qgis reads the<br>
>> >> >>> >> wktraster as<br>
>> >> >>> >> a regular raster. Just for show. If you did some kind of<br>
>> >> >>> >> processing<br>
>> >> >>> >> and<br>
>> >> >>> >> populated a new raster table, qgis is going to read that result<br>
>> >> >>> >> too.<br>
>> >> >>> >> The<br>
>> >> >>> >> plugin is not intended (at the moment at least) to raster<br>
>> >> >>> >> processing<br>
>> >> >>> >> inside<br>
>> >> >>> >> postgis. It just loads the table to the screen.<br>
>> >> >>> >><br>
>> >> >>> >> In the future, with a more stable wktraster probably someone (or<br>
>> >> >>> >> me)<br>
>> >> >>> >> is<br>
>> >> >>> >> going to write a set of wktraster's tools as a plugin, but for<br>
>> >> >>> >> the<br>
>> >> >>> >> moment it<br>
>> >> >>> >> should be run as sql. I advise postgis manager's to the task.<br>
>> >> >>> >><br>
>> >> >>> >> Best regards,<br>
>> >> >>> >><br>
>> >> >>> >><br>
>> >> >>> >> 2010/11/29 Stefan Keller <...@<a href="http://gmail.com" target="_blank">gmail.com</a>><br>
>> >> >>> >>><br>
>> >> >>> >>> Hi,<br>
>> >> >>> >>><br>
>> >> >>> >>> There are new versions around of "PostGIS Raster"<br>
>> >> >>> >>> (renamed from formerly known "PostGIS WKT Raster").<br>
>> >> >>> >>><br>
>> >> >>> >>> What's the status of your "WKTRaster Plugin 0.1"?<br>
>> >> >>> >>> I assume it's rendering the raster values (e.g. from<br>
>> >> >>> >>> ST_AsBinary)<br>
>> >> >>> >>> -<br>
>> >> >>> >>> not the polygons/geomvals (from ST_DumpAsPolygons), right?<br>
>> >> >>> >>> Is there a chance to get it running on Windows too?<br>
>> >> >>> >>> Are there other plugins?<br>
>> >> >>> >>><br>
>> >> >>> >>> Yours, S.<br>
>> >> >>> > _______________________________________________<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>
>> >> >> --<br>
>> >> >> Mauricio de Paulo<br>
>> >> >> Engenheiro Cartografo<br>
>> >> >><br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > --<br>
>> >> > Mauricio de Paulo<br>
>> >> > Engenheiro Cartografo<br>
>> >> ><br>
>> >> ><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Jorge Arévalo<br>
>> >> Internet & 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>
>> ><br>
>> ><br>
>> > --<br>
>> > Mauricio de Paulo<br>
>> > Engenheiro Cartografo<br>
>> ><br>
>> ><br>
><br>
><br>
><br>
> --<br>
> Mauricio de Paulo<br>
> Engenheiro Cartografo<br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mauricio de Paulo<br>Engenheiro Cartografo<br><br>