id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 12314,boost::geometry::within for a point in a geographic coordinate system fails,oleary.simon@…,Barend Gehrels," I am using the geometry part of the library for a GIS application. The idea is to find points within defined regions (a rectangle in this case). This works sometimes but not always. Here is an example where the point should be within the rectangle but isn't... {{{ #include #include #include #include #include #include class wxPoint { public : double getx() const { return m_x; } double gety() const { return m_y; } void setx( double in) { m_x = in; } void sety(double in) { m_y = in; } private: double m_x; double m_y; }; BOOST_GEOMETRY_REGISTER_POINT_2D_GET_SET( wxPoint, double, boost::geometry::cs::geographic, wxPoint::getx, wxPoint::gety, wxPoint::setx, wxPoint::sety ) int main() { boost::geometry::model::polygon< wxPoint > poly; boost::geometry::read_wkt( ""POLYGON((0 89, 180 89, 180 0, 0 0, 0 89 ))"", poly ); wxPoint point; point.setx( 150 ); point.sety( 88 ); bool within = boost::geometry::within( point, poly ); return 0; } }}} ",Bugs,new,To Be Determined,geometry,Boost 1.61.0,Showstopper,,geometry within geographic coordinate system cs,oleary.simon@…