Great! Thanks for pointing it out! Mauricio de paulo 2011/6/14 Duncan Golicher <[email protected]>
> No! > > I have now, and it works! Fantastic. > Many thanks, > > Duncan > > 2011/6/14 Maurício de Paulo <[email protected]>: > > Something regressed. This is the file that I just fixed. Did you reload > > qgis? > > > > 2011/6/14 Duncan Golicher <[email protected]> > >> > >> duncan@geodata:~$ locate DlgAddRasterLayer.py > >> /home/duncan/.qgis/python/plugins/wktraster/DlgAddRasterLayer.py > >> /home/duncan/.qgis/python/plugins/wktraster/DlgAddRasterLayer.pyc > >> /home/duncan/.qgis/python/plugins/wktraster/ui/DlgAddRasterLayer.py > >> /home/duncan/.qgis/python/plugins/wktraster/ui/DlgAddRasterLayer.pyc > >> > >> > >> 2011/6/14 Maurício de Paulo <[email protected]>: > >> > This is a filesystem problem... It isn't finding the python file. > Could > >> > you > >> > check if the file DlgAddRasterLayer.py exists and is written right? > >> > > >> > 2011/6/14 Duncan Golicher <[email protected]> > >> >> > >> >> Wow, That was quick! Reinstalled and tried for you. > >> >> > >> >> But I still get the other errors. > >> >> > >> >> > >> >> Traceback (most recent call last): > >> >> File "/home/duncan/.qgis/python/plugins/wktraster/wktRaster.py", > >> >> line 80, in callAddLayer > >> >> from DlgAddRasterLayer import DlgAddRasterLayer > >> >> File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 283, in > >> >> _import > >> >> mod = _builtin_import(name, globals, locals, fromlist, level) > >> >> ImportError: No module named DlgAddRasterLayer > >> >> > >> >> > >> >> > >> >> 2011/6/14 Maurício de Paulo <[email protected]>: > >> >> > Thanks for the tips, Duncan! > >> >> > I've written a quick fix for the problem. It was just an error > >> >> > catching > >> >> > that > >> >> > I missed. > >> >> > Now you can probably see the error message when the plugin loads > and > >> >> > then > >> >> > choose the right database connection. > >> >> > Thanks for the help! > >> >> > Mauricio de Paulo > >> >> > > >> >> > 2011/6/14 Duncan Golicher <[email protected]> > >> >> >> > >> >> >> I am connecting to a database called "test" when loading vector > data > >> >> >> and this has the raster data in. I don't have a database called > >> >> >> global > >> >> >> (anymore). Where do I find the connection string? This message > comes > >> >> >> up before the plugin asks me to make a connection at all. > >> >> >> > >> >> >> > >> >> >> 2011/6/14 Maurício de Paulo <[email protected]>: > >> >> >> > It's telling you that the database named Global doesn't exist. > Any > >> >> >> > idea > >> >> >> > why? > >> >> >> > Can you send me your connection string (hide the password, > >> >> >> > please). > >> >> >> > > >> >> >> > 2011/6/14 Duncan Golicher <[email protected]> > >> >> >> >> > >> >> >> >> I am using PostGIS 2.0 on Postresql 8.4 > >> >> >> >> > >> >> >> >> This is the error message I get > >> >> >> >> > >> >> >> >> An error has occured while executing Python code: > >> >> >> >> > >> >> >> >> Traceback (most recent call last): > >> >> >> >> File > "/home/duncan/.qgis/python/plugins/wktraster/wktRaster.py", > >> >> >> >> line 85, in callAddLayer > >> >> >> >> dlg = DlgAddRasterLayer() > >> >> >> >> File > >> >> >> >> > >> >> >> >> > "/home/duncan/.qgis/python/plugins/wktraster/DlgAddRasterLayer.py", > >> >> >> >> line 36, in __init__ > >> >> >> >> self.listTables(0) > >> >> >> >> File > >> >> >> >> > >> >> >> >> > "/home/duncan/.qgis/python/plugins/wktraster/DlgAddRasterLayer.py", > >> >> >> >> line 50, in listTables > >> >> >> >> tables=conn.listTables(self,connstring) #returns a list of > >> >> >> >> pairs > >> >> >> >> (index, value) > >> >> >> >> File "/home/duncan/.qgis/python/plugins/wktraster/conn.py", > line > >> >> >> >> 47, > >> >> >> >> in listTables > >> >> >> >> db = > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > GeoDB(host=parmlist[2].split("=")[1],dbname=parmlist[1].split("=")[1],user=parmlist[3].split("=")[1],passwd=parmlist[4].split("=")[1],port=int(parmlist[5].split("=")[1])) > >> >> >> >> File > >> >> >> >> "/home/duncan/.qgis/python/plugins/wktraster/postgis_utils.py", > >> >> >> >> line 134, in __init__ > >> >> >> >> raise DbError(e) > >> >> >> >> DbError: FATAL: database "Global" does not exist > >> >> >> >> > >> >> >> >> > >> >> >> >> Python version: > >> >> >> >> 2.6.5 (r265:79063, Apr 16 2010, 13:28:26) > >> >> >> >> [GCC 4.4.3] > >> >> >> >> > >> >> >> >> > >> >> >> >> QGIS version: > >> >> >> >> 1.7.0-Wroclaw Wroclaw, exported > >> >> >> >> > >> >> >> >> Python path: ['/home/duncan/.qgis/python/plugins/GeoCoding', > >> >> >> >> '/home/duncan/.qgis/python/plugins/GeoCoding', > >> >> >> >> '/usr/share/qgis/python', '/home/duncan/.qgis/python', > >> >> >> >> '/home/duncan/.qgis/python/plugins', > >> >> >> >> '/usr/share/qgis/python/plugins', > >> >> >> >> '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', > >> >> >> >> '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', > >> >> >> >> '/usr/lib/python2.6/lib-dynload', > >> >> >> >> '/usr/lib/python2.6/dist-packages', > >> >> >> >> '/usr/lib/python2.6/dist-packages/PIL', > >> >> >> >> '/usr/lib/python2.6/dist-packages/gst-0.10', > >> >> >> >> '/usr/lib/pymodules/python2.6', > >> >> >> >> '/usr/lib/python2.6/dist-packages/gtk-2.0', > >> >> >> >> '/usr/lib/pymodules/python2.6/gtk-2.0', > >> >> >> >> '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', > >> >> >> >> '/usr/local/lib/python2.6/dist-packages', > >> >> >> >> '/home/duncan/.qgis/python/plugins/mmqgis/forms', > >> >> >> >> '/home/duncan/.qgis/python/plugins/fTools/tools'] > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> 2011/6/14 Maurício de Paulo <[email protected]>: > >> >> >> >> > Hi Duncan, > >> >> >> >> > I've recently upgraded the plugin to start working with gdal > >> >> >> >> > 1.8. > >> >> >> >> > This > >> >> >> >> > version does not work with gdal 1.7. > >> >> >> >> > I can try to write a workaround for this, but I don't see a > >> >> >> >> > reason > >> >> >> >> > as > >> >> >> >> > gdal > >> >> >> >> > 1.8 is the first version to actually load and show data > without > >> >> >> >> > bugs. > >> >> >> >> > The qgis 1.7 from ubuntugis stable repository is compiled > >> >> >> >> > against > >> >> >> >> > gdal > >> >> >> >> > 1.8. > >> >> >> >> > I wouldn't advise anyone that want to use postgis raster to > use > >> >> >> >> > versions > >> >> >> >> > without gdal 1.8 for the reasons mentioned. > >> >> >> >> > > >> >> >> >> > I need to investigate why the qgis 1.7 with gdal 1.8 is not > >> >> >> >> > working. > >> >> >> >> > Could > >> >> >> >> > you send me the error message? I've tested here and it works > >> >> >> >> > fine. > >> >> >> >> > I've > >> >> >> >> > ran > >> >> >> >> > into some issues while testing when trying to view data > loaded > >> >> >> >> > before > >> >> >> >> > the > >> >> >> >> > gdal update. > >> >> >> >> > My tests were made with postgis 2.0 from trunk. What are you > >> >> >> >> > using? > >> >> >> >> > > >> >> >> >> > Thanks for helping! > >> >> >> >> > Mauricio de Paulo > >> >> >> >> > > >> >> >> >> > 2011/6/14 Duncan Golicher <[email protected]> > >> >> >> >> >> > >> >> >> >> >> Hello Mauricio, > >> >> >> >> >> > >> >> >> >> >> I am using Qgis version 1.8-Trunk built against code > revision > >> >> >> >> >> exported > >> >> >> >> >> GDAL/OGR version 1.6.3 > >> >> >> >> >> > >> >> >> >> >> Maybe, I should go back down a version but I do have > version > >> >> >> >> >> 1.7 > >> >> >> >> >> running on my desktop PC. In this case the add a raster > layer > >> >> >> >> >> python > >> >> >> >> >> code exits with errors in line 85,36 50 and 134. I could get > >> >> >> >> >> raster > >> >> >> >> >> layers from Postgis when using QGIS 1.6, but not load them > and > >> >> >> >> >> QGIS > >> >> >> >> >> 1.6 had a bug that led to crashes when rendering some raster > >> >> >> >> >> layers. > >> >> >> >> >> > >> >> >> >> >> Thanks for looking at this, > >> >> >> >> >> > >> >> >> >> >> Duncan > >> >> >> >> >> > >> >> >> >> >> 2011/6/14 Maurício de Paulo <[email protected]>: > >> >> >> >> >> > Hi Ducan, > >> >> >> >> >> > I don't know what repositories you are using. > >> >> >> >> >> > I've tested on ubuntugis repository with qgis 1.7. > >> >> >> >> >> > You can check what's the version qgis is compiled against > by > >> >> >> >> >> > the > >> >> >> >> >> > Help-About-About menu on qgis. > >> >> >> >> >> > There should be a line telling the ogr/gdal version there. > >> >> >> >> >> > Could you give me more information about this issue? > >> >> >> >> >> > Thanks for helping me. > >> >> >> >> >> > Mauricio de Paulo > >> >> >> >> >> > > >> >> >> >> >> > On Tue, Jun 14, 2011 at 9:45 AM, Duncan Golicher > >> >> >> >> >> > <[email protected]> > >> >> >> >> >> > wrote: > >> >> >> >> >> >> > >> >> >> >> >> >> Thanks for developing the QGIS raster plugin. I had it > >> >> >> >> >> >> running > >> >> >> >> >> >> with > >> >> >> >> >> >> QGIS 1.6 but since updating to 1.8 from trunk I cannot > get > >> >> >> >> >> >> it > >> >> >> >> >> >> to > >> >> >> >> >> >> work > >> >> >> >> >> >> with Gdal on Ubuntu Lucid. > >> >> >> >> >> >> > >> >> >> >> >> >> Message ... > >> >> >> >> >> >> > >> >> >> >> >> >> GDAL version incompatible with WktRaster. > >> >> >> >> >> >> Your QGIS found GDAL version 1630 > >> >> >> >> >> >> > >> >> >> >> >> >> I have the latest version of gdal.1.8 and I have tried > >> >> >> >> >> >> removing > >> >> >> >> >> >> and > >> >> >> >> >> >> reinstalling all components several times. > >> >> >> >> >> >> > >> >> >> >> >> >> Any thoughts on the cause of the problem? > >> >> >> >> >> >> > >> >> >> >> >> >> > >> >> >> >> >> >> Duncan > >> >> >> >> >> > > >> >> >> >> >> > > >> >> >> >> >> > > >> >> >> >> >> > -- > >> >> >> >> >> > Mauricio de Paulo > >> >> >> >> >> > Engenheiro Cartografo > >> >> >> >> >> > MapeandoOBrasil > >> >> >> >> >> > > >> >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > > >> >> >> >> > -- > >> >> >> >> > Mauricio de Paulo > >> >> >> >> > Engenheiro Cartografo > >> >> >> >> > MapeandoOBrasil > >> >> >> >> > > >> >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > -- > >> >> >> > Mauricio de Paulo > >> >> >> > Engenheiro Cartografo > >> >> >> > MapeandoOBrasil > >> >> >> > > >> >> >> > > >> >> > > >> >> > > >> >> > > >> >> > -- > >> >> > Mauricio de Paulo > >> >> > Engenheiro Cartografo > >> >> > MapeandoOBrasil > >> >> > > >> >> > > >> > > >> > > >> > > >> > -- > >> > Mauricio de Paulo > >> > Engenheiro Cartografo > >> > MapeandoOBrasil > >> > > >> > > > > > > > > > -- > > Mauricio de Paulo > > Engenheiro Cartografo > > MapeandoOBrasil > > > > > -- Mauricio de Paulo Engenheiro Cartografo MapeandoOBrasil <http://mapeandoobrasil.blogspot.com>
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
