Modify

Ticket #12412 (closed Bugs: fixed)

Opened 7 months ago

Last modified 4 months ago

boost::geometry::covered_by fails for point in box (with geographic cs).

Reported by: andydev2k2k@… Owned by: barendgehrels
Milestone: Boost 1.63.0 Component: geometry
Version: Boost 1.61.0 Severity: Showstopper
Keywords: Cc:

Description

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.

Attachments

Change History

comment:1 Changed 7 months ago by awulkiew

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from To Be Determined to Boost 1.62.0

comment:2 Changed 4 months ago by awulkiew

  • Milestone changed from Boost 1.62.0 to Boost 1.63.0
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.