Random Points on Lines...
-
Random Points on Lines... is a free open-source plugin for QGIS where to generate random points on line layers, enhancing spatial data analysis by quickly simulating random data points.
Random Points on Lines... designed for efficiency and ease of use.
Random Points on Lines... is a user-friendly dialog interface to select the line layer and specify the number of random points.
The resulting random points are added as a new memory layer with additional attributes, including coordinates in both the layer's CRS (XCoord_, YCoord_) and the project's CRS (XCoordProjCRS, YCoordProjCRS), as well as a distance field (Distance) indicating the distance from the start of the line to the point location.
The points are customized with a size of 2.3 and a red color for better visualization.
The extension is available from the official repository, QGIS plugins page.
Use the QGIS Plugins menu to install the Random Points on Lines..., QGIS manual.
A zip file of the current release is also available here for manual installation.
Random Points on Lines... is under development and test with QGIS 3.34.
-
Source Code
The source code of the module in Github can be obtained.
-
Data Formats
Any layers can be from any geospatial data source supported by QGIS.
-
Objective
1. Allows users to generate a specified number of random points along selected line layers.
2. Allows users to choose specific line layers from the active QGIS project to apply random point generation.
3. Allows users to set the exact number of random points to generate for better control and flexibility.
Tutorial
Random Points on Lines... can be found in Vector menu and in the Research Tools submenu after the installation.
-
This is the main interface of the Random Points on Lines.... When you click the Random Points on Lines..., a popup dialog box will appear on the panel in the QGIS interface.
As you can see in the Parameters, there are options to Select Line Layer, where you can choose the line layers from which you want to generate random points.
Select a layer that you want to generate random points in Select Line Layer dropdown.
Then, you can enter how many random points you want to generate for the selected line layers.
Once you have configured everything, click OK to successfully generate random points for the selected line layers.
Contacts
-
If you find a bug or have suggestions for improving the plugin, use the issues tracker. In addition, questions about using the plugin can be asked directly from our website.
Related Links
For more information, you can go to:
Main website: GIS Innovation Sdn. Bhd.
Webinar: GIS Webinars Malaysia
Training: GIS Training Malaysia