Problem
In QGIS, one sometimes needs some layers with dummy data just to test something: the functionality of an expression, the syntax of an SQL query in a virtual layer, creting quickly an animation etc. For this, one first has to creat one or more new layer(s) what is a bit cumbersome: Menu Layer > Create Layer > Choose layer type
> define saving path
> set Geometry type
> choose CRS
etc. When created, the layer is still empty and you have to start adding geometries, then, depending on use case, create some attributes and fill in random values....
So it takes a whole while to create a simple line or polygon layer with a few features, including geometries and/or attributes. For point layers, there is an easier option as you can use Menu Vector > Research Tools > Random Points in Extent... But still, you have to define the extent, number of points etc. and create attributes.
Question
Is there an easy solution to create point, line and polygon layers at once without making all these settings manually? Something as easy as creating random points. Ideally, I would just like to run a single command to get a layer of each type so that I can use all the geometries I need. Layers should be, of course, geometrically and topologically correct.
Options
Optionally, it would be great if there could be created single part as well as multipart geometries. Even better would be to not only have the geometries, but also some (random) attributes of different types (integer,decimal, text, ...).
contributors