R/qgis_randompointsinlayerbounds.R
qgis_randompointsinlayerbounds.RdQGIS Algorithm provided by QGIS Random points in layer bounds (qgis:randompointsinlayerbounds). This algorithm creates a new point layer with a given number of random points, all of them within the extent of a given layer. A distance factor can be specified, to avoid points being too close to each other. —————- Notes —————- - This algorithm drops existing primary keys or FID values and regenerates them in output layers.
qgis_randompointsinlayerbounds(
INPUT = qgisprocess:::qgis_default_value(),
POINTS_NUMBER = qgisprocess:::qgis_default_value(),
MIN_DISTANCE = qgisprocess:::qgis_default_value(),
OUTPUT = qgisprocess:::qgis_default_value(),
...,
.complete_output = .complete_output_option(),
.quiet = .quiet_option(),
.messages = .message_option()
)source - Input layer. Path to a vector layer.
number - Number of points. A numeric value. field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field. expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression.
distance - Minimum distance between points. A numeric value. field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field. expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression.
sink - Random points. Path for new vector layer.
further parameters passed to qgisprocess::qgis_run_algorithm()
logical specifying if complete out of qgisprocess::qgis_run_algorithm() should be used (TRUE) or first output (most likely the main) should read (FALSE). Default value is TRUE.
logical specifying if parameter .quiet for qgisprocess::qgis_run_algorithm() Default value is TRUE.
logical specifying if messages from qgisprocess::qgis_run_algorithm() should be printed (TRUE) or not (FALSE). Default value is FALSE.