Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73055

QGeoRectangle unification doesn't always results in the smallest possible rectangle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.12.0
    • Positioning
    • None
    • 5
    • Qt6_Foundation_Sprint 37

    Description

      Consider two non-wrapping small rectangles:

      QGeoRectangle A(QGeoCoordinate(30, 160), QGeoCoordinate(-30, 170));
      QGeoRectangle B(QGeoCoordinate(30, -170), QGeoCoordinate(-30, 160));
      

      The result of A | B will be a rectangle with left edge at -170 and right edge at 170, which is theoretically correct (includes both rectangles), but doesn't satisfy the "smallest possible" property stated in the documentation (which would be the other way around, resulting in a wrapping rectangle).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ivan.solovev Ivan Solovev
            yzsolt Zsolt Bölöny
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes