Search Results for

    Show / Hide Table of Contents

    Class RandomPointsBuilder

    Creates random point sets contained in a region defined by either a rectangular or a polygonal extent.

    Inheritance
    object
    GeometricShapeBuilder
    RandomPointsBuilder
    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 RandomPointsBuilder : GeometricShapeBuilder

    Constructors

    | Edit this page View Source

    RandomPointsBuilder()

    Create a shape factory which will create shapes using the default GeometryFactory.

    Declaration
    public RandomPointsBuilder()
    | Edit this page View Source

    RandomPointsBuilder(GeometryFactory)

    Create a shape factory which will create shapes using the given GeometryFactory

    Declaration
    public RandomPointsBuilder(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

    Methods

    | Edit this page View Source

    CreateRandomCoord(Envelope)

    Declaration
    protected Coordinate CreateRandomCoord(Envelope env)
    Parameters
    Type Name Description
    Envelope env
    Returns
    Type Description
    Coordinate
    | Edit this page View Source

    GetGeometry()

    Declaration
    public override Geometry GetGeometry()
    Returns
    Type Description
    Geometry
    Overrides
    GeometricShapeBuilder.GetGeometry()
    | Edit this page View Source

    IsInExtent(Coordinate)

    Declaration
    protected bool IsInExtent(Coordinate p)
    Parameters
    Type Name Description
    Coordinate p
    Returns
    Type Description
    bool
    | Edit this page View Source

    SetExtent(Geometry)

    Sets a polygonal mask.

    Declaration
    public void SetExtent(Geometry mask)
    Parameters
    Type Name Description
    Geometry mask
    Exceptions
    Type Condition
    ArgumentException

    if the mask is not polygonal

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX