QGeoPolygon Class
The QGeoPolygon class defines a geographic polygon. More...
| Header: | #include <QGeoPolygon> |
| qmake: | QT += positioning |
| Since: | Qt 5.10 |
| Inherits: | QGeoShape |
This class was introduced in Qt 5.10.
Detailed Description
The polygon is defined by an ordered list of QGeoCoordinates representing its perimeter.
Each two adjacent elements in this list are intended to be connected together by the shortest line segment of constant bearing passing through both elements. This type of connection can cross the date line in the longitudinal direction, but never crosses the poles.
This is relevant for the calculation of the bounding box returned by QGeoShape::boundingGeoRectangle() for this shape, which will have the latitude of the top left corner set to the maximum latitude in the path point set. Similarly, the latitude of the bottom right corner will be the minimum latitude in the path point set.
This class is a Q_GADGET. It can be directly used from C++ and QML.