Search Results for

    Show / Hide Table of Contents

    Class RandomPointsInGridBuilder

    Creates random point sets where the points are constrained to lie in the cells of a grid.

    Inheritance
    object
    GeometricShapeBuilder
    RandomPointsInGridBuilder
    Inherited Members
    GeometricShapeBuilder.GeomFactory
    GeometricShapeBuilder.Extent
    GeometricShapeBuilder.Centre
    GeometricShapeBuilder.Diameter
    GeometricShapeBuilder.Radius
    GeometricShapeBuilder.GetSquareBaseLine()
    GeometricShapeBuilder.GetSquareExtent()
    GeometricShapeBuilder.NumPoints
    GeometricShapeBuilder.CreateCoord(double, double)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Shape.Random
    Assembly: NetTopologySuite.dll
    Syntax
    public class RandomPointsInGridBuilder : GeometricShapeBuilder

    Constructors

    | Edit this page View Source

    RandomPointsInGridBuilder()

    Create a builder which will create shapes using the default GeometryFactory.

    Declaration
    public RandomPointsInGridBuilder()
    | Edit this page View Source

    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

    | Edit this page View Source

    Rnd

    Declaration
    protected static readonly Random Rnd
    Field Value
    Type Description
    Random

    Properties

    | Edit this page View Source

    ConstrainedToCircle

    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
    bool
    | Edit this page View Source

    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

    | Edit this page View Source

    GetGeometry()

    Gets the MultiPoint containing the generated point

    Declaration
    public override Geometry GetGeometry()
    Returns
    Type Description
    Geometry

    A MultiPoint

    Overrides
    GeometricShapeBuilder.GetGeometry()
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX