[Boost-bugs] [Boost C++ Libraries] #9758: boost::geometry::index::rtree does not compile with CoordinateSystem geographic<

Subject: [Boost-bugs] [Boost C++ Libraries] #9758: boost::geometry::index::rtree does not compile with CoordinateSystem geographic<
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-08 20:30:42


#9758: boost::geometry::index::rtree does not compile with CoordinateSystem
geographic<
------------------------------+---------------------------
 Reporter: ola.lykkja@… | Owner: barendgehrels
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: geometry
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------
 boost::geometry::index::rtree does not compile with CoordinateSystem
 geographic<

 CoordinateSystem cartesian is ok

 Example program:
 {{{
 typedef bg::model::point<double, 2, bg::cs::cartesian> geo_point_ok;
 typedef bg::model::point<double, 2, bg::cs::geographic<bg::degree> >
 geo_point;
 typedef std::pair<geo_point, unsigned int> geo_vg_value;

 void test() {
       double lon=10.0, lat=60.0;
       geo_point pt(on, lat);
       rtree.insert(std::make_pair(pt, wp->id));

       std::vector<geo_vg_value> result;
       geo_point here(targetLat, targetLat);
       rtree.query(bgi::nearest(here, 20), std::back_inserter(result));
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9758>
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:15 UTC