shapeBuilder.setGutterFraction(gutterFraction);
return shapeBuilder.getGeometry();
}
public static Geometry randomPoints(Geometry g, int nPts) {
RandomPointsBuilder shapeBuilder = new RandomPointsBuilder(FunctionsUtil.getFactoryOrDefault(g));
shapeBuilder.setExtent(FunctionsUtil.getEnvelopeOrDefault(g));
shapeBuilder.setNumPoints(nPts);
return shapeBuilder.getGeometry();
}