Subject: [Boost-bugs] [Boost C++ Libraries] #12412: boost::geometry::covered_by fails for point in box (with geographic cs).
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-26 09:03:00
#12412: boost::geometry::covered_by fails for point in box (with geographic cs).
------------------------------+---------------------------
Reporter: andydev2k2k@⦠| Owner: barendgehrels
Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
Version: Boost 1.61.0 | Severity: Showstopper
Keywords: |
------------------------------+---------------------------
example app:
{{{
#include <boost\config\compiler\visualc.hpp>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
namespace bgi = boost::geometry::index;
namespace bg = boost::geometry;
typedef bg::model::point<double, 2, bg::cs::geographic<bg::degree> >
Geo2DPoint;
typedef boost::geometry::model::box< Geo2DPoint > GeoBox;
int main()
{
Geo2DPoint p;
GeoBox b;
b.min_corner().set<0>( -2.08882 );
b.min_corner().set<1>( 51.5034 );
b.max_corner().set<0>( -0.127592 );
b.max_corner().set<1>( 51.9074 );
p.set<0>( -0.127592 );
p.set<1>( 51.7 );
bool is_covered = boost::geometry::covered_by( p, b );
return 0;
}
}}}
is_covered is false.
I would expect is_covered to be true.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12412> 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:20 UTC