17 double areaInLongLat = p.area();
18 auto boundary = p.getBoundary();
19 for(
const auto & anySegment : boundary.getSegments()){
21 double approxArea = areaInLongLat * squaredFactor;
22 return approxArea >= requiredArea;
Filter that approximates the area in m² and checks if it is equal or greater than the required area.
Definition ApproxAreaFilter.hpp:10
bool operator()(const fishnet::geometry::IPolygon auto &p) const noexcept
Definition ApproxAreaFilter.hpp:16
ApproxAreaFilter(double requiredArea)
Definition ApproxAreaFilter.hpp:14
static double distance(double lambdaA, double phiA, double lambdaB, double phiB, bool exact=true)
Definition WGS84Ellipsoid.hpp:71
Interface for a polygon A polygon is a two-dimensional shape defined by a boundary and zero or more h...
Definition IPolygon.hpp:98