Commit 08a24d9 1 parent bdceea6 commit 08a24d9 Copy full SHA for 08a24d9
File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 27
27
#include < geos/algorithm/construct/LargestEmptyCircle.h>
28
28
#include < geos/algorithm/construct/MaximumInscribedCircle.h>
29
29
#include < geos/algorithm/BoundaryNodeRule.h>
30
+ #include < geos/algorithm/MinimumAreaRectangle.h>
30
31
#include < geos/algorithm/MinimumDiameter.h>
31
32
#include < geos/algorithm/MinimumBoundingCircle.h>
32
33
#include < geos/algorithm/distance/DiscreteHausdorffDistance.h>
@@ -404,6 +405,14 @@ std::vector<GeometryOpCreator> opRegistry {
404
405
return new Result ( std::move (res) );
405
406
});
406
407
}},
408
+ {" minAreaRectangle" , [](std::string name) { return GeometryOp::create (name,
409
+ catConst,
410
+ " compute minimum-area rectangle enclosing geometry" ,
411
+ [](const std::unique_ptr<Geometry>& geom) {
412
+ std::unique_ptr<Geometry> res = geos::algorithm::MinimumAreaRectangle::getMinimumRectangle (geom.get ());
413
+ return new Result ( std::move (res) );
414
+ });
415
+ }},
407
416
{" minBoundingCircle" , [](std::string name) { return GeometryOp::create (name,
408
417
catConst,
409
418
" compute minimum bounding circle of geometry" ,
You can’t perform that action at this time.
0 commit comments