shapeBuilder.setConstrainedToCircle(true);
return shapeBuilder.getGeometry();
}
public static Geometry randomPointsInGridWithGutter(Geometry g, int nPts, double gutterFraction) {
RandomPointsInGridBuilder shapeBuilder = new RandomPointsInGridBuilder(FunctionsUtil.getFactoryOrDefault(g));
shapeBuilder.setExtent(FunctionsUtil.getEnvelopeOrDefault(g));
shapeBuilder.setNumPoints(nPts);
shapeBuilder.setGutterFraction(gutterFraction);
return shapeBuilder.getGeometry();
}