Skip to main content
Generates a specified quantity of pseudo-random points within the boundaries of the provided polygonal geometry. When seed is either zero or not defined then output will be random. ST_GeneratePoints

Signatures

Parameters

geom
Geometry
required
The input geometry.
numPoints
Integer
required
The number of points.
seed
Long
default:"0"
The seed value.

Return type

The resulting geometry.

Example

Due to the pseudo-random nature of point generation, the output of this function will vary between executions and may not match any provided examples.