Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm working on a project where I digitized a few maps (georeferenced) and I also added a couple of csv files. I deleted the raster and cvs layers after I included them into the project as shapefiles but when I re-load the project to continue working on it these phantom layers still appear in the layer panel until the project is actually loaded and ready to work.
It doesn't make any problem other than these layers being listed as options to choose, for instance doing interpolation or other spatial options. The problem occurs when I delete the original csv file from the original location, even though it is not visible in the layer panel. If I do that, QGIS closes with error immediately after opening. I cannot move the csv or raster files from the folder they were originally saved because I cannot load the project.

Same thing was discussed in qgis.org but the discussion was closed apparently because it was solved, which is not my case. Any clues?

Windows Vista - QGIS Lisboa 1.8.0

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I had a very similar question here: Is there a purge function to remove layers from a qgs file which are not present in the Layers pane?

it worked for me and removes the empty layers.

Hope it helps.

share|improve this answer
    
Thank you!! The script worked perfectly!! –  Gus Velasco Sep 2 '13 at 15:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.