21#include <geos/export.h>
23#include <geos/algorithm/locate/PointOnGeometryLocator.h>
24#include <geos/geom/Envelope.h>
25#include <geos/geom/Geometry.h>
26#include <geos/shape/GeometricShapeBuilder.h>
31namespace geos::shape::random {
45 using GeometricShapeBuilder::setExtent;
49 std::unique_ptr<geom::Geometry> getGeometry()
override;
53 bool isInExtent(
const geom::CoordinateXY& p)
const;
57 std::unique_ptr<geom::Geometry> maskPoly;
59 std::unique_ptr<algorithm::locate::PointOnGeometryLocator> extentLocator;
60 std::random_device rd;
62 std::uniform_real_distribution<double> dist{0, 1};
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition GeometryFactory.h:71
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
Definition RandomPointsBuilder.h:40