I have added delimited text layer from a csv with "watch file" option checked in and I want to update the mapcanvas every five second the program always crashes. I have attached the sample python script.

import time

while True:


  • 2
    if on QGIS 2.18.8 there is bug with csv files gis.stackexchange.com/questions/241575/… – Mapperz Nov 16 '17 at 3:59
  • Please use the code format {} when posting your question. Make sure the indentation is correct after pasting your code. – ahmadhanb Nov 16 '17 at 4:06
  • how to use code format... im new to gis stack exchange – Nemi Bhattarai Nov 16 '17 at 4:27
  • After pasting your code into your question, select the code and use {} in the menu bar to format the code. – ahmadhanb Nov 16 '17 at 4:29

Your Answer

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

Browse other questions tagged or ask your own question.