Class RandomPointsBuilder

Hierarchy: Object , GeometricShapeBuilder, RandomPointsBuilder
public class RandomPointsBuilder
extends GeometricShapeBuilder
Creates random point sets contained in a region defined by either a rectangular or a polygonal extent.
Authors:
mbdavis
public RandomPointsBuilder()
Create a shape factory which will create shapes using the default GeometryFactory.
public RandomPointsBuilder(GeometryFactory geomFact)
Create a shape factory which will create shapes using the given GeometryFactory.
Parameters:
geomFact - geomFact the factory to use
public void setExtent(Geometry mask)
Sets a polygonal mask.
Parameters:
mask - mask
Throws:
IllegalArgumentException - IllegalArgumentException if the mask is not polygonal
public Geometry getGeometry()
protected boolean isInExtent(Coordinate p)
protected Coordinate createCoord(double x, double y)
protected Coordinate createRandomCoord(Envelope env)