I am new to python and QGIS. I have looked at a few tutorials of python scripts for QGIS. All of them create new vector and raster layers with some existing data source. eg. shapefile or geotiff or postgis database table.
Is it possible to create a QGIS layer through a python script, where i can create/add/modify new features through the python script, as the need arises.
It will be typically a vector layer with point data and custom symbols.
Will this be possible?
Is there a example i can look at?
Best Answer
This does not work any longer in qgis3. See a slightly modified answer below.
Have a look at the Memory provider as described in PyQGIS Cookbook.