JTS Core 1.17.1
Packages
Classes
Search
About
Top
RandomPointsBuilder()
RandomPointsBuilder(GeometryFactory)
setExtent(Geometry): void
getGeometry(): Geometry
isInExtent(Coordinate): boolean
createCoord(double, double): Coordinate
createRandomCoord(Envelope): Coordinate
Bottom
Source
Classic
org.locationtech.jts.shape.random
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)