qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.59k stars 3.01k forks source link

DB manager does not remove Spatialite indexes and entry in "spatialite_hystory" after deleting a table #16210

Open qgib opened 11 years ago

qgib commented 11 years ago

Author Name: Giovanni Manghi (@gioman) Original Redmine Issue: 7146 Affected QGIS version: 3.0.0 Redmine category:db_manager


The same issue seems to affect also the browser.

Add a ector to a SL datasource, and select to create also a spatial index.

Then remove the vector from the datasource, the tables idx_tablename_geom* are not removed, as it isn't the entry in the table "spatialite_hystory", so it not possible to re-add another vector with the same name.

qgib commented 11 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 10 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 10 years ago

Author Name: Jürgen Fischer (@jef-n)


qgib commented 8 years ago

Author Name: Giuseppe Sucameli (@brushtyler)


The issue affects the importer feature (dataprovider).


qgib commented 8 years ago

Author Name: Giuseppe Sucameli (@brushtyler)


Similar issues are in both DBManager and SL dataprovider (importer), but the reported one occurs removing a vector table in DBManager. I'll file a new ticket for the importer (if not already there).


qgib commented 7 years ago

Author Name: Reinhard Reiterer (Reinhard Reiterer)


Here on Win7 creating a new table with a previously used table name works, but the features are not displayed properly on the canvas. In QspatiaLite it's possible to delete unused indices as a workaorund.

See also: http://gis.stackexchange.com/questions/38955/why-is-this-spatialite-polygon-layer-not-displayed-properly

qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 6 years ago

Author Name: Giovanni Manghi (@gioman)


Add a ector to a SL datasource, and select to create also a spatial index.

Then remove the vector from the datasource, the tables idx_tablename_geom* are not removed, as it isn't the entry in the table "spatialite_hystory", so it not possible to re-add another vector with the same name. to The same issue seems to affect also the browser.

Add a ector to a SL datasource, and select to create also a spatial index.

Then remove the vector from the datasource, the tables idx_tablename_geom* are not removed, as it isn't the entry in the table "spatialite_hystory", so it not possible to re-add another vector with the same name.

Pedro-Murteira commented 2 years ago

Still valid on QGIS 3.22.3.