public class RandomPointsBuilder extends GeometricShapeBuilder
Modifier and Type | Field and Description |
---|---|
protected Geometry |
maskPoly |
extent, geomFactory, numPts
Constructor and Description |
---|
RandomPointsBuilder()
Create a shape factory which will create shapes using the default
GeometryFactory . |
RandomPointsBuilder(GeometryFactory geomFact)
Create a shape factory which will create shapes using the given
GeometryFactory . |
Modifier and Type | Method and Description |
---|---|
protected Coordinate |
createCoord(double x,
double y) |
protected Coordinate |
createRandomCoord(Envelope env) |
Geometry |
getGeometry() |
protected boolean |
isInExtent(Coordinate p) |
void |
setExtent(Geometry mask)
Sets a polygonal mask.
|
getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPoints
protected Geometry maskPoly
public RandomPointsBuilder()
GeometryFactory
.public RandomPointsBuilder(GeometryFactory geomFact)
GeometryFactory
.geomFact
- the factory to usepublic void setExtent(Geometry mask)
mask
- IllegalArgumentException
- if the mask is not polygonalpublic Geometry getGeometry()
getGeometry
in class GeometricShapeBuilder
protected boolean isInExtent(Coordinate p)
protected Coordinate createCoord(double x, double y)
createCoord
in class GeometricShapeBuilder
protected Coordinate createRandomCoord(Envelope env)
Copyright © 2016. All rights reserved.