I have two layers: 1. One with polygons geometry 2. CSV table with more than 600k rows
They have an atribute ID in common, so, I want to distribute randomly each row, inside the polygon as a point. I'm using QGIS 3.4
I have two layers: 1. One with polygons geometry 2. CSV table with more than 600k rows
They have an atribute ID in common, so, I want to distribute randomly each row, inside the polygon as a point. I'm using QGIS 3.4
QGIS has a tool for creating random points within a polygon. You can use it to populate the number of random points you want. Then join the points layer with the CSV table on the point's id attribute with the table's row index.
Vector > Research Tools > Random Points Inside Polygons https://docs.qgis.org/3.4/en/docs/user_manual/processing_algs/qgis/vectorcreation.html#qgisrandompointsinsidepolygons
If the CSV table doesn't have a field that can be joined, try to calculate the row index. Save the CSV as a GeoPackage to make the attributes editable (reason). Then use the Field Calculator to compute the index with the expression "@row_number".