<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Drawing GPS coordinates on screen.]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I want to draw GPS location as a dot on screen. please let me know the correct way of doing this.</p>
<p dir="auto">How can i convert latitude &amp; longitude into coordinates to draw on screen?<br />
Thanks in Advance.</p>
]]></description><link>https://forum.qt.io/topic/15813/drawing-gps-coordinates-on-screen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:41:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/15813.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Apr 2012 11:14:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Wed, 26 Sep 2018 23:50:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/myqt">@<bdi>MyQT</bdi></a></p>
<p dir="auto">Since you do not have requirements for projections and mappings, you could use flat-earth approximation which converts decimal degrees to nautical miles. From there you can convert to feet, meters, etc.</p>
<p dir="auto">Flat-earth approximation is really quite simple. There are 60nm per degree. So<br />
y = latitude * 60;<br />
x = longitude * 60 / cos (latitude);</p>
<p dir="auto">This is fast and light weight. If you really want to localize and minimize errors, you can also subtract a local reference latitude/longitude for the park or area in question. For more robust map projections, I use GDAL (<a href="http://gdal.org" target="_blank" rel="noopener noreferrer nofollow ugc">gdal.org</a>) and PROJ.4 (<a href="http://proj4.org" target="_blank" rel="noopener noreferrer nofollow ugc">proj4.org</a>). This allows me to position anywhere in the world with surveyor accuracy. It is not as light weight but it is robust and well supported. GeographicLib also has great API for UTM/UPS and MGRS conversion.</p>
<p dir="auto">One problem you could have with tight points and scaling is that if you do NOT use line width 0 in your pen, the pen width will scale as you zoom. I typically make my point diameters 1ft or .3048m and this tends to make zooming better.</p>
]]></description><link>https://forum.qt.io/post/483879</link><guid isPermaLink="true">https://forum.qt.io/post/483879</guid><dc:creator><![CDATA[Buckwheat]]></dc:creator><pubDate>Wed, 26 Sep 2018 23:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Wed, 19 Sep 2018 03:03:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/myqt">@<bdi>MyQT</bdi></a> Hello. Did you find any solution for drawing GPS point as overlay on widget ?</p>
]]></description><link>https://forum.qt.io/post/482215</link><guid isPermaLink="true">https://forum.qt.io/post/482215</guid><dc:creator><![CDATA[Munkhtamir]]></dc:creator><pubDate>Wed, 19 Sep 2018 03:03:05 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Mon, 23 Apr 2012 18:53:51 GMT]]></title><description><![CDATA[<p dir="auto">bq. Do you have any solution for this?</p>
<p dir="auto">Zoom in closer on the area in your view?</p>
<p dir="auto">Otherwise, what behavior would you like to see if the points overlap?</p>
]]></description><link>https://forum.qt.io/post/136647</link><guid isPermaLink="true">https://forum.qt.io/post/136647</guid><dc:creator><![CDATA[mlong]]></dc:creator><pubDate>Mon, 23 Apr 2012 18:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Mon, 23 Apr 2012 05:01:09 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply.<br />
My requirement is to draw GPS location which are very near to each other.<br />
I tried to draw it is but becuase of GPS location are very close @10 meter range, two points are getting overlapped.</p>
<p dir="auto">Do you have any solution for this?</p>
]]></description><link>https://forum.qt.io/post/136558</link><guid isPermaLink="true">https://forum.qt.io/post/136558</guid><dc:creator><![CDATA[MyQT]]></dc:creator><pubDate>Mon, 23 Apr 2012 05:01:09 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Wed, 11 Apr 2012 12:41:36 GMT]]></title><description><![CDATA[<p dir="auto">I understand that, but in order to recommend a "map projection":<a href="http://en.wikipedia.org/wiki/Map_projection" target="_blank" rel="noopener noreferrer nofollow ugc">http://en.wikipedia.org/wiki/Map_projection</a> it is important to understand the scale you're working on.</p>
<p dir="auto">In your case, the distances are so small, that you can use a quite simple one. Perhaps a simple "equirectangular projection":<a href="http://en.wikipedia.org/wiki/Equirectangular_projection" target="_blank" rel="noopener noreferrer nofollow ugc">http://en.wikipedia.org/wiki/Equirectangular_projection</a> will do fine for your purpose.</p>
<p dir="auto">You can use the formula in the article referenced above to get a set of x, y coordinates. Then, all you need to do is to scale and transpose these coordinates so they can be mapped in a sensible way to your screen.</p>
]]></description><link>https://forum.qt.io/post/135412</link><guid isPermaLink="true">https://forum.qt.io/post/135412</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Wed, 11 Apr 2012 12:41:36 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Wed, 11 Apr 2012 12:38:12 GMT]]></title><description><![CDATA[<p dir="auto">"rough conversion":<a href="http://geography.about.com/library/faq/blqzdistancedegree.htm" target="_blank" rel="noopener noreferrer nofollow ugc">http://geography.about.com/library/faq/blqzdistancedegree.htm</a></p>
]]></description><link>https://forum.qt.io/post/135411</link><guid isPermaLink="true">https://forum.qt.io/post/135411</guid><dc:creator><![CDATA[koahnig]]></dc:creator><pubDate>Wed, 11 Apr 2012 12:38:12 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Wed, 11 Apr 2012 12:11:31 GMT]]></title><description><![CDATA[<p dir="auto">it is small park. or you can say play area of @1000 meter.<br />
I need info about how to convert latitude and longitude in coordinate system (x,y) so that I can draw it on my screen.</p>
]]></description><link>https://forum.qt.io/post/135399</link><guid isPermaLink="true">https://forum.qt.io/post/135399</guid><dc:creator><![CDATA[MyQT]]></dc:creator><pubDate>Wed, 11 Apr 2012 12:11:31 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Wed, 11 Apr 2012 12:04:13 GMT]]></title><description><![CDATA[<p dir="auto">Again: on what scale? A park? A city? A small country? A continent? The world? And even: near the equator, or near the poles?</p>
]]></description><link>https://forum.qt.io/post/135396</link><guid isPermaLink="true">https://forum.qt.io/post/135396</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Wed, 11 Apr 2012 12:04:13 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Wed, 11 Apr 2012 12:01:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
Thanks for the reply.<br />
Actually i want to draw a point on blank screen only, not on map. (this is the requirement)<br />
There are @50 location available that i need to draw on screen relatively to each othere.</p>
]]></description><link>https://forum.qt.io/post/135395</link><guid isPermaLink="true">https://forum.qt.io/post/135395</guid><dc:creator><![CDATA[MyQT]]></dc:creator><pubDate>Wed, 11 Apr 2012 12:01:47 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing GPS coordinates on screen. on Wed, 11 Apr 2012 11:49:15 GMT]]></title><description><![CDATA[<p dir="auto">That would ultimately depend on your map projection. What map projection is suitable, depends on your purposes: a display to indicate a point in a city on a map is different from one that would do the same for the whole world, for instance. Are you looking for a map to display on that screen as well (for reference perhaps)?</p>
]]></description><link>https://forum.qt.io/post/135391</link><guid isPermaLink="true">https://forum.qt.io/post/135391</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Wed, 11 Apr 2012 11:49:15 GMT</pubDate></item></channel></rss>