This node generates random points from a uniform distribution within (or along) each input geometry. For polygons, the points will be sampled within the area of the polygon. For lines, they will be sampled along the length of the LineString. For multi-part geometries, the weights of each part are selected according to their relevant attribute (area for Polygons, length for LineStrings), and then points are sampled from each part. Any other geometry type (e.g., Point, MultiPoint, GeometryCollection) is ignored, and an empty MultiPoint geometry is returned.
The numerical value column is used to determine the number of points to be generated for the geometry of the same row. Additionally, you need to provide an ID column that will be used to identify the original input row.
The node will create a new MultiPoint geometry that includes the random set of points for each input geometry, which can be exploded into individual points using the Multipart To Singlepart node.
The node is based on the GeoPandas project and uses the following related information and functions:
Select the geometry column to transform.
Select the column for the number of points to draw.
I selected you may enter a fixed seed here to get reproducible results upon re-execution. If you do not specify a seed, a new random seed is taken for each execution.
A seed to initialize the random number generator.
Group of settings that define the format of the result table.
Choose where to place the result column:
Available options:
The name of the new column that is appended if 'Append' is selected.
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension Geospatial Analytics Extension for KNIME from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com, follow @NodePit on Twitter or botsin.space/@nodepit on Mastodon.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.