[QGIS-trac] [Quantum GIS] #2445: Problems with table manager and
postgis tables
Quantum GIS
qgis at qgis.org
Tue Feb 16 05:06:22 EST 2010
#2445: Problems with table manager and postgis tables
---------------------------------------------------------+------------------
Reporter: bjpfei | Owner: borysiasty
Type: bug | Status: new
Priority: critical: causes crash or data corruption | Milestone: Version 1.5.0
Component: Python plugins and bindings | Version: HEAD
Keywords: | Platform_version:
Platform: All | Must_fix: Yes
Status_info: 0 |
---------------------------------------------------------+------------------
It seems that the table manager doesn't work with postgis tables that
don't have the geometry column as last column.
1.) Try a shapefile => Table Manger works[[BR]]
2.) Try a postgis Table with geometry column as last column => Table
manager works[[BR]]
3.) try a postgis table with geometry column not as last column => you get
an python error[[BR]]
{{{
Traceback (most recent call last):
File
"/home/bjsvwpfe/.qgis//python/plugins/tablemanager/tableManager_plugin.py",
line 63, in run
dialoga = tableManager_gui.TableManager(self.iface)
File
"/home/bjsvwpfe/.qgis//python/plugins/tablemanager/tableManager_gui.py",
line 173, in __init__
self.drawFieldsTable()
File
"/home/bjsvwpfe/.qgis//python/plugins/tablemanager/tableManager_gui.py",
line 183, in drawFieldsTable
item = QTableWidgetItem(fields[i].name())
KeyError: 82
}}}
thx
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2445>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list