TransWikia.com

Retaining polygon feature attributes in points randomly generated within using QGIS

Geographic Information Systems Asked by mbela on October 3, 2021

How do I retain polygon feature attributes in random points generated within these polygons using QGIS?

Like Generating random points inside polygons that capture values from multiple attribute fields, I found that QGIS 3.14 "Random Points inside Polygons" tool does not retain any attributes from the polygon features.

One Answer

For built-in solution, you need to wait for QGIS 3.16 because of this PR https://github.com/qgis/QGIS/pull/35745 (C++ implementation)

I've already made an addition to existing Python processing script as mentioned in QGIS Random Points in Polygon PRESERVING Attribute Table? for this intent (PS: stop using it when QGIS 3.16 will land). Only useful to avoid waiting.

Answered by ThomasG77 on October 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP