[Marble-devel] How to draw ellipse with GeoPainter at GeoDataCoordinate(center) and specific radius in km not pixel?!

Farzad Karamouz farzadkaramouz at gmail.com
Sat Apr 16 13:52:06 UTC 2016


Hi,
I want to draw an ellipse in specific point width specific radius (km). For
example:

GeoDataCoordinate center(lat, lon, alt, GeoDataCoordinates::Degree);
qreal width = 100; // Unit is KM not Pixel
qreal height = 100; // Unit is KM not Pixel
painter->drawEllipse(center, width, height, false);

how can i do this?!
or
how can i convert km to pixel to use in drawEllipse() ?!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20160416/4e350e71/attachment-0001.html>


More information about the Marble-devel mailing list