public class SeededRandomPointsInGridBuilder
extends org.locationtech.jts.shape.random.RandomPointsInGridBuilder
RandomPointsInGridBuilder
class that accepts a random seed for repeatable
outputs.Constructor and Description |
---|
SeededRandomPointsInGridBuilder(long seed)
Create a builder which will create shapes using the default
GeometryFactory . |
SeededRandomPointsInGridBuilder(long seed,
org.locationtech.jts.geom.GeometryFactory geomFact)
Create a builder which will create shapes using the given
GeometryFactory . |
Modifier and Type | Method and Description |
---|---|
org.locationtech.jts.geom.Geometry |
getGeometry() |
void |
setConstrainedToCircle(boolean isConstrainedToCircle)
Sets whether generated points are constrained to lie within a circle
contained within each grid cell.
|
void |
setGutterFraction(double gutterFraction)
Sets the fraction of the grid cell side which will be treated as a gutter, in
which no points will be created.
|
public SeededRandomPointsInGridBuilder(long seed)
GeometryFactory
.public SeededRandomPointsInGridBuilder(long seed, org.locationtech.jts.geom.GeometryFactory geomFact)
GeometryFactory
.geomFact
- the factory to usepublic void setConstrainedToCircle(boolean isConstrainedToCircle)
The default is to not be constrained to a circle.
setConstrainedToCircle
in class org.locationtech.jts.shape.random.RandomPointsInGridBuilder
isConstrainedToCircle
- public void setGutterFraction(double gutterFraction)
setGutterFraction
in class org.locationtech.jts.shape.random.RandomPointsInGridBuilder
gutterFraction
- public org.locationtech.jts.geom.Geometry getGeometry()
getGeometry
in class org.locationtech.jts.shape.random.RandomPointsInGridBuilder
Copyright © 2023. All rights reserved.