I have a map I update on a monthly basis, following these steps:

  1. Import new CSV with lat/long and other values as point layer
  2. Generate Voronoi polygons for the point layer
  3. Clip the Voronoi polygons to the base layer
  4. Dissolve the clipped polygon layer based on values in Column C
  5. Save the resulting polygon layer for use as a base map in other projects

Since the steps are the same every time, I am sure there is some way to automate this, but I am weak on writing a script to run QGIS from the command line. I primarily use Mac, but I also have access to a PC for this project. Currently running QGIS 2.18.2

My question is similar to the unanswered Automate the CSV importing process so that map is updated dynamically in QGIS?, so I hope I have provided more specific details than the author of that question to get a clear answer.

closed as off-topic by PolyGeo Sep 3 '17 at 1:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Have you tried doing a web search for each of your steps 1,2,3..etc, like "pyqgis Voronoi polygon", or "pyqgis clip polygon layer"? Most likely this can all be automated using pyqgis. This forum does not typically provide end-to-end code solutions. You will have to attempt some of this on your own, post the code that you wrote and tell us where you are stuck. You should be able to get help then. – artwork21 Feb 3 '17 at 18:25
  • Have you tried creating a Processing model to automate your workflow? Processing is covered in the user manual. – underdark Feb 3 '17 at 18:34
  • @underdark Thanks for the advice. I will try to implement the solution and post the answer if it's successful. – arabiccode Feb 3 '17 at 18:39