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

QGeoCircle bounding box calculated incorrectly in QDeclarativeGeoMap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.2
    • 5.6.0, 5.6.1, 5.7.0
    • None
    •  fde1e3a6c031ffaf511a5a1878d77676af93482c

    Description

      QDeclarativeGeoMap::fitViewportToGeoShape currently calculates the extent of a QGeoCircle bounding box using the center and the position "centerCoordinate.atDistanceAndAzimuth(circle.radius(), 90);"

      This is correct only for circles centered at the equator.

      Example of failing geometries:

      MapRectangle {
          color: 'blue'
          opacity: 0.4
          topLeft: QtPositioning.coordinate(84,-22)
          bottomRight: QtPositioning.coordinate(72,-18)
      }
      
      MapCircle {
          color: 'red'
          opacity: 0.4
          center: QtPositioning.coordinate(70,70)
          radius: 1800000
      }
      

      Attachments

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

        Activity

          People

            michal Michal Klocek
            paangele Paolo Angelelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes