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
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
|
Geometry |
getGeometry()
|
protected boolean |
isInExtent(Coordinate
|
void |
setExtent(Geometry
Sets a polygonal mask.
|
getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPointsprotected GeometrymaskPoly
public RandomPointsBuilder()
GeometryFactory.
public RandomPointsBuilder(GeometryFactorygeomFact)
GeometryFactory.
geomFact - the factory to use
public void setExtent(Geometrymask)
mask -
IllegalArgumentException - if the mask is not polygonal
public GeometrygetGeometry()
protected boolean isInExtent(Coordinatep)
protected CoordinatecreateCoord(double x, double y)
protected CoordinatecreateRandomCoord(Envelope env)