Monday - Friday: 9:00 AM - 5:00 PM

Saturday & Sunday: Closed

Company Logo
GIS INNOVATION SDN BHD

Random Points on Lines...

Random Points on Lines... Logo
  1. Random Points on Lines... is a free open-source plugin for QGIS used 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 temporary layer with additional attributes, including coordinates in both the layer's CRS (XCoord, YCoord) and the project's CRS (CRSXCoord, CRSYCoord), as well as a distance field (Distance) indicating the distance from the start of the line to the point location. 



    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... has been developed using QGIS 3.34.



  1. Source Code

  1. The source code of the module in Github can be obtained.



  1. Data Formats

  1. Any line layers can be from any geospatial data source supported by QGIS.



  1. Objectives

     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.


  1. Tutorial


  1. Random Points on Lines... can be found in Vector menu and in the Research Tools submenu after the installation.



Random Points on Lines Path
  1. 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.



Random Points on Lines
  1. As you can see from the interface, there are three sections which are Layer Selection, Offset Settings, and Point Generation Settings.


    In the Layer Selection, users can choose the line layers from which random points will be generated. The dropdown menu exclusively displays line layers.



    If you want to generate random points using only the line layer currently selected in the map canvas, you may enable the Use Only Selected Features checkbox.


Layer Selection
  1. The Offset Settings section allows users to specify the start and end points for generating random points along the lines. These values can be adjusted using the sliders or by entering the desired percentage directly.


    If users want to mirror the start and end offsets, simply check the Mirror checkbox.

     

  2. If needed, users can restore the offset settings to their default values by clicking the Reset Offsets button.



Offset Settings
  1. The final section, Point Generation Settings, allows users to specify the desired values for the Random Seed and the Minimum Distance. For additional information, users can click the Help button located in the upper-right corner of the interface, which will open a popup dialog box.


    To close the dialog box, simply click the OK button.



Help
  1. Back to the Point Generation Settings section, users can enable the Use Field for Dynamic Point Generation option to generate points based on attribute values from a specified column field.


    When this checkbox is selected, the Number of Points field will be grayed out and cannot be modified.


    By default, you can manually enter a value in the Number of Points field to specify the number of random points to generate.



Point Generation Settings
  1. Once all configurations have been made, click the Generate Points button to generate the random points for the selected line layers.



Generate Points Button
  1. Contacts

  1. 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.



  1. Related Links

  1. For more information, you can go to:



    Main website: GIS Innovation Sdn. Bhd.


    Webinar: GIS Webinars Malaysia


    Training: GIS Training Malaysia



Back