Modify

Ticket #12106 (closed Bugs: fixed)

Opened 13 months ago

Last modified 13 months ago

Assertion in envelope() seems to be wrong

Reported by: karsten Owned by: barendgehrels
Milestone: Boost 1.61.0 Component: geometry
Version: Boost 1.60.0 Severity: Problem
Keywords: envelope Cc:

Description

Hi,

the following code stops with an assertion. It seems that the check for the aequator in algorithms/detail/envelope/segment.hpp:compute_box_corners() is not correct.

#include <boost/geometry.hpp>
#include <iostream>

using namespace std;

namespace bg = boost::geometry;

typedef bg::cs::spherical_equatorial< boost::geometry::degree > cs_type;
typedef bg::model::point< double , 2 , cs_type > point_type;
typedef bg::model::box< point_type > box_type;
typedef bg::model::segment< point_type> segment_type;
    
int main( int argc , char *argv[] )
{
    auto segment = segment_type { point_type { 11.488323611111111 , 53.687086666666673 } , { 11.488324166666667 , 53.687086666666673 } };
    auto box = box_type {};
    bg::envelope( segment , box );
    return 0;
}

The problem does not occur in version 1.58 and earlier.

Attachments

Change History

comment:1 Changed 13 months ago by awulkiew

  • Keywords envelope added
  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from To Be Determined to Boost 1.61.0

Thanks for the report!

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.