there is no way to fix: once you've initially created
any column, SQLite doesn't allows to change *NOTHING*:
http://www.sqlite.org/lang_altertable.html
the unique operation supported by SQLite simpy is:
ALTER TABLE ... ADD COLUMN ...
please note: for SQLite data-types are absolutely
meaningless :D
the following snipper explains better what I mean:
CREATE TABLE abc (
a potato NOT NULL,
b tomato NOT NULL,
c green_salad NOT NULL);
INSERT INTO abc (a, b, c)
VALUES (1, 'a', 1.1);
INSERT INTO abc (a, b, c)
VALUES (2, 'b', 2.2);
SELECT a, b, c FROM abc;
SELECT TypeOf(a), TypeOf(b),
TypeOf(c) FROM abc;
PRAGMA table_info(abc);
so don't bother about this; all this is
absolutely *not* relevant for SQLite
bye Sandro
Traceback (most recent call last):
File "/Users/vlad/.qgis/python/plugins/QspatiaLite/qspatialite.py", line 56, in run
dlg = QspatiaLiteDialog(self.load_to_canvas,self.get_layer_names,self.save_layer, self.iface.mainWindow())
File "/Users/vlad/.qgis/python/plugins/QspatiaLite/qspatialitedialog.py", line 62, in __init__
self.prepare_tree()
File "/Users/vlad/.qgis/python/plugins/QspatiaLite/qspatialitedialog.py", line 214, in prepare_tree
tableList = self.get_tables() # for each table: tablename, reltype, geom_col, geom_type, geom_dim, geom_srid
File "/Users/vlad/.qgis/python/plugins/QspatiaLite/qspatialitedialog.py", line 365, in get_tables
self.connection = self.connect_db(connectionSettings)
File "/Users/vlad/.qgis/python/plugins/QspatiaLite/qspatialitedialog.py", line 421, in connect_db
connectionObj = self.connect_to_spatialite(connectionSettings)
File "/Users/vlad/.qgis/python/plugins/QspatiaLite/qspatialitedialog.py", line 432, in connect_to_spatialite
return sqlite.connect(connectionSettings["sqlitepath"])
KeyError: 'sqlitepath'
Python version:
2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)]
> --
> You received this message because you are subscribed to the Google Groups "SpatiaLite Users" group.
> To post to this group, send email to spatiali...@googlegroups.com.
> To unsubscribe from this group, send email to spatialite-use...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spatialite-users?hl=en.
>
Vlad.
I just installed the latest version of the Qspatialite plugin (0.8) and this is the warning message QGIS returns:
The plugin seems to have been installed but I don't know where. Probably the plugin package contained a wrong named directory.
Please search the list of installed plugins. I'm nearly sure you'll find the plugin there, but I just can't determine which of them it is. It also means that I won't be able to determine if this plugin is installed and inform you about available updates. However the plugin may work. Please contact the plugin author and submit this issue.
I'm on Ubuntu 10.04 64bit. If I look in my .qgis/python/plugins directory, the Qspatialite directory is there. I think this is a letter case issue. The QGIS manager indicates that the plugin's name is QSpatiaLite, while its directory is Qspatialite, and when the installer can't find a QSpatiaLite directory, it issues the warning.
Dan
--- On Sun, 3/27/11, romain <romain.ri...@gmail.com> wrote: