Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11987: Cannot find any way remove from an rtree if using a geographic type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-10 04:52:00
#11987: Cannot find any way remove from an rtree if using a geographic type
---------------------------------+--------------------------------------
Reporter: vin <vindoctor2@â¦> | Owner: awulkiew
Type: Bugs | Status: closed
Milestone: Boost 1.61.0 | Component: geometry
Version: Boost 1.60.0 | Severity: Showstopper
Resolution: fixed | Keywords: rtree geographic remove
---------------------------------+--------------------------------------
Changes (by awulkiew):
* status: new => closed
* resolution: => fixed
* milestone: To Be Determined => Boost 1.61.0
Comment:
It's because some required operations was not implemented for this CS. In
this case (`remove()`) `covered_by()` was not implemented. It should be
fixed in 1.61 at least for Points and Boxes, see:
https://github.com/boostorg/geometry/pull/345
This bug should also be fixed in develop and master branches so you could
pick the library from the repository if you need it now.
Furthermore, some other algorithms might not work correctly for some cases
in 1.60, e.g. when an rtree spanned across more than a half of a globe
(bounds width >= 180deg) or when stored boxes could cross antimeridian
(e.g. longitude min-max = 170-190). So spatial predicates might not work
correctly in such cases.
So yes, it basically means that in 1.60 you could e.g. calculate boxes
with `bg::envelope()` in geographic but then convert boxes to cartesian
and store them in the rtree. And if you know that boxes could cross
antimeridian perform some of the queries near the antimeridian 2 times,
one for negative coordinates near -180 and the second one for
corresponding coordinates greater than 180.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11987#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC