Class RandomPointsInGridBuilder
Creates random point sets where the points are constrained to lie in the cells of a grid.
Inherited Members
Namespace: NetTopologySuite.Shape.Random
Assembly: NetTopologySuite.dll
Syntax
public class RandomPointsInGridBuilder : GeometricShapeBuilder
Constructors
| Improve this Doc View SourceRandomPointsInGridBuilder()
Create a builder which will create shapes using the default GeometryFactory.
Declaration
public RandomPointsInGridBuilder()
RandomPointsInGridBuilder(GeometryFactory)
Create a builder which will create shapes using the given GeometryFactory.
Declaration
public RandomPointsInGridBuilder(GeometryFactory geomFact)
Parameters
Type | Name | Description |
---|---|---|
GeometryFactory | geomFact | The factory to use |
Fields
| Improve this Doc View SourceRnd
Declaration
protected static readonly Random Rnd
Field Value
Type | Description |
---|---|
Random |
Properties
| Improve this Doc View SourceConstrainedToCircle
Gets or sets whether generated points are constrained to lie within a circle contained within each grid cell. This provides greater separation between points in adjacent cells.
The default is to not be constrained to a circle.
Declaration
public bool ConstrainedToCircle { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
GutterFraction
Gets or sets the fraction of the grid cell side which will be treated as a gutter, in which no points will be created.
The provided value is clamped to the range [0.0, 1.0].
Declaration
public double GutterFraction { get; set; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceGetGeometry()
Gets the MultiPoint containing the generated point
Declaration
public override Geometry GetGeometry()
Returns
Type | Description |
---|---|
Geometry | A MultiPoint |