geometry
geometry copied to clipboard
Boost.Geometry - Generic Geometry Library | Requires C++14 since Boost 1.75
`is_valid` error: "Multi-polygon has intersecting interiors" Tested with VS2022 (msvc-14.3), Boost.Geometry develop (1.83-beta1). Cases: (A is red, B is green, A+B is blue) ---- ``` A = "POLYGON((12.65628808068942134923 55.62339513242289967820,12.65546895658150106101 55.62338459872802332029,12.65571957941568825845...
Commented with: ``` // TODO: this looks wrong, it should only return convex if all its rings are convex ```
``` typedef boost::geometry::model::d2::point_xy Point; typedef boost::geometry::model::polygon Polygon; Polygon p; Point p1(21.0005, 3.00053); Point p2(21.0005, 1.99947); Point p3(19.9995, 1.99947); Point p4(19.9995, 3.00053); Point p5(21.0005, 3.00053); boost::geometry::append(p.outer(), p1); boost::geometry::append(p.outer(), p2); boost::geometry::append(p.outer(), p3);...
If such multipolygon is subtracted the result is a polygon with touching holes enclosing interior. Such polygon is invalid: "Geometry has disconnected interior". The result should be two polygons, one...
The Hausdorff algorithm is not symmetrical and can give unexpected results. SEE COMMENTS BELOW - we should fix the documentation. Minimal case: ``` #include namespace bg = boost::geometry; template double...
With the example code of [boost::geometry::equals](https://live.boost.org/doc/libs/1_82_0/libs/geometry/doc/html/geometry/reference/algorithms/equals/equals_2.html), if we change the point type to tuple, MSVC 2022 17.1 complains warning C4244 under /W4: ``` boost\geometry\algorithms\detail\equals\collect_vectors.hpp(354,61): warning C4244: 'argument': conversion from '__int64'...
Hello, I have a linestring and I am running the buffer function with an asymmetric distance. I want to buffer only on the right side of the linestring LINESTRING(0 0,-3...
On Windows, Visual Studio 2022 17.4.5. I'm just getting setup to do some boost geometry dev and following the contribution tutorial. There seem to be a number of failures when...
Hi, Please have a look at [the issue on godbolt](https://godbolt.org/z/v94vceE1K). As you can see, points are disappearing when they should not. My issue is that I suspect rounding to remove...
as detected in new unit test `custom_ring.cpp`