diff --git a/util/geosop/GeometryOp.cpp b/util/geosop/GeometryOp.cpp index 35b70b5a60..f5fa28b914 100644 --- a/util/geosop/GeometryOp.cpp +++ b/util/geosop/GeometryOp.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -404,6 +405,14 @@ std::vector opRegistry { return new Result( std::move(res) ); }); }}, +{"minAreaRectangle", [](std::string name) { return GeometryOp::create(name, + catConst, + "compute minimum-area rectangle enclosing geometry", + [](const std::unique_ptr& geom) { + std::unique_ptr res = geos::algorithm::MinimumAreaRectangle::getMinimumRectangle(geom.get()); + return new Result( std::move(res) ); + }); + }}, {"minBoundingCircle", [](std::string name) { return GeometryOp::create(name, catConst, "compute minimum bounding circle of geometry",