diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2016-08-05 22:21:12 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2016-11-30 08:54:11 +0000 |
commit | cd8880cc04b22610e835e6cc02cc16ac22ec9fae (patch) | |
tree | 37a5569c4eca55f70d5584f54fa2479dcf9dad3c /src/positioning/qgeorectangle_p.h | |
parent | 0a552f285fdc3760d9755109ceef3b87392a308d (diff) | |
download | qtlocation-cd8880cc04b22610e835e6cc02cc16ac22ec9fae.tar.gz |
Add support for boundingGeoRectangle to QGeoShape
this patch introduces QGeoShape::boundingGeoRectangle,
which returns a QGeoRectangle containing the latitudinal/longitudinal bounds
of a geoshape.
The bounding geo rectangle is projection independent, as it returns
a georectangle containing the min/max latitudes/longitudes of the
shape.
Change-Id: Ie3a83ec41f87ea3753899d2278e664fe2469f778
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/positioning/qgeorectangle_p.h')
-rw-r--r-- | src/positioning/qgeorectangle_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/positioning/qgeorectangle_p.h b/src/positioning/qgeorectangle_p.h index 188e5548..ee1b1732 100644 --- a/src/positioning/qgeorectangle_p.h +++ b/src/positioning/qgeorectangle_p.h @@ -70,6 +70,8 @@ public: QGeoCoordinate center() const Q_DECL_OVERRIDE; + QGeoRectangle boundingGeoRectangle() const Q_DECL_OVERRIDE; + void extendShape(const QGeoCoordinate &coordinate) Q_DECL_OVERRIDE; QGeoShapePrivate *clone() const Q_DECL_OVERRIDE; |