geometry
geometry copied to clipboard
Boost.Geometry - Generic Geometry Library | Requires C++14 since Boost 1.75
The program ```cpp #include int main() { using Point = boost::geometry::model::d2::point_xy; using Polygon = boost::geometry::model::polygon; using Linestring = boost::geometry::model::linestring; using MultiPolygon = boost::geometry::model::multi_polygon; using MultiLinestring = boost::geometry::model::multi_linestring; Linestring l1; boost::geometry::read_wkt("LINESTRING(5...
This is a new similarity distance, comparable to Hausdorff or Frechet. It calculates the area between two lines and divides them by the line length. This is an average distance,...
This code simply takes the union of two simple polygons. But with these specific polygons the result is a "double wound" polygon, i.e. the path goes around the rim twice....
As you can see in [the latest CI result](https://github.com/boostorg/geometry/actions/runs/7101383204/job/19329377831), `warning: Did not find command for MSVC toolset. If you have Visual Studio 2017 installed you will need to specify the...
Hello, The Boost Geometry's distance calculations by Andoyer and Thomas formulas seem to induce large errors in the short-range case, as shown in Figure 1. The maximum absolute distance error...
The code for reproduction is ```cpp #include #include #include namespace bg = boost::geometry; using point = bg::model::point; using polygon = bg::model::polygon; using multipoly = bg::model::multi_polygon; int main() { auto p1...
For the sym_difference of MULTIPOLYGON(((2 4,2 2,0 2,0 4,2 4)),((6 4,4 4,2 4,2 6,0 6,0 10,6 10,6 4))) and MULTIPOLYGON(((4 4,4 2,2 2,2 4,4 4)),((4 8,4 6,2 6,2 8,4 8))),...
We've noticed overlaps is returning the incorrect answer when one of our spherical polygons has an edge that lies on one of the poles. Minimum reproducing example:   ```c++...
Hi~, under version 1.83 (same as 1.81), I seem to have encountered an operation result error of boost::geometry::difference(r1, r2, res). The following is the corresponding polygon data: r1 = POLYGON((850000...
On version 1.82 without special defines. I have found a test case that gives unexpectedly wrong results. Here is the test case to prove the problem. The correct result is...