1

I work with a vectorial layer (shp) created from a a csv file which periodically changes its content.

The issue I'm raising is the following: every time I perform changes in the CSV file, I have to recreate the shp layer from the csv, with the subsequent need to do the categorization again and change the symbols and their size.

Needless to say, I have the 'watch' option ticked when I load the CSV file. Therefore, I can see the changes in the csv layer when I press the refresh button. But the changes do not affect the shp layer. As you could imagine, this is a real waste of time and a real nuisance and I would like to automatise the process.

I have checked this question out and the answers suggest switching off the cache, but I honestly don't know where that option is.

  • If you edit the csv and move or refresh the canvas, can you still not see the changes? – Joseph Jun 27 '18 at 10:20
  • Not a real answer to your question, but two remarks on its contents: 1) you can save a csv to a shp-File (same name as before) and just append data to the shp-File 2) you can easily copy and paste legends (right click on layer) – Rudi Uhl Jun 27 '18 at 10:44
  • @Joseph If I edit the csv and refresh I can see the changes into the csv layer, but not into the shp layer created from that csv. – Jvr Jun 27 '18 at 10:52
  • @RudiUhl I save the csv to a shp file indeed (right button, save as ESRI shape file), but I don't know how to append the data like you say. With regard to the legends, I think it is not really useful if I have to copy and paste them every time I make a change into the csv file (roughly each 30 minutes). – Jvr Jun 27 '18 at 10:55
  • @Jvr - Is your shapefile saved in a project? Could you just load the project each time you make changes to the csv? This should update the shapefile. – Joseph Jun 27 '18 at 11:05
0

I'm not sure this is the answer to your question, but anyhow. I often regularly change a shapefile externally, in my case when working on a C++ program and effectively using QGIS as the visual part of the debugger :) I removed and reloaded the layer often, now I simply start an editing session and close it. Done, i.e. I get the refreshed shape. This is going to save me so much time...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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