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 use Qgis to illustrate the results from my Matlab simulation. Matlab produces a csv-file which is connected to a shapefile within Qgis.

At the moment I have to close and reopen Qgis to show the new results from the Matlab simulation.

Is it possible to reload the attribute-table of the csv-file without closing and reopen Qgis?

share|improve this question

1 Answer 1

I can suggest an alternative workflow that, while not necessarily easier than closing and opening QGIS each time, might make more sense:

  • Import your shapefile into spatialite
  • Import the CSV into spatialite (using the "Virtual TXT/CSV option)
  • Create a spatial view in spatialite by JOINing the spatial table (shapefile) to the virtual CSV table

Now, You can display the view in QGIS just like any spatial layer, and use the JOINed values from spatialite. But, each time the CSV is recreated, you will need to DROP the virtual CSV table, and re-link to it. Then a refresh in QGIS will show the new values. THis only takes a moment, and what's more, you can define many views, and keep the previous ones around if needed...

HTH

share|improve this answer

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.